I've just installed 1.4.0 on my test store running 1.8.17 and received the following error:
PHP Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) in /public_html/includes/hooks/shop/system/searchTypeAhead.php on line 35
I've reinstalled mutiple times to no avail. Any thoughts on what the cause might be?
Search Type Ahead
PHP Parse error - Search Type Ahead
Re: PHP Parse error
What version of php are you running?
zipurman
aka Preston Lord
-----------
Happy to help where I can
https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
aka Preston Lord
-----------
Happy to help where I can
https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
- zipurman
- PhoenixCart Developer
- Posts: 470
- Joined: Tue Oct 13, 2020 5:20 pm
- : Buy Me A Beverage
- Contact:
Re: PHP Parse error
PHP 7.3
-
- VIP Member
- Posts: 13
- Joined: Sat Sep 04, 2021 5:32 am
- Contact:
Re: PHP Parse error
You could try one of the following:
Upgrade to PHP 7.4 if that is an option.
OR, remove the type casting on lines 35-38 changing them to:
I will test on PHP 7.3 when I get a chance.
Upgrade to PHP 7.4 if that is an option.
OR, remove the type casting on lines 35-38 changing them to:
Code: Select all
private $php_configs;
private $js_configs;
private $installed;
private $debug;
zipurman
aka Preston Lord
-----------
Happy to help where I can
https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
aka Preston Lord
-----------
Happy to help where I can
https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
- zipurman
- PhoenixCart Developer
- Posts: 470
- Joined: Tue Oct 13, 2020 5:20 pm
- : Buy Me A Beverage
- Contact:
Re: PHP Parse error
Yep - upgrading to 7.4 fixed it. Thanks!
-
- VIP Member
- Posts: 13
- Joined: Sat Sep 04, 2021 5:32 am
- Contact: