forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: killerhorse on November 01, 2005, 01:59:17 pm

Title: Coppermine and PHP4.4.1
Post by: killerhorse on November 01, 2005, 01:59:17 pm
Hello,

Last night I have upgraded my PHP installation to 4.4.1. After that it was not possible to add a new picture to my Galery.
The Apache Webserver wrote the following error messages into the error_log:

Tue Nov 01 12:36:15 2005] [error] [client 84.113.150.xxx] PHP Warning: imagejpeg(): Unable to access albums/Katzen_08_bis_10_2005/thumb_test.jpg in /home/laufforum/subdomain.example.com/include/picmgmt.inc.php on line 218, referer: http://subdomain.example.com/searchnew.php?insert=1

[Tue Nov 01 12:36:15 2005] [error] [client 84.113.150.xxx] PHP Warning: imagejpeg(): Invalid filename 'albums/Katzen_08_bis_10_2005/thumb_test.jpg' in /home/laufforum/subdomain.example.com/include/picmgmt.inc.php on line 218, referer: http://subdomain.example.com/searchnew.php?insert=1

[Tue Nov 01 12:36:15 2005] [error] [client 84.113.150.xxx] PHP Warning: chmod(): Unable to access albums/Katzen_08_bis_10_2005/thumb_test.jpg in /home/laufforum/subdomain.example.com/include/picmgmt.inc.php on line 224, referer: http://subdomain.example.com/searchnew.php?insert=1

[Tue Nov 01 12:36:15 2005] [error] [client 84.113.150.xxx] PHP Warning: chmod(): No such file or directory in /home/laufforum/subdomain.example.com/include/picmgmt.inc.php on line 224, referer: http://subdomain.example.com/searchnew.php?insert=1
[Tue Nov 01 12:36:15 2005] [error] [client 84.113.150.xxx] PHP Warning: getimagesize(): Unable to access albums/Katzen_08_bis_10_2005/thumb_test.jpg in /home/laufforum/subdomain.example.com/include/picmgmt.inc.php on line 226, referer: http://subdomain.example.com/searchnew.php?insert=1

[Tue Nov 01 12:36:15 2005] [error] [client 84.113.150.xxx] PHP Warning: getimagesize(albums/Katzen_08_bis_10_2005/thumb_test.jpg): failed to open stream: No such file or directory in /home/laufforum/subdomain.example.com/include/picmgmt.inc.php on line 226, referer: http://subdomain.example.com/searchnew.php?insert=1

I have compiled PHP with the this options:
configure --with-mysql --disable-cgi --enable-safe-mode \
--enable-memory-limit --enable-magic-quotes --with-gettext \
--enable-calendar --with-gd --with-jpeg-dir --with-png-dir \
--with-freetype-dir --enable-gd-native-ttf \
--with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-xml \
--with-dom --with-imap --with-kerberos \
--enable-inline-optimization --with-imap-ssl \

The same configuration works fine with PHP4.4.0 or 4.3.x
Can anybody help me?

SORRY! for my bad english, I hope you can understand me :-)

Christian
Title: Re: Coppermine and PHP4.4.1
Post by: Joachim Müller on November 01, 2005, 03:18:28 pm
looks like a permission issue to me. Make sure that the albums folder and everything within it is CHMODed as suggested in the docs: the user the webserver service runs under needs rwx permissions. Try http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
Title: Re: Coppermine and PHP4.4.1
Post by: killerhorse on November 01, 2005, 04:40:49 pm
I don't think it's ab permission problem. I have set the permissions of the album folder an alll subfolders and files to 0777.
Its also no problem to upload files but the creation of the thumb_filename.jpg and normal_filename.jpg fails.
If I install the PHP Version 4.4.0 with the same configuration it works... But in PHP4.4.0 there are some security bugs...

Christian
Title: Re: Coppermine and PHP4.4.1
Post by: Tranz on November 01, 2005, 04:48:05 pm
Then try 0755
Title: Re: Coppermine and PHP4.4.1
Post by: Joachim Müller on November 01, 2005, 05:08:10 pm
...and do as suggested in the page I refered to.