PDA

View Full Version : Error while cropping photos


gemma
10-20-2006, 07:24 PM
The following message appears after I try to crop a photo on the Edit Image page:

Warning: touch() [function.touch]: Utime failed: Permission denied in /home/glg4186/public_html/gallery/includes/12cropimageinc.php on line 161

Warning: imagejpeg() [function.imagejpeg]: Unable to open '../thumbnails/thumb_DSCN1002.jpg' for writing in /home/glg4186/public_html/gallery/includes/12cropimageinc.php on line 162

Warning: chmod() [function.chmod]: Operation not permitted in /home/glg4186/public_html/gallery/includes/12cropimageinc.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at /home/glg4186/public_html/gallery/includes/12cropimageinc.php:161) in /home/glg4186/public_html/gallery/includes/12cropimageinc.php on line 49

Any ideas?

DikkieBurger
10-20-2006, 07:50 PM
Please post your information on the "general info" page of your admin for more info.

gemma
10-20-2006, 07:53 PM
Host Information

URL http://www.stars-collide.com/gallery/admin/index.php

PHP-version 4.4.3 (Pixelpost's min requirement: PHP version: 4.3.0 )

MySQL version 4.1.21-standard (Pixelpost's min requirement: MySQL: 3.23.58 )

GD-lib bundled (2.0.28 compatible) with JPEG support

File Uploads to pixelpost site are possible.

Server Software Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b

EXIF Pixelpost is using exifer v1.5 for EXIF-information.

Paths
Guessed imagepath: /home/glg4186/public_html/gallery/images/

Configured Imagepath: ../images/

Image Directory: OK - Can we write to the directory? YES. CHMOD: 0777

Thumbnails Directory: OK - Can we write to the directory? YES. CHMOD: 0777

Language Directory: OK

Addons Directory: OK

Includes Directory: OK

Templates Directory: OK

Dennis
10-20-2006, 09:31 PM
Did you upload the photo first or was it there earlier? My first thought is that the error seems related to file permissions.

If that's not the case safe_mode could be activated. This is really an annoying setting which makes it hard for a script to touch files owned by another owner.

gemma
10-21-2006, 10:51 AM
I uploaded a load of photos and batch added them. I cropped half of that batch, but all of a sudden that message appeared and wouldn't let me crop anymore.

How would safe_mode be deactivated?

Dennis
10-21-2006, 11:00 AM
Safe_mode can be disabled by your hosting company. Please contact them and ask them if it is enabled.

If not, we have to look for another solution.

gemma
10-25-2006, 06:06 PM
if it was enabled, surely I'd be having problems with other things I have installed? I'll ask though.

Dennis
10-25-2006, 06:17 PM
Gemma, you can see this in a good FTP client. Please look at the user for the PHP files and the user for the images.

These are probably different.

gemma
10-28-2006, 09:56 PM
My host replied with:

Be informed that php safe_mode is off in server setting. However, you can try to override it by adding the line "safe_mode = On" in the php.ini file of your account.

Looks like it's something else.