Error when uploading images via admin

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

Comments

  • 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).
  • 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/';
  • What was your album folder when you had the problem?
  • 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.
  • 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.
  • I see.

    Thank you for your help! I guess I will be looking for another host (:
  • 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.
Sign In or Register to comment.