Announcement

Collapse
No announcement yet.

Invalid fetch_user hook killed my board!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?!

  • #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


    • #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


      • #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...
        X