Hey there,
we are facing backup errors since we have upgraded several of our Joomla sites from Release 4.4.0 to 5.0.0.
This is the case for all of those backups scheduled with a cron job running every night and being uploaded to our external storage space Google Drive.
I have enabled the email notification in case of errors and in the email the error is always starting with same 'Symfony\Component\ErrorHandler\Error\ClassNotFoundError' .....while the details are obviously different for every site - so I am referencing only one example here from one of our Joomla 5.0.0. sites:
Symfony\Component\ErrorHandler\Error\ClassNotFoundError {#776
#message: """
Attempted to load class "JFactory" from the global namespace.\n
Did you forget a "use" statement?
"""
#code: 0
#file: "/var/www/vhosts/kulturforum-freiburg.info/entwicklung.kulturforum-freiburg.info/plugins/system/payplans/payplans.php"
#line: 14
trace: {
/var/www/vhosts/kulturforum-freiburg.info/entwicklung.kulturforum-freiburg.info/plugins/system/payplans/payplans.php:14 {
require_once
›
› $app = JFactory::getApplication();
› // Do not proceed if this is on CLI environment
}
/var/www/vhosts/kulturforum-freiburg.info/entwicklung.kulturforum-freiburg.info/libraries/src/Extension/ExtensionManagerTrait.php:217 { …}
/var/www/vhosts/kulturforum-freiburg.info/entwicklung.kulturforum-freiburg.info/libraries/src/Extension/ExtensionManagerTrait.php:160 { …}
/var/www/vhosts/kulturforum-freiburg.info/entwicklung.kulturforum-freiburg.info/libraries/src/Extension/ExtensionManagerTrait.php:99{ …}
/var/www/vhosts/kulturforum-freiburg.info/entwicklung.kulturforum-freiburg.info/libraries/src/Plugin/PluginHelper.php:232 { …}
/var/www/vhosts/kulturforum-freiburg.info/entwicklung.kulturforum-freiburg.info/libraries/src/Plugin/PluginHelper.php:192 { …}
/var/www/vhosts/kulturforum-freiburg.info/entwicklung.kulturforum-freiburg.info/libraries/src/Application/ConsoleApplication.php:255 { …}
/var/www/vhosts/kulturforum-freiburg.info/entwicklung.kulturforum-freiburg.info/cli/joomla.php:77 { …}
}
}
The interesting thing is that I can launch the backup in backend on Akeeba directly without any issues and it completed without alerts.
So I am attaching the logfiles for backend and the one for command line from last night.
As stated all command line backups have been running and completing without any issues and errors before Joomla 5.0.0 upgrades. We did not change anything on the cron jobs.
All backups for our remaining Joomla 4.4.0 and 3.x.x. sites are still running fine.
Regards
Markus