• Resolved hornblower

    (@hornblower)


    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected ‘CLASS’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /var/www/vhosts/xxxx/wp-content/plugins/wpsolr-search-engine/wpsolr/core/class-wpsolr-autoloader.php on line 58

    Cannot get past this – what is the solution?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    Hi,

    You need PHP 5.5 minimum, to enable $class_name::CLASS syntax.

    Thread Starter hornblower

    (@hornblower)

    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 free

    (@wpsolr)

    It’s a PHP 5.5- typical error.

    Thread Starter hornblower

    (@hornblower)

    OK, so how do I get round this and get the plugin working?

    Thread Starter hornblower

    (@hornblower)

    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!

    Thread Starter hornblower

    (@hornblower)

    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 free

    (@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 !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Pluggin won’t activate’ is closed to new replies.