Invalid fetch_user hook killed my board!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zethon
    New Member
    • Aug 2006
    • 19

    Invalid fetch_user hook killed my board!

    I was trying to implement a fetch_user hook, and in my coding I accidentally refered to the "db" object as $db instead of $vbulletin->db like I should gave. As expected, I got an error when I reloaded the board.

    So, I went into my database, and manually disabled and then even removed the hook altogther. Problem is, I can't get my board back!

    The error is:

    Fatal error: Call to a member function on a non-object in /home/utyxqjyy/public_html/includes/functions.php(1219) : eval()'d code on line 10


    It looks like vBulletin is still complaining about that hook, even though it's gone! I've also disabled other hooks that use the same function.

    Help?!
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    You should not manually update the database, but instead use our build tools to manage this.

    Place in includes/config.php: define('DISABLE_HOOKS', true); below <?php on a new line and then go into the admincp.

    Go to the products/plugins page where you added your hook and disable it.

    Once disabled, you can remove this line from config.php again.

    Comment

    • zethon
      New Member
      • Aug 2006
      • 19

      #3
      Edit: Seems that it's only breaking for me (the admin)!

      If I delete my cookies and view the board, no problem. If I sign in under another user. No problem. If I sign in under my admin account, I get the above error! Help!!

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 74122

        #4
        It is because your datastore has invalid information. This is why we don't recommend deleting many things directly from the database. If you can log into your AdminCP, edit a plugin and save it to rebuild the datastore. This may fix your issue.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

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