Jump to content

v1.0.0-amstel white screen


Recommended Posts

Hello,
After adding a theme v1.0.0-amstel in Prestashop 1.6.1.16 and clicking "Preferences-Themes-Use this theme" a white screen shows. An error_log on ftp occurs: [11-Aug-2017 15:02:15 Europe/Berlin] PHP Parse error:  syntax error, unexpected '[' in /public_html/polishmultipool.pl/vendor/react/promise/src/functions.php on line 15.

 

The cache is off and compression is on. Theme version is compatible with Prestashop version. The theme is bought on official website addons.prestashop.com.

What can be the reason of not working?

Link to comment
Share on other sites

 

 

PHP version: 5.3.29

 

Yes error appears because because of that. So you could change /vendor/react/promise/src/functions.php on line 15 

code from for example 

$a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];

but that is feature from 5.4 so you can change that to 

$a = array('one' => 1, 'two' => 2, 'three' => 3, 'four' => 4);.

Also you can ask your hosting to upgrade PHP to 5.6.31 for example, but you would need to check whole store to see if all works correctly in that version.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...