MediaShelf: image upload error

Home Forums Scripts Other Scripts MediaShelf: image upload error

This topic contains 1 reply, has 1 voice, and was last updated by  Nyx Midnight 1 year, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13922

    Nyx Midnight
    Participant

    This script will have made me cry a lot.

    I have two copies on my server, each for a different site. On the copy I installed today, I get this error when trying to upload cover images:

    Warning: move_uploaded_file(/public_html/megaten/megabooks/images/S_ddsmangaantho1.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/nyxm/public_html/megaten/megabooks/admin/item.php on line 125

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpkbLRkf' to '/public_html/megaten/megabooks/images/S_ddsmangaantho1.jpg' in /home/nyxm/public_html/megaten/megabooks/admin/item.php on line 125

    The other, older copy upload images without complaints and I don’t know what is different. I tried changing the folder’s permission to 777 but it didn’t change anything (my server allows upload with permissions at 755 anyway, it’s awesome that way).

    Any help would be greatly appreciated.

    #14750

    Nyx Midnight
    Participant

    I will freely admit that I am a bit of a durr, so I will post the solution here to 1) remember it myself and 2) help people who might get this error too.

    In the mediashelf-config.php file, the full server path for the image folder at line 101 has to start with /home/*user*/public_html/path/to/folder to work. Server quirk. I think it was Jem who helped me with this years ago.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.