adian666 Posted August 11, 2017 Share Posted August 11, 2017 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 More sharing options...
razaro Posted August 11, 2017 Share Posted August 11, 2017 What is your PHP version ? You can find info in Advanced Parameters >Configuration Information. Link to comment Share on other sites More sharing options...
adian666 Posted August 11, 2017 Author Share Posted August 11, 2017 Server information: Linux #31 SMP Fri Nov 20 22:05:10 CET 2015 x86_64 Server software version: Apache PHP version: 5.3.29 Memory limit: 128M Max execution time: 120 Link to comment Share on other sites More sharing options...
razaro Posted August 11, 2017 Share Posted August 11, 2017 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. 1 Link to comment Share on other sites More sharing options...
adian666 Posted August 11, 2017 Author Share Posted August 11, 2017 Thank you for the help It was possible to work around without changing the files. I forced php version change via .php56 file Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now