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.
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.
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.
You must be logged in to reply to this topic.