WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] sidebar widgets don't transfer with rest of site? (4 posts)

  1. nadine00
    Member
    Posted 2 years ago #

    Hi,

    So, I'm having some problems with sidebar widgets. Basically, I have a local version of my site running, and a test site on a different server. I export wordpress, I update the server files, I transfer the database over.

    But the sidebar widgets don't seem to make it over. Basically, its like the sidebars don't update. And I'm too sure why? Is there something I'm missing? Is there a bug? It seems to be only the Text widgets doing this.

    First time its ever happened.

    Ideas?

    Thanks!

  2. Mitchell Bundy
    Member
    Posted 2 years ago #

    Do you do a search and replace of your DB files to replace your test URL with your live site's URL??
    If that's the case, it will corrupt serialized data that contains your URL and break all your widgets.

  3. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    Did you do a search & replace on the database? If so, this is most likely due to the content of the widgets being stored as serialized data. This can happen if you do a normal search & replace on the database (or on the database backup file) to update all instances of your local URL to the the site's live URL.

    To get around this if you are using your hosts file to point to virtual servers in XAMPP/MAP/WAMP, at the start of the project you can call your local version something like yoursiteaddress.loc when the live address would be yoursiteaddress.com - so the number of characters doesn't change. As its too late in this instance you need to either recreate the widgets or do search & replace on the database using the marvelous search & replace tool from David & the team at interconnect/it:
    http://interconnectit.com/124/search-and-replace-for-wordpress-databases/

  4. nadine00
    Member
    Posted 2 years ago #

    Oh ok, this is likely the problem. Thanks for the tip.

Topic Closed

This topic has been closed to new replies.

About this Topic