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?
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();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With