Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in WordPress import

Tags:

php

wordpress

I am changing my website hosting, so I made a backup for everything, themes, DB and used the Export utility in WP to export all posts, pages, etc.

Now I am trying to import posts, pages, users in the new hosting but I am getting the following errors:

Failed to create new user for John Their posts will be attributed to the current user.
Failed to create new user for guest. Their posts will be attributed to the current user.
Failed to create new user for Sam. Their posts will be attributed to the current user.
Failed to import Media “MW profile”
Failed to import Media “LA house”
Failed to import Media “Gold”
Failed to import Media “Archive”
Failed to import Media “21882183”

...etc

I checked the import xml file, paths inside it but I don't see any problem as paths in the import XML file are exactly the same as images real paths.

So can someone please tell me what I might be doing wrong here, and how to solve this problem?

like image 697
MChan Avatar asked Sep 15 '25 07:09

MChan


1 Answers

Here's what I'd do:

  • Copy all the files and folders from the old hosting to the new hosting.
  • Dump the database on the old hosting, and import it to the new hosting.

(at this step you'll have a full, complete backup of your original WP install).

  • If necessary, adjust the database connection parameters on your wp-config.php file to reflect your new hosting (some hosts force the db prefix name, and it could be different from your original db name).

  • You should now have an identical WP install on every aspect.

like image 74
That Brazilian Guy Avatar answered Sep 16 '25 22:09

That Brazilian Guy