Huge problem - please help asap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jarosciak
    Member
    • Apr 2005
    • 69

    Huge problem - please help asap

    I've created a new init_startup plugin (php code):

    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:

    PHP Code:
    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.
  • jarosciak
    Member
    • Apr 2005
    • 69

    #2
    Ok, just for someone's reference:

    I've added this to the end of my config.php and then removed the plugin:

    PHP Code:
    define('DISABLE_HOOKS', true);


    Now forum is back to normal.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...