WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
Bad 'switch_blog' action (3 posts)

  1. entr
    Member
    Posted 1 year ago #

    In the case there TML is network activated in MS, during the poccess of site activation/creation - plugin has already loaded when wpmu_create_blog() performs install. It uses switch_to_blog and TML hooks to switch_blog SELECTing INSERTing options resulting in "table doesn't exist" errors.

    There's a WP_INSTALLING constant at disposal to prevent that. Cheers

    http://wordpress.org/extend/plugins/theme-my-login/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    I didn't run across this problem. Your saying I should basically check if WP_INSTALLING first in the callback and bail if it is?

  3. entr
    Member
    Posted 1 year ago #

    Jeff, yes. I think I saw warnings/notices with WP_DEBUG set true. Problem here is wpmu_create_blog() performs switch_to_blog() triggering the switch_blog action BEFORE install_blog() which creates the new blog tables.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic