Widgets are not showing after moving domain

I recently moved my wordpress installation to a new domain. Everything worked fine; all my images, posts and plugins cop

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?

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 edited Feb 20, 2012 at 15:20 Scott 12.3k15 gold badges68 silver badges99 bronze badges asked Dec 22, 2011 at 8:34 PaparappaPaparappa 1034 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

Redrag and drop them in the widgets area.

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

function maybe_unserialize( $original ) {
    if ( is_serialized( $original ) ) {
        $fixed = preg_replace_callback(
            '!(?<=^|;)s:(\d+)(?=:"(.*?)";(?:}|a:|s:|b:|i:|o:|N;))!s',
            'serialize_fix_callback',
            $original );
        return @unserialize( $fixed );
    }
    return $original;
}
function serialize_fix_callback($match) { return 's:' . strlen($match[2]); }

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744339330a4569309.html

相关推荐

  • Widgets are not showing after moving domain

    I recently moved my wordpress installation to a new domain. Everything worked fine; all my images, posts and plugins cop

    8天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信