• Resolved nadine00

    (@nadine00)


    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Moderator cubecolour

    (@numeeja)

    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/

    Thread Starter nadine00

    (@nadine00)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘sidebar widgets don't transfer with rest of site?’ is closed to new replies.