Upgrade doesn't alter tables in multisite
-
We’ve been using Subscribe2 for about three years in a multisite setup of approximately 1,000 sites. We did an upgrade a few months ago and noticed that a number of the blogs could no longer subscribe new users, either through the sidebar widget or manually inside the admin.
From looking through the error logs, we found that it was because the ‘time’ field was missing from the wp_000_subscribe2 table (where 000 is the ID of the multisite blog).
But, it only affected sites that were created before the upgrade. So, if the version of Subscribe2 that was originally installed was the version after the “time” column was added, it worked fine, but not if it was installed before that field was added. In other words, the new columns were not being added to the table during the upgrade process, only the initial installation.
We were able to fix this manually by running the queries to alter the table to the new structure (adding “time”, “conf_date”, “conf_time” and “conf_ip”), after which the subscriptions started working. You’ll want to update this in your code so that it correctly alters the table structure in a multisite configuration.
- The topic ‘Upgrade doesn't alter tables in multisite’ is closed to new replies.