Support

Akeeba Backup for Joomla!

#39745 Cron job gives error

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
5
PHP version
8.1
Akeeba Backup version
9.8.1

Latest post by nicholas on Thursday, 02 November 2023 11:10 CDT

brainynl

Hi.  since a few day's the back-up via cronjob is sending this error via mail. Normal BU works, just via cron not. 

maaslandcentrum is example, this is on 7 websites already checked. 

 

What causes this error?

 

Cron <maaslandcentrum@srv1> /usr/local/bin/php /home/maaslandcentrum/domains/maaslandcentrum.nl/public_html/cli/joomla.php akeeba:backup:take

(Cron Daemon) <[email protected]>

Symfony\Component\ErrorHandler\Error\ClassNotFoundError {#637
#message: """
Attempted to load class "JPlugin" from the global namespace.\n
Did you forget a "use" statement?
"""
#code: 0
#file: "./domains/maaslandcentrum.nl/public_html/plugins/system/rsfpofflinepayment/rsfpofflinepayment.php"
#line: 13
trace: {
./domains/maaslandcentrum.nl/public_html/plugins/system/rsfpofflinepayment/rsfpofflinepayment.php:13 {
require_once
› \r
› class plgSystemRsfpofflinepayment extends JPlugin\r
› {\r
}
./domains/maaslandcentrum.nl/public_html/libraries/src/Extension/ExtensionManagerTrait.php:217 { …}
./domains/maaslandcentrum.nl/public_html/libraries/src/Extension/ExtensionManagerTrait.php:160 { …}
./domains/maaslandcentrum.nl/public_html/libraries/src/Extension/ExtensionManagerTrait.php:99 { …}
./domains/maaslandcentrum.nl/public_html/libraries/src/Plugin/PluginHelper.php:232 { …}
./domains/maaslandcentrum.nl/public_html/libraries/src/Plugin/PluginHelper.php:192 { …}
./domains/maaslandcentrum.nl/public_html/libraries/src/Application/ConsoleApplication.php:255 { …}
./domains/maaslandcentrum.nl/public_html/cli/joomla.php:77 { …}
}
}

 Best regards, Hein
brainy.nl

brainynl

I, am sorry, this seems to be up to RSJoomla....

https://github.com/joomla/joomla-cms/pull/42217

 Best regards, Hein
brainy.nl

nicholas
Akeeba Staff
Manager

Yup, that's exactly it. It is really a bug in Joomla itself. The backwards compatibility plugin is a behaviour plugin and behaviour plugins were not being loaded in the CLI application.

We've had a number of clients who bumped into that problem because third party extensions were still not updated to work without the backwards compatibility plugin.

The worst part of this is that it was invariably a third party plugin which was still extending from JPlugin instead \Joomla\CMS\Plugin\CMSPlugin. I say “the worst part” because the old JPlugin class became deprecated in Joomla! 3.8.0 which was released on 19 September 2017. What was everyone doing the last 6 years?!

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!

brainynl

Thanks Nicholas, for your update in this. That's why I reduced the use of 3rd party components to a real minimum. 

 Best regards, Hein
brainy.nl

nicholas
Akeeba Staff
Manager

Same reason I am using only my own extensions on my sites (except for JCE) :)

Have a great day!

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!