Support

Akeeba Backup for Joomla!

#26126 Getting an error when Cli.php runs

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
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

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by dlb on Friday, 16 September 2016 11:41 CDT

hetclub
EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Backup is not running so I don't get a ZIP file. Can run backups manually and they are successful.

Description of my issue: Getting the following error by email. My backups are not running.

From: [email protected] (Cron Daemon)
Date: September 13, 2016 at 1:00:05 PM CDT
To: [email protected]
Subject: Cron <site@het> /opt/php56/bin/php /home/site/public_html/cli/akeeba-backup.php --profile=5 -s www.site.org -u usernamevalidated -p passwordvalidated
Akeeba Backup CLI 5.2.1 (2016-09-08)
Copyright (c) 2006-2016 Akeeba Ltd / Nicholas K. Dionysopoulos
-------------------------------------------------------------------------------
Akeeba Backup is Free Software, distributed under the terms of the GNU General
Public License version 3 or, at your option, any later version.
This program comes with ABSOLUTELY NO WARRANTY as per sections 15 & 16 of the
license. See http://www.gnu.org/licenses/gpl-3.0.html for details.
-------------------------------------------------------------------------------

You are using Joomla! 3.6.2 on PHP 5.6.21 (cli)

Starting a new backup with the following parameters:
Profile ID 5
Description "Command-line backup"

Current memory usage: 2.38 Mb

Unsetting time limit restrictions.

Site paths determined by this script:
JPATH_BASE : /home/site/public_html
JPATH_ADMINISTRATOR : /home/site/public_html/administrator



********** ERROR! **********



Technical information:

Code: 0
File: /home/site/public_html/administrator/components/com_akeeba/BackupEngine/Driver/Mysql.php
Line: 436

Stack Trace:

#0 /home/site/public_html/administrator/components/com_akeeba/BackupEngine/Driver/Base.php(1049): Akeeba\Engine\Driver\Mysql->query()
#1 /home/site/public_html/administrator/components/com_akeeba/BackupEngine/Driver/Base.php(742): Akeeba\Engine\Driver\Base->execute()
#2 /home/site/public_html/administrator/components/com_akeeba/BackupPlatform/Joomla3x/Driver/Joomla.php(126): Akeeba\Engine\Driver\Base->loadAssocList()
#3 /home/site/public_html/administrator/components/com_akeeba/BackupEngine/Platform/Base.php(617): Akeeba\Engine\Driver\Joomla->__call('loadAssocList', Array)
#4 /home/site/public_html/administrator/components/com_akeeba/BackupEngine/Platform/Base.php(617): Akeeba\Engine\Driver\Joomla->loadAssocList()
#5 /home/site/public_html/administrator/components/com_akeeba/BackupEngine/Platform.php(272): Akeeba\Engine\Platform\Base->get_running_backups(NULL)
#6 /home/site/public_html/administrator/components/com_akeeba/BackupEngine/Factory.php(443): Akeeba\Engine\Platform->__call('get_running_bac...', Array)
#7 /home/site/public_html/administrator/components/com_akeeba/BackupEngine/Factory.php(443): Akeeba\Engine\Platform->get_running_backups(NULL)
#8 /home/site/public_html/administrator/components/com_akeeba/Model/Backup.php(122): Akeeba\Engine\Factory::resetState(Array)
#9 /home/site/public_html/cli/akeeba-backup.php(239): Akeeba\Backup\Admin\Model\Backup->startBackup(Array)
#10 /home/site/public_html/cli/akeeba-backup.php(428): AkeebaBackupCLI->execute()
#11 {main}

dlb
Has this CRON backup ever run successfully? It looks like the mysqli driver may be missing in the PHP version that you are using for the command line backup. That isn't something that would change without a new version of PHP.

You can try switching the MySQL driver in your Joomla! Global Configuration screen to mysql (no training i). That is the older, slower version of the driver. If that works, you should contact your host and ask that they enable the mysqli driver in the command line PHP.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

hetclub
Maybe it would help if my Joomla configuration was set to MySqlI. We updated to PHP 5.6 about the same time I started having issues. I will see if this works. If it doesn't I will contact my hosting provider and have them check to make sure the mysqli driver is enabled.

hetclub
That fixed it. So I had the exact opposite issue. My php was using MySQLi driver and my Joomla configuration was still set to MySQL driver. Thanks so much!

dlb
I don't know how I misread the original error, but yes, you need to use the MySQLi driver. That's a good thing. I'm glad you got it working. Have a good weekend!


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

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!