Log in

View Full Version : Had this issue for a while [parse error when banning user]


TimberFloorAu
09-14-2009, 11:17 PM
We get this error when we delete a user: have done since day one really.

Parse error: syntax error, unexpected T_STRING in /home/ourforum/public_html/forum/includes/class_dm_user.php(2315) : eval()'d code on line 36

Any ideas what is causing this please ?

Lynne
09-15-2009, 01:49 AM
Most errors regarding "eval()'d code" comes from a plugin. What is on line 2315 of your class_dm_user.php file? That will give you a hint of what the error is from.

TimberFloorAu
09-15-2009, 02:22 AM
Line 2315

($hook = vBulletinHook::fetch_hook('userdata_delete')) ? eval($hook) : false;

Lynne
09-15-2009, 02:28 AM
There you go.... it's a problem from a modification that has a plugin that uses the userdate_delete hook location.

TimberFloorAu
09-15-2009, 02:36 AM
okey dokey... so hmmm... how do we find out which plugin is the issue... or...

Use the tried tested and trusted method of "process of elimination" by disabling ?

Lynne
09-15-2009, 02:44 AM
Yep. Or, you look at your list of plugins to find the ones using that hook location. I doubt there are many.