New install - Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING


#1

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(’ in /home/user/public_html/piwikfolder/index.php on line 11

line 11 as follows:

use Piwik\Error;


#2

did you ensure you dowloaded archive in binary forat? what php version is this running under?


#3

php 5.2.17

downloaded from here: Get Piwik - Analytics Platform - Matomo
assume it’s zipped in binary?

uploaded via filezilla binary


#4

i think the version ineeds to be at least 5.2.4 but i have seen others go to 5.3.3 and eliminate alot of problems


#5

thanks, that was it, upgraded php to 5.4.22 and all is well