Hello all.
I have just had my host transfer my new, (14/3/21) Phoenix installation to another account due to PHP issues with my live Edge shop.
Now my Phoenix site is giving a HTTP error 500 as follows :
[24-Apr-2021 11:33:54 Europe/London] PHP Parse error: syntax error, unexpected '[' in /home/*/retro-antiques-curios.uk/includes/application_top.php on line 39
Line 39 is $result = [ $result ];
Any ideas?
TIA
Shaun
PHP 500 error
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: PHP 500 error
The minimum PHP version for Phoenix is 7.0. Your version seems to be 5.3 or older.RAC wrote: ↑Sun Apr 25, 2021 2:55 am[24-Apr-2021 11:33:54 Europe/London] PHP Parse error: syntax error, unexpected '[' in /home/*/retro-antiques-curios.uk/includes/application_top.php on line 39
Line 39 isCode: Select all
$result = [ $result ];
- zipurman
- Builder
- Posts: 540
- Joined: Tue Oct 13, 2020 5:20 pm
- Phoenix Version: v
- Has thanked: 93 times
- Been thanked: 162 times
Re: PHP 500 error
php 5.4 introduced short syntax arrays. Your error shows that php does not support this. You must be running php 5.3 or earlier or this error would not occur.
zipurman
-----------
-----------
- RAC
- Member
- Posts: 66
- Joined: Mon Apr 19, 2021 5:36 am
- Phoenix Version: v1.1.0.6
- Has thanked: 9 times
- Been thanked: 1 time
Re: PHP 500 error
Just for information :
It seems my host used an incomplete name and path within the configure.php files.
Once these were updated the site was visible.
Thanks again for your help.
It seems my host used an incomplete name and path within the configure.php files.
Once these were updated the site was visible.
Thanks again for your help.