Whenever i try to move the website from local to live or viceversa Theme Option settings resets. Exporting the settings and importing it couldnot restore the images which is an upload field(P.S.it restores the text fields).I tried changing the urls of the export file i.e from


but no use. I faced this problems in redux framework, nhb options framwork and even with most of the premium themes. If anybody faced this problem or know any solution for this You can help me sorting out.

  • What process you follow for migrating sites? Commented Jan 23, 2014 at 5:53
  • i do find and replace the old url with the new one in SQL.Then i tweak the wp-config.
    – Raja67
    Commented Jan 23, 2014 at 6:37

3 Answers 3


I will suggest not to replace the data directly in the sql file. This is because wordpress stores data in terms of serialized manner. The reason for simply replacing data in serialized form leading to problems is that serialized data saves string length with it, so if you replace strings the length most likely will differ.

The search-and-replace-tool takes this into account and saves the new string length. In this case you first create the database and import the sql file. Then use this script to make a search and replace directly in the database.


We just pushed code to the repo that does this for you provided the attachment ID is the same. ;)

Redux 3.2 will resolve this.


You can also consider the Duplicator plugin which makes a clone of your website (including SQL), so you will have an archive with all your files and an installer.php file which will guide you through the setup process on the new host.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.