Reputation: 127
I encountered this error after I upgraded my WordPress version:
Parse error: syntax error, unexpected 'new' (T_NEW) in
C:\xampp\htdocs\titaniumcobra\wp-content\plugins\exec-php\exec-php.php on line 22
This is the code in line 22:
$GLOBALS['g_execphp_manager'] =& new ExecPhp_Manager();
How can I debug this problem?
Upvotes: 4
Views: 2262
Reputation: 340
The problem is the =& in line 22. It seems like this is a very outdated plugin that you should replace if possible. It seems like it allows you to execute user-contributed code and as it's out of date this could be a security risk.
That said, if you remove the & it'll likely start working.
$GLOBALS['g_execphp_manager'] = new ExecPhp_Manager();
Upvotes: 3