WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] image upload server path issue

[Resolved] image upload server path issue

  • Lil Chris
    Member

    @lil-chris

    Hey,
    This is probably a silly problem but… I recently moved my wordpress site from one server in mediatemple to another server in mediatemple. Everything seems to be working properly except when I try to upload an image to a page/post. This is the error i’m getting:

    Warning: is_dir() [function.is-dir]: Stat failed for /home/2511/domains/brucelessey.com/html/wp-content/uploads/2008 (errno=13 – Permission denied) in /nfs/c01/h08/mnt/2976/domains/brucelessey.com/html/wp-includes/functions.php on line 1746

    it seems to be trying to create a directory on the old server #, from the new server. How and where do I look to try and fix this pathing problem…?

    I can create new pages/posts with no problems, just can’t upload any images/media files. Any thoughts would be greatly appreciated…

    Thanks,
    Lil Chris

Viewing 6 replies - 1 through 6 (of 6 total)
  • Lil Chris
    Member

    @lil-chris

    Anybody have any thought on what I might try…?

    YES – read the faq in the Codex on moving your URL.

    Lil Chris
    Member

    @lil-chris

    I’ve searched the files as best I could, there doesn’t seem to be anything that specifically addresses my issue.

    Since the site has already been relocated and works (except for the upload/insert image), is there a specific file that handles the image upload path?

    Lil Chris
    Member

    @lil-chris

    Bump

    Lil Chris
    Member

    @lil-chris

    Solution found in another thread.

    1. Log into WordPress.
    2. Go to your Settings->Miscellaneous config screen.
    3. Examine the directory parameter for uploads.
    4. Changed server number in path. (this didn’t change when the site was moved, MT uses server numbers)

    Simple and silly as I thought, hope this helps others…

    goinhome50
    Member

    @goinhome50

    There is another solution as well (although not as easy as Lil Chris’ advice). If you examine your db files and see this string…

    /nfs/c01/h03/

    …and you’re familiar with working with phpMyAdmin, replace that string in any table that contains that string with:

    /home/

    If you follow Lil Chris’ advice, you might see that string in your “Store uploads in this folder” note at the top of the page…simply change the first string to home if you see that code in that input box, and it should work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] image upload server path issue’ is closed to new replies.