• Hi There,

    I am a beginner developer with some HTML and CSS knowledge, very basic PHP.
    I have been working on WordPress site on a dummy domain, once finished I moved it real domain but didn’t migrate the database. it remained with dummy domain, which was redirected to real one. A year later dummy domain was no longer needed so I deleted it (i didn’t know database was attached because i have no knowledge of databases at all).
    The website stopped working of course. I have recovered from dummy database, a copy was made few days before deleting. I have migrated it and made sure wp_config.php contains right login details. the website still not working. I have reinstalled WordPress (apart from content folded). website not working. I have logged in to database and found all of my pages. but the website is not still not working.
    I had to create new wo_admin log in details, once connected, I can see my themes and plugins, but can’t see any pages.
    I assume there is a problem somewhere in my php files and WordPress is not aware of pages stored in the database.

    Has anyone got any ideas where and what I should look for? I am sure this is something really simple I just don’t know where to look.

    Thank you a lot!
    Liucija

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • I have recovered from dummy database, a copy was made few days before deleting. I have migrated it and made sure wp_config.php contains right login details. the website still not working.

    The site is empty, with one default first post. This indicates that the database migration is not completed.

    Make sure wp_config.php has the correct database name.

    Thread Starter crazyutka

    (@crazyutka)

    Hi Paulwpxp,

    I have checked wp_config.php multiple times, made sure all details are correct. Follow quidance how to migrate databasa and so on. All seams correct.
    But it’s still not working. I thunk the may be a mistake somewhere else? Would it be possible?

    If the info in wp-config points to the correct db name, then we have to go check if the db itself really contains all the content. I would login to the server and access the db via phpmyadmin (or any other db tool that your host offers) and just browse through the db table especially the wp_post table, see if it really contains content. But do this only if you’re comfortable with database tool, beware that making mistakes could damage or change the content.

    I suspected that the migration didn’t went through at all in the first place, leaving the site as if it’s freshly installed.

    Anyway, since you have the backup, you can repeat importing the db again and see if it works this time.

    Thread Starter crazyutka

    (@crazyutka)

    I have done everything you mentioned above.
    I can see my posts in database. What I have noticed is that GUID – are links to old domain not the new one. There are about 550 lines in wp_posts and majority of them has links to old domain.
    would this need to be changed? manually or there is a faster way?

    I have back up saved on my drive so I can always reinstall again if I make mistake.

    thank you a lot for your help

    The recommendation is NOT to change the url in GUID, keep it as is and the site will work just fine (if all other things done right)
    https://codex.ww.wp.xz.cn/Changing_The_Site_URL#Important_GUID_Note

    but all other links refer to old site must be changed to the new one

    I normally use this when moving WP from local dev to real server
    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    but lot of people use this kind of plugin to do the same job
    https://ww.wp.xz.cn/plugins/wp-migrate-db/

    Thread Starter crazyutka

    (@crazyutka)

    thank you for your reply.

    I have changed all the links using the plugin, however, it still haven’t solve the problem.

    I can see posts in data basa, files in FTP. But site is not pulled together.

    I can’t find anything useful online, it’s all about log in details, corrupted database or server being down. my case is non of these. there is something else in there that doesn’t work. I hope you have more ideas, Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘website not working after migration’ is closed to new replies.