Support » Plugin: Theme My Login » Bad 'switch_blog' action

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Farthing


    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?

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bad 'switch_blog' action’ is closed to new replies.