Support

Akeeba Backup for Joomla!

#35355 parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/customer/***/public_html/plugins/system/backuponupdate/backuponupdate.php on line 226

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 on Wednesday, 07 July 2021 20:17 CDT

aimlesslady

Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!


EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.


Description of my issue:

My Joomla site was blank in the front end and the backend had the following error:

parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/customer/***/public_html/plugins/system/backuponupdate/backuponupdate.php on line 226

 I contacted Siteground and they said they had to change the php to 7.2 and then it functioned properly. This was before I updated from Joomla 3.9.26 to 3.9.27 and Admin Tools and Akeeba backup to the latest update(they were up to date prior to this last update). I then tried to go back to php7.3 and had the blank page again.

Can you help troubleshoot this please?

nicholas
Akeeba Staff
Manager

Um, what they are telling you from SiteGround doesn't make sense. The line in question is:

private function loadTemplate($layout, array $params = []): string

The message complains above the : string suffix. However, this is standard PHP syntax which has been available since PHP 7.0, released in December 2015 and definitely works on PHP 7.2 (minimum supported version and earliest PHP version we are testing with), PHP 7.3 (currently recommended version and the one with primarily test with), 7.4 (used on the site we are having this conversation) and 8.0 (the version we develop on).

The problem must be that even though you are selecting PHP 7.3 the actual PHP version being applied is PHP 5.6 or older. That would be a hosting issue. Please ask SiteGround to make sure that when they enable PHP 7.3 they really ARE enabling PHP 7.3  — they can check with a file running phpinfo() — and not PHP 5.6 or earlier.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!