Support

Akeeba Backup for Joomla!

#33234 PHP Parse error: syntax error, unexpected '=' in ....libraries/fof30/Cli/Traits/CustomOptionsAware.php on line 104

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
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by pwouda on Tuesday, 16 June 2020 05:29 CDT

pwouda
After upgrading to Akeeba Backup 7.2.0 I get the following error on some of my websites: 

PHP Parse error:  syntax error, unexpected '=' in /var/www/vhosts/vvheerenveen.nl/httpdocs/libraries/fof30/Cli/Traits/CustomOptionsAware.php on line 104


Backing up works fine, so there is no error in the log-file, but PLESK is sending me this error

But the latest log-file can be found on www.vvheerenveen.nl/akeeba.backend.499.log

tampe125
Akeeba Staff

Hello,

 

can you please double check the PHP version that is running in CLI environment on the affected sites?

At the line you pointed there is a feature that has been added in PHP 7.1, I suspect your CLI is using an older version of PHP

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

pwouda

Hello Davide,

Thanks for the quick response. I double-checked the PHP-version and it is for sure 7.3.18, run as FPM application serverd by nginx

Peter

tampe125
Akeeba Staff

That is your web PHP executable, we're talking about automatic backups ran by the CLI.
Can I please have a log of a backup ran from CLI?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

pwouda

Sorry for misunderstanding. Here you can find the latest cli-log

www.vvheerenveen.nl/akeeba.cli.498.log

tampe125
Akeeba Staff

I can't find any PHP error in the log you sent.
Can you please send me the log of a failed backup ran from the CLI? That's important because we log the PHP version, so I can tell you for sure which version you are using.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

pwouda

I don't know where I can find the log-file. I got a message from PLESK with this subject:

Cron <root@server>;; /opt/plesk/php/7.0/bin/php -f '/var/www/vhosts/vvheerenveen.nl/httpdocs/cli/akeeba-backup.php' > /dev/null

And this message:

PHP Parse error: syntax error, unexpected '=' in /var/www/vhosts/vvheerenveen.nl/httpdocs/libraries/fof30/Cli/Traits/CustomOptionsAware.php on line 104

Looks like you are right that the CLI runs from php 7.0. Should I contact my hosting-provider to upgrade to a newer php-version?

tampe125
Akeeba Staff

Yep, that confirmed my hunch. You are using PHP 7.0 which is not supported. You should ask your host how to use a newer version of PHP (usually it involves to change the executable name from php7.0 to php7.3)

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

pwouda

Thank you, I will contact my hosting-provider for this

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!