ParseError in...

Search
Other Bug Reports questions
Forum

ParseError in libraries/regularlabs/src/Exte​nsion.php when running Akeeba Backup through Cronjob

Dario's Avatar Dario
Hi,
not sure if there's a problem on Akeeba Backup, Cronjob or Regularlabs side. But the Cronjob was running well for years and after the latest Regularlabs updates (Advanced Module Manager and Modules Anywhere) it is broken.
/usr/local/bin/php /home/XXXXX/public_html/XXXXX.ch/cli/joomla.php akeeba:backup:take --quiet
ParseError {#556
#message: "syntax error, unexpected '=>' (T_DOUBLE_ARROW)"
#code: 0
#file: "./public_html/XXXXX.ch/libraries/regularlabs/src/Extension.php"
#line: 60
trace: {
./public_html/XXXXX.ch/libraries/regularlabs/src/Extension.php:60 {
Composer\Autoload\includeFile($file)
› {
› 'module' => 'mod_' . $element,
› 'component' => 'com_' . $element,
}
./public_html/XXXXX.ch/libraries/vendor/composer/ClassLoader.php:344 { …}
./public_html/XXXXX.ch/libraries/src/Autoload/ClassLoader.php:59 { …}
Joomla\CMS\Autoload\ClassLoader->loadClass() {}
./public_html/XXXXX.ch/libraries/regularlabs/src/Language.php:36 { …}
./public_html/XXXXX.ch/plugins/system/regularlabs/regularlabs.php:36 { …}
./public_html/XXXXX.ch/libraries/src/Extension/ExtensionManagerTrait.php:217 { …}
./public_html/XXXXX.ch/libraries/src/Extension/ExtensionManagerTrait.php:160 { …}
./public_html/XXXXX.ch/libraries/src/Extension/ExtensionManagerTrait.php:99 { …}
./public_html/XXXXX.ch/libraries/src/Plugin/PluginHelper.php:232 { …}
./public_html/XXXXX.ch/libraries/src/Plugin/PluginHelper.php:192 { …}
./public_html/XXXXX.ch/libraries/src/Application/ConsoleApplication.php:256 { …}
./public_html/XXXXX.ch/cli/joomla.php:76 { …}
}
}


Thanks for having a look at this, thx!
Peter van Westen's Avatar Peter van Westen ADMIN
What Joomla and php version are you running on?
Please post a rating at the Joomla! Extensions Directory
Dario's Avatar Dario
Joomla
4.3.4

PHP
8.1.22
Peter van Westen's Avatar Peter van Westen ADMIN
File should be fine.
Double-check the php version in the Joomla setup: Administrator > System > System Information
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Also, try reinstalling the latest version of the Regular Labs extension you have installed.
Please post a rating at the Joomla! Extensions Directory
Dario's Avatar Dario
Thx for having a look into the file. Double checked the versions:

Joomla
Joomla! 4.3.4 Stable [ Bora ] 22-August-2023 16:00 GMT

PHP
8.1.22


Reinstalled the modules. But still getting the same error.

Maybe I can ask Akeeba for further help.
Dario's Avatar Dario
When running the backup manually, without Cronjob it works well.

Therefor I've to check other options with the Cronjob. Strange, because the job really worked well over months or years...
Peter van Westen's Avatar Peter van Westen ADMIN
That means your cronjobs are running on a lower php version. You will have to ask your host to fix that.

As you can see in the requirements and changelogs of the Regular Labs extensions, the latest versions require php 8.1 or higher.
Please post a rating at the Joomla! Extensions Directory
Dario's Avatar Dario
That's it. I'm going to contact my hoster. Thanks a lot
You can only post on this forum if you log in