Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Coppermine and PHP4.4.1  (Read 3995 times)

0 Members and 1 Guest are viewing this topic.

killerhorse

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Coppermine and PHP4.4.1
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Coppermine and PHP4.4.1
« Reply #1 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
Logged

killerhorse

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Coppermine and PHP4.4.1
« Reply #2 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
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Coppermine and PHP4.4.1
« Reply #3 on: November 01, 2005, 04:48:05 pm »

Then try 0755
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Coppermine and PHP4.4.1
« Reply #4 on: November 01, 2005, 05:08:10 pm »

...and do as suggested in the page I refered to.
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 21 queries.