Bug in libraries/regularlabs/src/Extension.php...

Search
Other Bug Reports questions
Forum

Bug in libraries/regularlabs/src/Exte​nsion.php preventing Akeeba front-end backup

David Crawford's Avatar David Crawford
So I just discovered that my cron commands for backups stopped working.
They worked on September 25th prior to any updates. But they did not run on October 2nd. So whatever update that was installed on September 25 must have broken something. Here are the updates installed Sept 25:
Regular Labs - Advanced Module Manager 10.0.1
Regular Labs - Extension Manager 9.0.0

the cron command:
/usr/bin/php /home/accessact/public_html/cli/joomla.php akeeba:backup:take

The output:
ParseError {#481
  #message: "syntax error, unexpected '=>' (T_DOUBLE_ARROW)"
  #code: 0
  #file: "/home/accessact/public_html/libraries/regularlabs/src/Extension.php"
  #line: 60
  trace: {
    /home/accessact/public_html/libraries/regularlabs/src/Extension.php:60 {
      Composer\Autoload\includeFile($file)
      › {
      ›     'module'    => 'mod_' . $element,
      ›     'component' => 'com_' . $element,
    }
    /home/accessact/public_html/libraries/vendor/composer/ClassLoader.php:344 { …}
    /home/accessact/public_html/libraries/src/Autoload/ClassLoader.php:59 { …}
    Joomla\CMS\Autoload\ClassLoader->loadClass() {}
    /home/accessact/public_html/libraries/regularlabs/src/Language.php:36 { …}
    /home/accessact/public_html/plugins/system/regularlabs/regularlabs.php:36 { …}
    /home/accessact/public_html/libraries/src/Extension/ExtensionManagerTrait.php:217 { …}
    /home/accessact/public_html/libraries/src/Extension/ExtensionManagerTrait.php:160 { …}
    /home/accessact/public_html/libraries/src/Extension/ExtensionManagerTrait.php:99 { …}
    /home/accessact/public_html/libraries/src/Plugin/PluginHelper.php:232 { …}
    /home/accessact/public_html/libraries/src/Plugin/PluginHelper.php:192 { …}
    /home/accessact/public_html/libraries/src/Application/ConsoleApplication.php:256 { …}
    /home/accessact/public_html/cli/joomla.php:76 { …}
  }
}
Peter van Westen's Avatar Peter van Westen ADMIN
There is no bug.

You cron jobs are not running on PHP 8.1 or higher.
Ask you host about this if you do not know how to change the PHP version of the cron jobs...
Please post a rating at the Joomla! Extensions Directory
David Crawford's Avatar David Crawford
Thanks for the help. Changing to PHP 8.0 for the cron fixed it.

I must say, I've always been impressed with your work, so I was quite surprised when I got that error message that seemed to be blaming one of your apps. Glad to see it wasn't.

PS. For anyone else wondering, the correction for me was:
/opt/remi/php80/root/usr/bin/php /home/accessact/public_html/cli/joomla.php akeeba:backup:take
Peter van Westen's Avatar Peter van Westen ADMIN
I recommend PHP 8.1, not 8.0.
See: docs4.regularlabs.com/advancedmodulemana...minimum-requirements
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in