The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Zlatev
    Posted 3 years 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


  2. Jeff Farthing
    Plugin Author

    Posted 3 years 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. Zlatev
    Posted 3 years 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

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic