Possible Bug. All theme settings are blown away when updating domain url thorugh the WP DB.

edited September 2016 in Other
Hello,

We were working on a clients site and when we went to switch the domains over, we went into the db and did a 

update wp_options set option_value=replace(option_value,'www.devsiteURL.com,'www.NewURL.com');

When this was done, all the theme options were reset to their defaults and we had to go in and change them all back. Any reason why this would happen?

-pxlounge

Comments

  • Hi,

    if you probably saw the database, inside options table, there is betheme tag where the following content is:

    a:276:{s:8:"last_tab";s:10:"custom-css";s:10:"responsive";s:1:"1";s:11:"nice-scroll";s:1:"1";s:13:"prev-next-nav";s:1:"1";s:5:"share";s:1:"1";s:19:"pagination-show-all";s:1:"1";s:13:"title-heading";s:1:"1";s:13:"page-comments";s:1:"0";s:10:"static-css";s:1:"0";s:8:"no-hover";s:0:"";s:13:"no-section-bg";s:0:"";s:17:"nice-scroll-speed";s:2:"40";s:11:"prettyphoto";s:10:"pp_default";s:17:"prettyphoto-title";s:1:"0";s:17:"prettyphoto-width";s:0:"";s:18:"prettyphoto-height";s:0:"";s:23:"math-animations-disable";s:1:"0";s:7:"mfn-seo";s:1:"1";s:16:"meta-description";s:27:"Just another WordPress

    it's serialized and this is the reason why your SQL request does not work. We recommend to use WP Migrate DB plugin instead which is compatible with serialized tables.
  • Thank you for the reply. I will make note of this in the future.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.