• Resolved scepterus

    (@scepterus)


    Hello, I’ve used this plugin to migrate to a new hosting site, and I thought everything looked ok and made sure with other people as well, but when I changed the website’s domain in the WordPress settings the site broke and is displaying only links and texts now.

    did I miss anything? is there any way to fix this?
    thanks!

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey @scepterus,

    When you change the domain name from the WP setting, that will break your site in most cases. The proper place to update the domain name is at install time. If you want to change the URL on an actively running site you might try this plugin:

    https://wordpress.org/plugins/velvet-blues-update-urls/

    Hope that helps~

    Thread Starter scepterus

    (@scepterus)

    hey thanks for the quick reply, actually I found out what my problem was, the wp-config was accessing the previous site’s IP, and when I make a change it is replaced with the current db, and I’m trying to get it to work now, but it’s a pain.

    Thanks for the update!

    Thread Starter scepterus

    (@scepterus)

    sure, i still can’t get it to connect to the db, maybe if you told me how it migrates the db, does it rename the db into the current one? because it does not create the original user, and giving it the default creds for the db just ends with the reason I posted this topic.

    tl;dr something with the db migration is weird and that’s why the site gets broken.

    On 99% of most hosts, you have to create the database ahead of time, if a DB user does not exist on the database you will have to create that as well and make sure the database user has privileges to the new database you created. Then at install time, you enter in the new database name and a DB user that has privileges to that database.

    Duplicator then uses the SQL script it made when it creates the package to install the new tables and data to the database. The installer will also update the wp-config.php with the inputs you gave it for the database at the end of the install.

    Here is a step by step:
    https://snapcreek.com/duplicator/docs/quick-start/

    Here are some common DB issue fixes as well:

        – I’m running into issues with the Database what can I do?
        – https://snapcreek.com/duplicator/docs/faqs-tech/#faq-installer-100-q

    Hope that helps~

    Thread Starter scepterus

    (@scepterus)

    well, I did everything correctly and the new database is even the same size as it said on the old site before the migration, but still, the website is broken if I give it the parameters to connect to the new DB.

    it’s like it does not load the theme or anything else, just the links and text. I also cannot log in to the wp-admin. once I change the wp-config back to use the DB of my old host everything works.

    You might try taking a look at the FAQ:

        – Why are some of my plugins/images/links/styles not working?
        – https://snapcreek.com/duplicator/docs/faqs-tech/#faq-installer-240-q

    It’s possible that during the setup process something was missed. Also installing in safe mode can help with some setups. The final install report will also be important to check out to see if any errors are reported.

    Hope this helps~

    Thread Starter scepterus

    (@scepterus)

    hey i tried this twice, and had no errors as far as I remember.

    WP-config file: Check the wp-config.php for additional logic which points to an old URL

    yeah, mine has it, it points to an IP address that the database is stored in, but today I found out, it’s not the same server that runs the old website.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Migration goes well but site breaks after change’ is closed to new replies.