Forums

[resolved] Changed hosts, whoops! (3 posts)

  1. BlueRaja
    Member
    Posted 3 years ago #

    Unaware of the import/export option, I copied my WordPress files and imported the database manually from my old host to the new one.
    Unfortunately, now when I try to add an image I get the message that says:

    Unable to create directory /old/long/directory/username/Wordpress/wp-content/uploads/2009/02. Is its parent directory writable by the server?

    This is not the directory WordPress is in. It's the directory it was in, on the old host. The new directory is writable, is owned by me etc. etc., but resides at /new/path/username/Wordpress/wp-content/uploads/.

    How do I change the directory WordPress thinks it lives in?

  2. stvwlf
    Member
    Posted 3 years ago #

  3. BlueRaja
    Member
    Posted 3 years ago #

    Hey thanks, I got it.

    That link you sent me was a big help - the only difference was the name of the option that needed changing. Here's what I did to fix it:

    () Follow the steps from the link above (QuickFix section), but add this instead to functions.php:

    update_option('upload_path', '/new/path/username/Wordpress/wp-content/uploads');

Topic Closed

This topic has been closed to new replies.

About this Topic