Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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...

Cheers.

share|improve this question

2 Answers 2

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

 
discard

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.