Plugin Author
WPSOLR
(@wpsolr)
Hi,
You need PHP 5.5 minimum, to enable $class_name::CLASS syntax.
Hi,
Checked on plesk interface and was running 5, 5.6 & 7 PHP interpreter versions so added 5.5 but still not working.
Exactly the same error.
still getting
syntax error, unexpected ‘CLASS’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’…………… on line 58
Plugin Author
WPSOLR
(@wpsolr)
It’s a PHP 5.5- typical error.
OK, so how do I get round this and get the plugin working?
How is this resolved when the plugin still won’t work – ‘It’s a PHP 5.5- typical error.’ is NOT a resolution, especially as I was not running 5.5, but 5.6 and above!
OK – for anybody experiencing this check which version of PHP support your site is actually running, not just which versions are installed on your web server.
For me it was in my hosting settings (in Plesk). I thought I was running 5.6, but wasn’t in reality.
Changed it to be running on 5.6 and it all started working.
So it was a 5.5 error as stated but for somebody who is not getting down and dirty with this sort of thing on a daily basis, a slightly broader answer would have been more helpful! (IE go and double check the hosting plan for your web site!)
Plugin Author
WPSOLR
(@wpsolr)
I gave you the correct answer from start.
You first denied it.
Then you complain I’m not aware of your specific environment.
Nice to give you a hand !