Support

Akeeba Backup for Joomla!

#36864 Joomla 4 Automatic Backup Cron Job

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 tampe125 on Thursday, 31 March 2022 07:46 CDT

jucrismates

Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!


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.


Description of my issue:

I've tried to configure the Cron Job for the Automatic Backup and it's not working.

 

/usr/local/bin/php /home4/xxxxxxxxx/public_html/cli/joomla.php akeeba:backup:take

 

I will be able to provide you access credentials to Cpanel if it's necessary.

 

Thanks

 

tampe125
Akeeba Staff

Hello,

what's the reported error? Did you enable the Akeeba Backup console plugin inside Joomla plugin list?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jucrismates

Hi,

 

There's no reported error...just doesn't the cron job doesn't activate the backup process, so there's no backup made.

Regarding the plugin Akeeba Console, yes it´s enabled.

 

Thanks or your quick answer.

 

tampe125
Akeeba Staff

When you take the backup using CPanel, do you get an email back? Usually CRON jobs will report the output of the executed command by email, so you can review it

We have to understand if the command is executed and it's failing or it's not executed at all.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jucrismates

I get this message:

 

Symfony\Component\ErrorHandler\Error\UndefinedMethodError {#511
#message: "Attempted to call an undefined method named "getUserState" of class "Joomla\CMS\Application\ConsoleApplication"."
#code: 0
#file: "./public_html/plugins/system/hikashopuser/hikashopuser.php"
#line: 23
trace: {
./public_html/plugins/system/hikashopuser/hikashopuser.php:23 {
plgSystemHikashopuser->__construct(&$subject, $config)
› $app = JFactory::getApplication();\r
› $this->currency = $app->getUserState('com_hikashop.currency_id');\r
› $this->entries = $app->getUserState('com_hikashop.entries_fields');\r
}
./public_html/libraries/src/Extension/ExtensionManagerTrait.php:242 { …}
./public_html/libraries/src/Extension/ExtensionManagerTrait.php:160 { …}
./public_html/libraries/src/Extension/ExtensionManagerTrait.php:94 { …}
./public_html/libraries/src/Plugin/PluginHelper.php:236 { …}
./public_html/libraries/src/Plugin/PluginHelper.php:194 { …}
./public_html/libraries/src/Application/ConsoleApplication.php:231 { …}
./public_html/cli/joomla.php:78 { …}
}
}

tampe125
Akeeba Staff

Ok, the problem is caused by a third party plugin, that tries to load methods that aren't available under CLI.

That being said, if I remember correctly, Hikashop already fixed that issue, you should update to the latest available version

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jucrismates

Hi,

I just updated the Hikashop to the last version, and now the Cron Job is working properly.

 

Thank you for your effective help.

Best regards!!

 

tampe125
Akeeba Staff

You're welcome!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Easter vacation: We will be closed from 17 April 2025 16:00 UTC to 21 April 2025 06:00 UTC due to observing the Christian Easter holiday. Support will be closed during that time for both new tickets, and replies to existing tickets.

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!