Announcement

Collapse
No announcement yet.

Cannot delete user

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

  • [Forum] Cannot delete user

    while deleting user, getting error message, though user is being deleted. please let me know, how to fixing this issue?

    Fatal error: Call to a member function query_write() on null in /home/user/public_html/vbtt/hooks/userdata_delete.php on line 3

    userdata_delete.php code are:

    Code:
    <?php
    
    $this->dbobject->db->query_write("
        DELETE FROM vbtt_users WHERE uid = " . $this->existing['userid']
    );
    
    $this->dbobject->query_write("
        UPDATE vbtt_files_users SET uid = 0
        WHERE uid = " . $this->existing['userid'] . "
    ");

  • #2
    You have a modification that is breaking the function.

    To disable the plugin/hook system completely, edit includes/config.php and add the following code:
    Just below
    Code:
    <?php
    enter
    Code:
    define('DISABLE_HOOKS', true);
    Do you still have the same problem?
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.5.6 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #3
      No issue with disable the plugin/hook system completely but how to fixing on this error issue?

      Comment


      • #4
        First you need to establish whether that fixes the issue. It's a diagnostic step, rather than a fix in itself.

        If it does, you then re-enable plugins globally, and then start disabling them in the admincp one by one until you find the one that causes the issue.
        Having done that, you would then contact the author of the plugin for support.
        MARK.B | vBULLETIN SUPPORT

        TalkNewsUK - My vBulletin 5.5.6 Demo
        AdminAmmo - My Cloud Demo

        Comment

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