Text Widgets Deactivated on Cloning
-
We have a number of WP multisite installations running on virtual RHEL 6 servers in our data center. Most of those installs are deployed as either dev (devblogs.example.com) or prod (blogs.example.com) instances for the same sites. From time to time I’m called upon to clone a prod instance over its dev counterpart (yes, that sounds backwards to me too, but I’m not a WP developer, just a humble sysadmin).
Cloning is accomplished by taking prod off line after hours, doing a mysqldump of the db and then copying it along with the files (tarred up to preserver perms) over to the dev server. A search and replace is done on the sql dump file to substitute the dev hostname and subdomain for their prod counterparts. We do the same on the prod files. Then the dev db is overwritten with the modified sql and the modified prod files moved in to replace the old dev files.
Everything comes back perfectly — except all the sidebar (php-laden) text widgets. Those are all relegated to the Inactive Widgets area in the Dashboard’s Appearance… Widgets tab.
This wouldn’t be a real problem if it didn’t affect dozens of sites in each environment. Having to go through and manually repair things on all those sites is a tedious and demoralizing task.
Anyone have any ideas about how to avoid or solve this problem beyond increasing the number of interns we employ (which right now, and for the foreseeable future, is exactly zero)? Thanks.
- The topic ‘Text Widgets Deactivated on Cloning’ is closed to new replies.