WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've noticed a problem that pops up occasionally when moving a WP install from one place to another (usually the same server.)

I copy all the files to their new location, get a mysql dump, update all references to the old paths in the sql file, then import it to the new database.

Everything always works just fine apart from custom settings that have been added using register_setting. I can still see them in the database, but WP completely ignores them, and they need to be added again in the backend.

Is there something obvious I'm overlooking here? I can post up the code I'm using to build the custom settings panels if necessary...


share|improve this question
up vote 0 down vote accepted

Mostly a dupe: Why is my database import losing text widget data?

Doing a search and replace on an sql dump breaks URLs in the serialized data of widgets and theme options. See the link above for better ways to change URLs when moving WP sites.

share|improve this answer
excellent, cheers. – market Jul 12 '11 at 11:54

You're best bet is to update the URL: http://codex.wordpress.org/Changing_The_Site_URL

Try avoided editing anything directly in the database.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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