Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Parse error: syntax error, unexpected 'public' (T_PUBLIC) (4 replies)

$
0
0
I installed WAMP 2.5 which inherently had PHP 5.5.12 . I upgraded to PHP 7.0.7 following the steps given in this forum .WAMPSERVER started well after these changes and after switching to PHP version 7.0.7 through the WAMP manager.
However when I tried to open my Wordpress site installed in the www directory of WAMP , I get the following error :
Parse error: syntax error, unexpected 'public' (T_PUBLIC)in C:\Program Files\wamp\wamp\www\prospect-awards\wp-content\mu-plugins\wpengine-common\plugin.php on line 862

The reason why I upgraded to PHP 7.0.7 from PHP 5.5.12 was to get rid of this error as I had read on a forum that this error could be due to incompatibility issue of PHP version .

In between I had also tried installing WAMP 3.0 32 bit version to eliminate the parse error , but was not successful as WAMP server wont start , so reverted to WAMPSERVER 2.5 and now stuck again at the same stage .

Help appreciated !!

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>