Support

Akeeba Backup for Joomla!

#35721 After updating Akeeba, error stops website from loading

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 SaintAgatha on Tuesday, 31 August 2021 14:11 CDT

SaintAgatha

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:

Following Akeeba upgrade ( version number unknown because Joomla won't start) Joomla fails with this error on startup:

 

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

nicholas
Akeeba Staff
Manager

You say that you have PHP 7.4 but the error message you are receiving means that you actually have PHP 5. Kindly note that the minimum requirement for our current software versions is PHP 7.2.

Please go to your hosting control panel and change the PHP version for your site to PHP 7.4.

I'd like to bring your attention to something very important. The PHP version reporting by the hosting control panel (most likely you're using cPanel) is the one used by the hosting control panel itself, not necessarily the one used for your site. A server can have a multitude of PHP version installed on it. The default PHP version is usually a pretty old version (e.g. PHP 5.6) to cater for older sites. The control panel itself is using one of the newer PHP versions (e.g. PHP 7.4) for reasons of performance and, well, because newer PHP versions allow its developers to implement more features more easily.

The hosting control panel software also provides a means of changing the PHP version which will be used by your site. Selecting a PHP version there makes a change in your site's .htaccess file, adding a line starting with AddHandler or SetHandler which tells the server which PHP version you want to use with your site. If you change the PHP version of your site and then make modifications to your .htaccess file which remove that line your site will revert to the default, older PHP version which might break your site. 

Please note that updating Akeeba Backup DOES NOT and CAN NOT change your .htaccess file. Restoring a backup MAY do that (it's an option in the penultimate step of the restoration titled “Site Setup”).

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!

SaintAgatha

Thanks Nicholas, for the most informative reply. It took a minute only to locate the bad .htaccess file which cpanel had curiously changed to 5.6 rather than the 7.4 displayed.

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!