Super difficult to migrate sites due to cctm_data option
-
Wodrpess Multisite already makes life impossible for people trying to migrate sites/networks to a new URL. This is mostly due to the database being full of instances of the old URL everywhere.
CCTM is adding to this problem in the cctm_data option of wp_x_options (x being a mulstisite blog id of course)
To confirm this, with WP-CLI (on Linux) run:
/path/to/wp-multisite$ wp --url=site.network.fake option get cctm_data | grep /
(Or try the old domain instead of /)
OR via SQL try
SELECT
option_value`
FROMwp_x_options
# change x
WHEREoption_name
= “cctm_data”`You’ll see a list of values (almost 40 in my case!) such as url, datef, email, image, etc which have been hardcoded with the original (old) URL of the site. In fact, you can also find other values such as
Since this is a json serialized set of options, I’m not sure there’s an easy way to replace all those values. Will try some things and report back. BTW, turning the plugin off and then on again doesn’t fix it.
Regardless, it’s just very problematic that the plugin stores the URL, it should just form all those values dynamically when needed! At the very least it could double check those values each time the plugin is activated (including when it’s updated).
https://www.ads-software.com/plugins/custom-content-type-manager/
- The topic ‘Super difficult to migrate sites due to cctm_data option’ is closed to new replies.