PDA

View Full Version : Huge Problem - Please Help Asap


jarosciak
01-06-2009, 02:11 AM
I've created a new init_startup plugin (php code):


ob_start();
include('myphpscript.php');
$joerefcheck = ob_get_contents();
ob_end_clean();


it worked perfectly when referenced in my header, but then I've edited it and added a php line: break; at the end, so now it looks like this:


ob_start();
include('myphpscript.php');
$joerefcheck = ob_get_contents();
ob_end_clean();
break;


Since I've saved it, I get this error everywhere on my forum... even in control panel...
Fatal error: Cannot break/continue 1 level in C:\www\apache\htdocs\forum\includes\init.php(294) : eval()'d code on line 23


I've rebooted apache... I tried going manually to mysql and open plugin database and got rid of the break; and also disabled it in mysql manually, but it still doesn't work.

My whole forum is down and I get this error everywhere.

I am completely locked out of the forum.

PLEASE HELP.

Dismounted
01-06-2009, 02:33 AM
Add this to the end of your config.php and then remove the break:
define('DISABLE_HOOKS', true);
As for your plugin, why are you running a break in the first place?

jarosciak
01-06-2009, 02:41 AM
Man, you're a genius, thank you so much.
It worked.