Support

Akeeba Backup for Joomla!

#26026 PHP Parse error: syntax error, unexpected '['

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 SuperGonnie on Wednesday, 07 September 2016 05:49 CDT

SuperGonnie
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:

When I want to make a backup by hitting the OneClick Default profile button, I do get a 500 Internal Server Error message. The PHP log at the server showed me:

PHP Parse error: syntax error, unexpected '[' in .../public_html/administrator/components/com_akeeba/models/backups.php on line 73, referer: http://<domain>/administrator/index.php?option=com_akeeba&view=backup&autostart=1&profileid=1&hwKvP0Lq5kihnmsVDwA2EFK44KnNnAzi=1



I did some tests with other PHP versions and found out that this problem does not occur starting from PHP version 5.4.0. So I think the used array construction on that line is not supported by PHP 5.3.x. How should I solve this issue, since I cannot easily force my webhosting to upgrade to PHP > 5.4.x?

- Just a small code change in backups.php
- downgrade Akeeba backup

Is that possible? Other suggestions?

Regards,
Roy

nicholas
Akeeba Staff
Manager
We have already released Akeeba Backup 4.7.3 on June 7th which had fixed this issue. Furthermore, we released Akeeba Backup 4.7.4 over a month ago. Please install Akeeba Backup 4.7.4 on your site.

Comprehensive changelog for these two versions as follows:

Akeeba Backup 4.7.4
================================================================================
- Removed Dropbox API v1 integration. The v1 API is going to be discontinued by Dropbox, see https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/ Please use the Dropbox API v2 integration instead.
+ Restoration: a warning is displayed if the database table name prefix contains uppercase characters
~ Workaround for sites with upper- or mixed-case prefixes / table names on MySQL servers running on case-insensitive filesystems and lower_case_table_names = 1 (default on Windows)
~ You will get a warning if you try to backup sites with upper- or mixed-case prefixes as this can cause major restoration issues.
# [MEDIUM] Multi db view wasn't saving the values

Akeeba Backup 4.7.3
================================================================================
! Compatibility issues with PHP 5.3
# [HIGH] JSON API (remote) backups were broken if used a profile other than 1.
# [LOW] Database dump could fail on servers where the get_magic_quotes_runtime function is not available

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!

SuperGonnie
Thanks, problem solved!

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!