• When deleting a user, I am taken to a page that displeys these error messages:
    Warning: Bad arguments to implode() in /homepages/37/d88440971/htdocs/wp-admin/users.php on line 141
    Database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1]
    DELETE FROM wp_comments WHERE comment_post_ID IN ()
    Database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1]
    DELETE FROM wp_post2cat WHERE post_id IN ()
    Database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1]
    DELETE FROM wp_postmeta WHERE post_id IN ()
    Warning: Cannot add header information - headers already sent by (output started at /homepages/37/d88440971/htdocs/wp-admin/users.php:141) in /homepages/37/d88440971/htdocs/wp-admin/users.php on line 156

    However, the user is deleted from the database. I will try to see what is happening and fix the bug.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter smoussawer99

    (@smoussawer99)

    I forgot to mention that this is in the latest build from 4/28.

    Looks like a bug. Just use phpadmin to delete the user or try upgrading to the latest build to see if the problem persists.

    Thread Starter smoussawer99

    (@smoussawer99)

    Aha. The problem doesn’t persist when the user has a post in the database. I think the best way to solve this would be to add an IF statement to check if the user has any posts first… however I am not quite sure as of right now. I will try some options out.

    I find this a continuous issue with WP … when a particular field is empty I get a php error.

    Fixed.

    Thread Starter smoussawer99

    (@smoussawer99)

    I got to thinking and maybe it would be best to have an option asking if you would like to delete this user’s posts, comments, etc. For instance, I could have a poster with over 100 outstanding posts for my weblog and very insightful comments. All of a sudden, this user does something I decide to fire him for and I would like to remove his access totally from the site, but by doing so I would have to give up his posts.

    Good point smoussawer99

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Deleting a user “bug”’ is closed to new replies.