• After migrating my site from one server to another my media library appears completely empty. The images are there, None of the links I create within posts or pages are broken. Anything having to do with image IDs unfortunately do break, as in the “featured image” and “gallery” features. It seems to me that moving the site from one server to another breaks the image ID’s? Anyone have any information on how I could fix this? I have hundreds of images uploaded and it would take days to get this set up manually.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    How did you move your site?

    Thread Starter bluedrag

    (@bluedrag)

    – put a fresh install of wordpress on the new server

    – copy/pasted the wp-content folder from my old server into the new one.

    – export all content into an xml file from the old server.

    – create a new empty database on the new server / update database information in wp-config.

    – import xml into new server.

    On a side note, I also lose all widget data this way, I’ve gotten used to just saving it in a seperate html file and inputting afterwards. But if there is something I can do to have widget data imported along with the rest I’d love to hear it.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yeah, that’s not how to move a site.

    See https://codex.www.ads-software.com/Moving_WordPress

    Basically,

    * Download all files.
    * Backup the database and download the resulting .sql file.

    * Create an empty db on the new site. Create and grant a user.
    * Edit wp-config.php (downloaded) for the db settings for the new host.
    * Import the .sql file into the db on the new host.
    * Upload the files.

    If you changed the URL, use this to change all URLs from the old one to the new one:
    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    Thread Starter bluedrag

    (@bluedrag)

    I’m sorry I’m not entirely sure what is different with the steps you listed and the things I listed, aside from the format of the exported content file.

    Could you elaborate on what step I missed?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    All the necessary settings are in the database, including plugins, the media library, etc. I never use the export/import tool to move a site because it misses a lot. You want to move the files and database and then do a bit of cleanup on the URLs (if there’s any change in the domain).

    Thread Starter bluedrag

    (@bluedrag)

    So how to you export a database then? through PHPMyAdmin?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you don’t have access to a command line, use phpmyadmin on both ends for export and import.

    Thread Starter bluedrag

    (@bluedrag)

    Thanks! I’ll try this out.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Media Library appears empty’ is closed to new replies.