Fix plugin Fatal error in EXEC-php

Viewed 1957

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?

1 Answers

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();
Related