[wp-hackers] WordPress deployment/relocation steps

Blue Chives info at bluechives.com
Mon Jun 27 19:17:14 UTC 2011


On 27 Jun 2011, at 20:06, Justin W Hall <justin at justinwhall.com> wrote:

> Well, then here is a question. This plugin has been recommend to me for this process a couple of times and also found it with a repetuable blog post :
> Blog Post:
> http://yoast.com/move-wordpress-blog-domain-10-steps/
> Plugin:
> http://wordpress.org/extend/plugins/search-and-replace/
> Is that plugin re-serializing the database?
> On Jun 27, 2011, at 2:52 PM, Helen Hou-Sandi wrote:
>> No, he's talking about serialized data in the database, which looks
>> something like
>> a:3:{s:18:"nav_menu_locations";a:1:{s:7:"primary";i:3;}s:12:"header_image";s:77:"
>> http://www.yourdomain.com/wp-content/themes/twentyten/images/headers/path.jpg";s:16:"background_color";s:6:"FFFFFF";}
>> . The s:# indicates the length of the string, and if the actual length of
>> the string does not match that number, that array will no longer be valid
>> and you will lose the use of whatever data is in there. In the case of what
>> I pasted over, you would lose any theme options you set, such as the nav
>> menu, header image, and background color. There's plenty of serialized data
>> in the WordPress database, and if your domain names are different lengths
>> you really should run a script of some kind to properly reserialize. It's
>> possible that you just haven't noticed something being wrong or you are
>> fortunate not to currently have anything immediately noticeable that uses
>> the serialized data, but that doesn't mean that nothing is breaking. There
>> are some tools out there to help you do this (e.g.
>> http://interconnectit.com/124/search-and-replace-for-wordpress-databases/ -
>> not personally tested)
>> --
>> Helen Hou-Sandi
>> http://www.helenhousandi.com
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list