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
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.
Last edited by lat9; 5 Jul 2016 at 02:56 PM. Reason: Additional information
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.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
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
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks