[resolved] open_basedir, Server migration and wp_postmeta - lots of errors (2 posts)

  1. mores
    Posted 7 years ago #

    Catchy title, ey?

    Okay, first I should say that this only happens when I activate my plugin to automatically generate header images and thumbnails.
    But it's a general question.
    I recently moved my site from one server to another (same host only newer machine). Obviously the entire structure is different, as in /users/user123/home/ is now something else.

    I made a DB dump then upped it again, now I get all kinds of errors for old posts and their uploaded images. Example:

    I can't find any reference to the old directory structure in the wp_posts table, but wp_postmeta is full of it.

    So ... what's going on here? Any ideas? Any "Hey I had that exact problem last week and here's the solution" fixes?

  2. mores
    Posted 7 years ago #

    Hmmm ... let's say this issue is resolved.
    I just did a mass string replace in the database to get rid of the actual path, I noticed all the newly uploaded images were added to the wp_postmeta table using just their filename, and not the entire path+filename.
    So ... path removed, all is fine.

Topic Closed

This topic has been closed to new replies.

About this Topic