Title: Options value missing after migration
Last modified: August 31, 2016

---

# Options value missing after migration

 *  [resting](https://wordpress.org/support/users/resting/)
 * (@resting)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/options-value-missing-after-migration/)
 * Options values are missing after migrating from Site A to site B.
    Here’s what
   I did: After exporting the entire DB, I replaced URL and Dir path of Site A with
   Site B. Then i import everything. All’s good except that values in Options framework
   is missing. Where is the DB value stored and how can I migrate it? Thanks.
 * [https://wordpress.org/plugins/options-framework/](https://wordpress.org/plugins/options-framework/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [resting](https://wordpress.org/support/users/resting/)
 * (@resting)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/options-value-missing-after-migration/#post-7252232)
 * Ok found this: [https://wordpress.org/support/topic/theme-delicate-theme-options-lost-when-moving-to-new-domain?replies=19#post-2654903](https://wordpress.org/support/topic/theme-delicate-theme-options-lost-when-moving-to-new-domain?replies=19#post-2654903)
 * > I have seen a lot of people fall in this trap. I am not familiar with this 
   > theme at all, but my guess is that it uses the WP Settings API to store options
   > in an array in the DB. Ordinarily the options would get stored thus:
   >  name 
   > => value
   > So, you would get something like:
   >  ‘background_image’ => ‘[http://path.to/old/url&#8217](http://path.to/old/url&#8217);
   > But using the WP API if you save the options, the options get encoded. So you
   > get something like this:
   >  type:length:value
   > Note that apart from the value, you have the length that is stored. So, your
   > background_image option above also gets the number 22 assigned for the length(
   > the path is 22 characters long).
   > When you are doing a find/replace via the DB, you are basically changing the
   > URL to ‘[http://new-path.to/old/new-url&#8217](http://new-path.to/old/new-url&#8217);,
   > which is 30 characters long, but your option still says “22”. This corrupts
   > your options array.
 * Fixing the s: length worked.

Viewing 1 replies (of 1 total)

The topic ‘Options value missing after migration’ is closed to new replies.

 * ![](https://ps.w.org/options-framework/assets/icon-256x256.png?rev=977481)
 * [Options Framework](https://wordpress.org/plugins/options-framework/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/options-framework/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/options-framework/)
 * [Active Topics](https://wordpress.org/support/plugin/options-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/options-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/options-framework/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [resting](https://wordpress.org/support/users/resting/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/options-value-missing-after-migration/#post-7252232)
 * Status: not resolved