WordPress.org

Ready to get started?Download WordPress

Forums

Upload Error (10 posts)

  1. Tusk
    Member
    Posted 9 years ago #

    Warning: copy(/home/tusk/public_html/wp-content/uploads/babyowned.jpg): failed to open stream: Permission denied in /home/tusk/public_html/wp-admin/upload.php on line 170
    Couldn't upload your file to /home/tusk/public_html/wp-content/uploads/babyowned.jpg.

    How can I stop this? the folder settings are set to 776.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Folder setting could be different ?
    Try 766, 755 ? maybe only 777 will work.

  3. Tusk
    Member
    Posted 9 years ago #

    Nope, still nothing. It seems to be an actual error in the code.

  4. Tusk
    Member
    Posted 9 years ago #

    Sorry, but this is really important to me so I must bump.

  5. Set both /wp-content/ and /uploads/ to 777 and try again.

  6. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Does your server error log reveal any problems ?

  7. Brigitte
    Member
    Posted 8 years ago #

    When I try uploading something I get this error:

    Warning: copy(): open_basedir restriction in effect. File(/home/dakishi/public_html/log/wp-content/images/rail_info2.gif) is not within the allowed path(s): (/home/dakishi/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/dakishi/public_html/log/wp-admin/upload.php on line 170

    Warning: copy(/home/dakishi/public_html/log/wp-content/images/rail_info2.gif): failed to open stream: Operation not permitted in /home2/dakishi/public_html/log/wp-admin/upload.php on line 170
    Couldn't upload your file to /home/dakishi/public_html/log/wp-content/images/rail_info2.gif.

    does anyone know what the problem is? Sorry if it's something really simple but I'm confused. Thanks.

  8. Mark (podz)
    Support Maven
    Posted 8 years ago #

    "open_basedir restriction in effect."
    that's a hosting issue.
    Copy the error message to them, tell them really clearly that it has nothing to do with WP - as they will blame WP first - and ask them for alternatives.

    Who is your host ?

  9. Brigitte
    Member
    Posted 8 years ago #

    My host is Surpasshosting

  10. mpm
    Member
    Posted 8 years ago #

    /home/tusk/public_html/wp-admin/upload.php on line 170

    do I chmod the folder or the file - or both?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.