The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Custom Sidebars
[resolved] Migrating to a new server (3 posts)

  1. waaalrus
    Posted 2 years ago #

    I migrated a site from one server to another with a different hostname using this process:

    1. copy files and adjust wp-config.php.
    2. backup database
    3. update the hostname in the database file
    4. restore the database on the new server

    I found that the Custom Sidebars plugin on the new server only had the original set of custom sidebars, not the ones that were created in the original site. I fixed this by recreating the custom sidebars and reassigning them to pages (as well as recreating the settings we had on the "Default Sidebars" tab). I checked and the values in the database seemed to be the same (sidebars_widgets and cs_sidebars in wp_options).

    Is there something I need to do to get the Custom Sidebars settings to migrate to a new site? My production site is fine now but I use this process to update my test server.



  2. J K
    WPMU DEV Support Staff
    Posted 2 years ago #

    Hi there @waaalrus

    I hope your well today and thanks for your question!

    This is most likely as if it's a serialized array or string in the database, the search and replace of a text editor won't work for that.

    Try using this script here https://github.com/interconnectit/Search-Replace-DB

    That should work :)


    Kind Regards

  3. waaalrus
    Posted 2 years ago #

    Thanks! This was the perfect solution.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Sidebars
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.