Support

Akeeba Backup for Joomla!

#39597 Parse error on command line backup and check backup status

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
4.3.4
PHP version
8.1.24
Akeeba Backup version
9.8.0

Latest post by petekuhn on Monday, 09 October 2023 13:15 CDT

petekuhn

I am seeing the same problem as in ticket 39588.

I am filing another ticket because I can't comment on that one (reasonable), can't follow it (would be nice), but also to add an important comment.

While it may be that the problem is in Regular Labs Sorcerer, it's not a component I have installed or used. It's either used by Akeeba explicitly or is in some lower level Joomla subsystem that Akeeba uses. So I don't think  it's quite right to tell Akeeba users to work with Regular Labs on this.

 

petekuhn

I do want to commend you strongly on your documentation for backup scheduling. With this problem, scheduled backups aren't working. But using your documentation, I was able to set up scheduled backup using webcron.com easily until the problem is solved.

nicholas
Akeeba Staff
Manager

A ParseError means that there is some malformed PHP code somewhere. Where? I need the rest of the message to tell you. The rest of the message is the trace which lists all code locations calling each other which resulted in the problem and this lets me point out what's broken.

It may be a third party extension, or it may even be our own code if you are inadvertently using a PHP version that's too old — I do explain that in the documentation which you explicitly commented about reading, so I'm not going into further details.

If you can give me this additional information, the entire error message including the trace, I will be able to tell you what went wrong and where, as well as what you can do about it.

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!

petekuhn

Here it is for the backup job. PHP version is 8.1.24. I get something similar on backup status.

 

ParseError {#607
#message: "syntax error, unexpected '=>' (T_DOUBLE_ARROW)"
#code: 0
#file: "/home/customer/www/test.cal-sailing.org/public_html/libraries/regularlabs/src/StringHelper.php"
#line: 658
trace: {
/home/customer/www/test.cal-sailing.org/public_html/libraries/regularlabs/src/StringHelper.php:658 {
Composer\Autoload\includeFile($file)
› {
› 'lower' => self::toLowerCase($string),
› 'upper' => self::toUpperCase($string),
}
/home/customer/www/test.cal-sailing.org/public_html/libraries/vendor/composer/ClassLoader.php:344 { …}
/home/customer/www/test.cal-sailing.org/public_html/libraries/src/Autoload/ClassLoader.php:59 { …}
Joomla\CMS\Autoload\ClassLoader->loadClass() {}
/home/customer/www/test.cal-sailing.org/public_html/libraries/regularlabs/src/RegEx.php:176 { …}
/home/customer/www/test.cal-sailing.org/public_html/libraries/regularlabs/src/RegEx.php:259 { …}
/home/customer/www/test.cal-sailing.org/public_html/libraries/regularlabs/src/PluginTag.php:38 { …}
/home/customer/www/test.cal-sailing.org/public_html/plugins/system/modals/src/Params.php:112 { …}
/home/customer/www/test.cal-sailing.org/public_html/plugins/system/modals/modals.php:73 { …}
/home/customer/www/test.cal-sailing.org/public_html/libraries/src/Extension/ExtensionManagerTrait.php:242 { …}
/home/customer/www/test.cal-sailing.org/public_html/libraries/src/Extension/ExtensionManagerTrait.php:160 { …}
/home/customer/www/test.cal-sailing.org/public_html/libraries/src/Extension/ExtensionManagerTrait.php:99 { …}
/home/customer/www/test.cal-sailing.org/public_html/libraries/src/Plugin/PluginHelper.php:232 { …}
/home/customer/www/test.cal-sailing.org/public_html/libraries/src/Plugin/PluginHelper.php:192 { …}
/home/customer/www/test.cal-sailing.org/public_html/libraries/src/Application/ConsoleApplication.php:256 { …}
/home/customer/www/test.cal-sailing.org/public_html/cli/joomla.php:76 { …}
}
}

nicholas
Akeeba Staff
Manager

As you can see, it does not come from our code. It comes from Regular Labs' library:

/home/customer/www/test.cal-sailing.org/public_html/libraries/regularlabs/src/StringHelper.php

This library is included with all of Peter's code.

The message you get implies that you are running a PHP version older than PHP 7.4. This is the earliest PHP version which supports lambda functions which have the format fn($x) => $something. Even though your site runs under PHP 8.1, it does not mean that the command-line PHP you are using is the same version. Please ask your host, they can help you.

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!

petekuhn

Thanks for the help.

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!