Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fix plugin Fatal error in EXEC-php

Tags:

php

wordpress

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?

like image 344
Leorah Sumarong Avatar asked Oct 23 '25 16:10

Leorah Sumarong


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();
like image 166
Mark Avatar answered Oct 25 '25 04:10

Mark