Akeeba Backup for WordPress

#21574 [INSTALLATION] problem with mysql function and template

Posted in ‘Akeeba Backup for WordPress’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

WordPress version
PHP version
Akeeba Backup version

Latest post by nicholas on Friday, 28 November 2014 05:05 CST


My problem happen after installation. When I try to open the app I have an error:
Fatal error: Call to undefined function Akeeba\Engine\Driver\mysql_close() in /X/wp-content/plugins/akeebabackupwp-4.1.0.rc5_/app/Solo/engine/Driver/Mysql.php on line 143

I fixed it replacing mysql_close by mysqli_close

But after I have another problem:
Fatal error: Using $this when not in object context in /X/wp-content/plugins/akeebabackupwp-4.1.0.rc5_/helpers/templates/wp/php/head.php on line 34

Akeeba Staff
First I have an important question. How are you running WordPress on your server is the mysql (not mysqli) extension is not installed? Have you modified WordPress itself?

Moreover, it would not be adequate to simply change mysql_close to mysqli_close. The mysql and mysqli drivers are extremely different and this WILL cause problems. This is what makes the application crash.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!