ZenphotoCMS Forum
Error when uploading images via admin - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Error when uploading images via admin (/thread-2136.html)



Error when uploading images via admin - thomeu - 2008-01-25

I get the following error after uploading images via admin:

Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid/gid is 7221/7221 is not allowed to access /mnt/san/usr/home/thomeu.es/web/casino_royale/galeria/albums/test-1 owned by uid/gid 80/80 in /mnt/san/usr/home/thomeu.es/web/casino_royale/galeria/zp-core/admin.php on line 181

Warning: Cannot modify header information - headers already sent by (output started at /mnt/san/usr/home/thomeu.es/web/casino_royale/galeria/zp-core/admin.php:181) in /mnt/san/usr/home/thomeu.es/web/casino_royale/galeria/zp-core/admin.php on line 212




Error when uploading images via admin - sbillard - 2008-01-25

Your server is preventing zenphoto from doing the upload. You will have to use FTP or change the permissions on the test-1 folder (and perhaps others as well) to allow zenphoto access (chmod 0777).




Error when uploading images via admin - timezero - 2008-01-27

I get the same error, and all my directories are chmoded to 777. Running the latest version of Zenphoto!

Edit:

It seems to be a bug in zenphoto. After I edited my album folder in zp-config.php to the default (/albums/) , and renamed my album folder back to 'albums' it works great.

see:

$conf['album_folder'] = '/albums/';




Error when uploading images via admin - sbillard - 2008-01-27

What was your album folder when you had the problem?




Error when uploading images via admin - timezero - 2008-01-28

Sorry, false alarm, it still not working!

Did a reinstall, but still get the same error.
My album folder was named /photos/ but I am using the default now.




Error when uploading images via admin - sbillard - 2008-01-28

Well, the problem is still the same, for some reason your server is preventing zenphoto from uploading the image. It could possibly be related to SAFE_MODE Restrictions. I am not familiar with what they pervent. I do know that a lot of PHP scripts have problems with SAFE_MODE.




Error when uploading images via admin - timezero - 2008-02-01

I see.

Thank you for your help! I guess I will be looking for another host (:




Error when uploading images via admin - sbillard - 2008-02-01

I did some more researc on safe mode. It will prevent scripts such as PHP from creating folders and files. So, as long as the server requires safe mode you will have to use FTP to upload your images.