No announcement yet.

Screwed Up Login Procedure Adding Plugin

  • Filter
  • Time
  • Show
Clear All
new posts

  • Screwed Up Login Procedure Adding Plugin

    I added a one line piece of code to hook login_login_success. I got an error when logging on that implied I had something seriously wrong just in that one line. And I couldn't log on to take the plugin out. So I deleted the plugin entry on the database level. Now when I try to log on to my website, I get this:

    Unable to add cookies, header already sent.
    File: /home/sapsuper/public_html/forums/includes/functions_login.php(176) : eval()'d code
    Line: 1

    The actual file generating this error is in functions_login.php by statement:

    PHP Code:
    $return_value true;
    $hook vBulletinHook::fetch_hook('login_verify_success')) ? eval($hook) : false;
    I seriously screwed something up - did I miss re-setting something in the database? Have I seriously destroyed anything? Can someone who is brilliant take pity on me and tell me how to fix this?

  • #2
    First, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version:

    Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

    Next, disable all plugins.

    Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

    define('DISABLE_HOOKS', true);

    Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it. Do you have the same problem?
    Kerry-Anne :)

    Twitter Blog


    • #3
      That's a bit of overkill, isn't it? All that really needed to be done is to execute a query to turn "off" the global plugin setting, then upload the tools.php file to forums/admincp, and use it to rebuild the datastore cache.

      I mean, I appreciate the help but I added one line to the login_verfiy_success hook, I didn't manually change anything else. It really would have been the very last option for me to re-upload all that stuff, my system has quite a few modifications and I really would hate to lose all that and start over.


      • #4
        Then you probably should post in the appropriate thread for that plugin over at

        Note: In addition to removing or disabling that plugin, you may need to delete the xml file for it from your includes/xml directory.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography

        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        • #5
          You can do this:

          define('DISABLE_HOOKS', true);

          Then go into the admincp and uninstall the modification properly,
          then remove define('DISABLE_HOOKS', true); from the config.php file again.


          • #6
            Thanks guys, I am all fixed. The rebuild of the datastore cache was the missing peice of the puzzle. And knowing about the tools.php will be useful in the future, I am quit sure. You can close this one with my thanks.


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