Coppermine and PHP4.4.1 Coppermine and PHP4.4.1
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Coppermine and PHP4.4.1

Started by killerhorse, November 01, 2005, 01:59:17 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

killerhorse

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

Joachim Müller

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

killerhorse

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

Tranz


Joachim Müller

...and do as suggested in the page I refered to.