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 recently moved my wordpress installation to a new domain. Everything worked fine; all my images, posts and plugins copied across fine. My widget setup seems to be gone after moving domain. I can see the setup in the database but nothing on the page. Is it some manual thing you have to do to get the widgets to follow?

share|improve this question

Redrag and drop them in the widgets area.

share|improve this answer

Put this function into functions.php in the wp-include folder:

function maybe_unserialize( $original ) {
    if ( is_serialized( $original ) ) {
        $fixed = preg_replace_callback(
            $original );
        return @unserialize( $fixed );
    return $original;
function serialize_fix_callback($match) { return 's:' . strlen($match[2]); }
share|improve this answer
Please, use the WYSIWYG tools to properly format you Answer. An explanation about what the code does is welcome as well. – brasofilo Apr 4 '13 at 12:43

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.