Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/julianoliva/www/carro/zc_install/includes/classes/class.zcConfigureFileReader.php on line 20
Printable View
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/julianoliva/www/carro/zc_install/includes/classes/class.zcConfigureFileReader.php on line 20
itīs the third time I try, and all the time itīs the same error
What version of PHP are you running? It "sounds like" you're running a variant of PHP 4.x.
Agreed. It's rejecting the PHP keyword "protected", which was added in PHP 5. So that means the site must be running an ancient version of PHP.
You'll need a modern version of PHP (5.6 is recommended) to use Zen Cart, or any other modern system for that matter.
PHP 5.6.x php-cgi is the version
There's nothing wrong with the syntax in the file. See line 20 here: https://github.com/zencart/zencart/b...FileReader.php
I'm pretty sure that's not what your Zen Cart folder is using. Otherwise you wouldn't get the message you're reporting.
To find out what specific PHP setup is actually being used, edit your /zc_install/index.php file, and on line 2 add a new line:
Then run zc_install again, and it should report a ton of info about your server.Code:phpinfo();die();
Who's your hosting company?
I see, The syntax are ok, but......
PHP Version 5.6.16