Delete Blog Error

Tried to delete a blog but received below message.

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/s28632/public_html/wp-admin/includes/mu.php on line 50

Warning: Cannot modify header information – headers already sent by (output started at /home/s28632/public_html/wp-admin/includes/mu.php:50) in /home/s28632/public_html/wp-includes/pluggable.php on line 856

Your assistance please. Thank you.

  • SimonJ
    • WPMU DEV Initiate

    I had this problem few days ago on my test installation, without multi-db.

    In my case, although the blog was listed in the blog list of the admin panel, it wasn’t properly installed. The Db tables weren’t created.

    If I tried to delete it, I received an error similiar to the one you pasted above (not sure if it was about the axact same line number).

    Click the back button, the blog is indeed deleted from the list.

    So create a blog for testing. Then, try to access the backend of this blog or the url. Any error message ? If the tables are not properly created, you should see a message about an error in the installation process asking to contact the admin of the system.

    Look in your database… Did all the tables were created?

    If no, you have to figure why…

    In my case, it was an error in my wp-config.php. I made an mistake in the define’DB_CHARSET’ section, so WPMU wasn’t able to create the tables.

    Hope this can help you.

    S.

  • Kwee Chek
    • The Incredible Code Injector

    In the error.log file and shown below two statements;

    [04-May-2009 07:09:17] WordPress database error Table ‘s28632_global.wp_blogs’ doesn’t exist for query SELECT * FROM wp_blogs WHERE domain = ‘cca.sg’ made by require_once

    [04-May-2009 12:47:01] WordPress database error Table ‘s28632_d4.wp_signup_language’ doesn’t exist for query SELECT COUNT(*) FROM wp_signup_language WHERE language_blog_domain = ‘cca.sg’ AND language_blog_path = ‘/’ made by signup_language_language_import

    In wp-config.php;

    1) Should I change this define(‘DB_NAME’, ‘s28632_wpmu’:wink: to define(‘DB_NAME’, ‘s28632_global’:wink:? s28632_wpmu is my first wpmu setup database and s28632_global is my subsequent multi-db setup.

    2) Should I change this define(‘DB_CHARSET’, ‘utf8’:wink:; to define(‘DB_CHARSET’, ‘latin1’:wink:;

    3) Should I change this define(‘VHOST’, ‘yes’:wink:; to define(‘VHOST’, ‘no’:wink:;

    4) Is this $table_prefix = ‘wp_’; correct?

    5) Is this define( “WP_USE_MULTIPLE_DB”, false ); correct?

    Thank you.

  • Kwee Chek
    • The Incredible Code Injector

    Hiya,

    Can you please verify that this is not a plugin issue by renaming /mu-plugins/ and /plugins/. I ask because that error doesn’t look like it’s Multi-DB related.

    Thanks,

    Andrew

    Hi Andrew, I’ve posted the error.log and wp-config.php queries above. Am using Edublog Clean theme, what should I do next….?

    Realised another problem, tried to logout at the frontpage’s logout link (http://cca.sg/wp-login.php?action=logout) and below message shown.

    You are attempting to log out of Singapore Co-Curricular Activities Community Site

    Please try again.

    Thank you for your time.

  • Andrew
    • Champion of Loops

    Hiya,

    First, I’m not convinced this is a Multi-DB issue. If it were someone would

    have mentioned it long before now.

    1) Should I change this define(‘DB_NAME’, ‘s28632_wpmu’:wink: to define(‘DB_NAME’, ‘s28632_global’:wink:? s28632_wpmu is my first wpmu setup database and s28632_global is my subsequent multi-db setup.

    Just set this to your global db. Leave it alone after that.

    2) Should I change this define(‘DB_CHARSET’, ‘utf8’:wink:; to define(‘DB_CHARSET’, ‘latin1’:wink:;

    If you’re tables are latin1 then give it a go. Also take a look at the links mentioned earlier about the character set.

    3) Should I change this define(‘VHOST’, ‘yes’:wink:; to define(‘VHOST’, ‘no’:wink:;

    Best to leave that one alone.

    4) Is this $table_prefix = ‘wp_’; correct?

    Correct.

    5) Is this define( “WP_USE_MULTIPLE_DB”, false ); correct?

    Yep, that’s correct.

    Thanks,

    Andrew