ZenphotoCMS Forum
safe mode on different versions - 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: safe mode on different versions (/thread-3028.html)



safe mode on different versions - quest02 - 2008-06-03

HI .. My host is running safe mode & have used 1.1.3 which I can upload pics through the browser with no problems. Just updating to 1.16 & now get the error mesaage 'cannot upload" safe mode restriction"

is there something I can change in the code so I don't get this error message?

thanks




safe mode on different versions - sbillard - 2008-06-03

Did you actually try the upload? Tht message should be a warning.




safe mode on different versions - quest02 - 2008-06-03

Thanks for the quick reply

Yes I did & I get the error message

Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid/gid is 316601/100 is not allowed to access /home/ph/pha/mywebsitehere/public/www/gallery/albums/test owned by uid/gid 80/80 in /home/ph/pha/mywebsitehere/public/www/gallery/zp-core/admin.php on line 337

Warning: Cannot modify header information - headers already sent by (output started at /home/ph/pha/mywebsitehere/public/www/gallery/zp-core/admin.php:337) in /home/ph/pha/mywebsitehere/public/www/gallery/zp-core/admin.php on line 368




safe mode on different versions - sbillard - 2008-06-03

You might try chmod of your albums folder(s). The upload code does not appear to be changed since 1.1.3. Both use the move_uploaded_file() function so I don't know why the former should work and the latter not.