Advanced search  

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]

Pages: [1] 2   Go Down

Author Topic: CPG 1.3 NOT working with php-4.3.10!!  (Read 41891 times)

0 Members and 1 Guest are viewing this topic.

NetPublicist

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
CPG 1.3 NOT working with php-4.3.10!!
« on: December 16, 2004, 06:08:34 am »

I installed CPG 1.3 on my server running php-4.3.9 with no problems, everything was working great untill I rebuilt Apache with php-4.3.10, I started getting database errors on every page of CPG with the following error message at the bottom of each page:

Fatal error: Unsupported operand types in /home/nearhim/public_html/photos/include/functions.inc.php on line 1334

I rebuilt Apache with php-4.3.9 and the errors went away and CPG started working just fine again!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #1 on: December 16, 2004, 08:54:01 am »

line 1334 of functions.inc.php reads for me
Code: [Select]
            $total_query_time += $qtime;If it's the same for you, you could easily make this a two-step process, like this
Code: [Select]
            $total_query_time = $total_query_time + $qtime;
Joachim
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #2 on: December 16, 2004, 10:48:43 am »

I had seen this bug in early versions of PHP5 guess they copied it while back porting some stuff in a hurry to fix the security flaws, but my site http://tariquesani.net which is running PHP 4.3.10 is working fine
Logged
SANIsoft PHP applications for E Biz

NetPublicist

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #3 on: December 16, 2004, 03:03:01 pm »

Did you have to make any changes to the script to get it to work with php-4.3.10?
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #4 on: December 17, 2004, 04:44:44 am »

No change was needed....
Logged
SANIsoft PHP applications for E Biz

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #5 on: December 19, 2004, 10:01:29 pm »

I just installed PHP Version 4.3.10 on my laptop and did not encounter errors with cpg v 1.3.2 or 1.4.1. Maybe it's because I have the latest version of Zend Optimiser too since that seems to be the solution that people are throwing around to address issues with PHP Version 4.3.10.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #6 on: December 20, 2004, 09:14:13 am »

see http://bugs.php.net/bug.php?id=31108 and unexpected database failure

To repeat what has been said about this issue before: Coppermine will work fine with PHP4.3.10, it's outdated versions of the zend optimizer that causes issues. Either upgrade your Zend optimizer as well or downgrade your php version to 4.2.9 (or ask your webhost to do so). The error message you're getting are not related to Coppermine, but happen with various other apps as well, so it's not coppermine that is to blame.

Joachim
« Last Edit: December 20, 2004, 09:21:31 am by GauGau »
Logged

NetPublicist

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #7 on: December 21, 2004, 06:08:30 pm »

Thanks for the update!!! I have upgraded ZEND and re-installed 4.3.10 and everything is working great!!
Logged

Satyr

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 139
    • Gothic Model Gallery - Dark Photo Art
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #8 on: December 22, 2004, 03:07:02 pm »

[EDIT]:  Issue is solved, my host has updated the zend optimizer. :)

I have the same problem, since an update to PHP 4.3.10 i receive the following error messages:

Quote
There was an error while processing a database query


The page "last comment" displays following:

Quote
Warning: array_key_exists(): The first argument should be either a string or an integer in /www/htdocs/go***/gothicmodels/gallery/include/functions.inc.php on line 1686


See it on www.gothicmodels.net/gothicmodels/gallery

What i have to do exactly?

Thx for your help.
« Last Edit: December 22, 2004, 03:18:02 pm by Satyr »
Logged
Kein Support über PN. Bitte im Forum posten, dann ist anderen auch geholfen.

http://www.gothicmodels.net/gothicmodels/gallery/

Testuser: Test23 PW: 123456

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #9 on: December 22, 2004, 04:24:17 pm »

you just read this thread, it clearly says what to do.

Joachim
Logged

Satyr

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 139
    • Gothic Model Gallery - Dark Photo Art
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #10 on: December 22, 2004, 05:20:08 pm »

I have edited the post instead of reading (and understanding)  ;)
Logged
Kein Support über PN. Bitte im Forum posten, dann ist anderen auch geholfen.

http://www.gothicmodels.net/gothicmodels/gallery/

Testuser: Test23 PW: 123456

tradenet

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #11 on: January 20, 2005, 01:52:07 am »

I just downloaded stable version from CVS and I'm getting:
Quote
Warning: Invalid argument supplied for foreach() in /home/html/galleries/config.php on line 368

And the config button isn't showing.
I'using v4.3.10 with Zend 2.5.7 Apache 2.0.52 on Linux
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #12 on: January 20, 2005, 06:57:27 am »

I just downloaded stable version from CVS and I'm getting:
Quote
Warning: Invalid argument supplied for foreach() in /home/html/galleries/config.php on line 368

And the config button isn't showing.
I'using v4.3.10 with Zend 2.5.7 Apache 2.0.52 on Linux
Did you run the upgrade script?

Joachim
Logged

Rosely

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #13 on: January 20, 2005, 02:07:52 pm »

see http://bugs.php.net/bug.php?id=31108 and unexpected database failure

To repeat what has been said about this issue before: Coppermine will work fine with PHP4.3.10, it's outdated versions of the zend optimizer that causes issues. Either upgrade your Zend optimizer as well or downgrade your php version to 4.2.9 (or ask your webhost to do so). The error message you're getting are not related to Coppermine, but happen with various other apps as well, so it's not coppermine that is to blame.

Joachim


Actually....
I had this problem too and my host solved it for me... twice!
We are running PHP 5.0.3
The problem is that somehow Coppermine currupts a MySQLtable.
What you have to do when you see this problem is to go to PHP MyAdmin and go to the link: Query Window

There you have to fill in this:
repair table databasename_pictures
(with for *databasename* ofcourse your databasename)

anyways, that one works for me.
It now happened twice but the second time I was able to fix it in a minute!

Please fix this problem in Coppermine, other applications work just fine.
PHP is not the problem but the way Coppermine works with it.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #14 on: January 20, 2005, 02:57:08 pm »

Ha ha ha.  That's a good one.  Coppermine corrupts the MySQL tables.  Never heard that one before.

Some versions of MySQL have trouble dealing with FULLTEXT which can lead to corruption.  There are also many other situations that can cause corruption.  Here's a good article that talks about it.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

tradenet

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #15 on: January 20, 2005, 03:02:53 pm »

Yes I Did.

I just downloaded stable version from CVS and I'm getting:
Quote
Warning: Invalid argument supplied for foreach() in /home/html/galleries/config.php on line 368

And the config button isn't showing.
I'using v4.3.10 with Zend 2.5.7 Apache 2.0.52 on Linux
Did you run the upgrade script?

Joachim
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #16 on: January 20, 2005, 03:14:19 pm »

Just a guess, but sounds like you missed a file when downloading from the CVS.

Did you use a CVS tool like TortoiseCVS, or did you download each file manually?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

tradenet

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #17 on: January 20, 2005, 03:17:52 pm »

BTW 1.4.1 (beta) works fine. Except when you use the SMF bridge and access it as a guest there is some template parsing errors of some sort.
Logged

tradenet

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #18 on: January 20, 2005, 04:11:59 pm »

I just used the standard linux cvs tool on my linux box and did the ol' souceforge routine.

Just a guess, but sounds like you missed a file when downloading from the CVS.

Did you use a CVS tool like TortoiseCVS, or did you download each file manually?
Logged

tradenet

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: CPG 1.3 NOT working with php-4.3.10!!
« Reply #19 on: January 20, 2005, 04:16:49 pm »

Just did a checkout again and nothing looked missed:
Quote

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/coppermine co -P stable
cvs checkout: Updating stable
cvs checkout: Updating stable/albums
cvs checkout: Updating stable/albums/edit
cvs checkout: Updating stable/albums/userpics
cvs checkout: Updating stable/bridge
cvs checkout: Updating stable/docs
cvs checkout: Updating stable/docs/pics
cvs checkout: Updating stable/images
cvs checkout: Updating stable/images/flags
cvs checkout: Updating stable/images/smiles
cvs checkout: Updating stable/include
cvs checkout: Updating stable/lang
cvs checkout: Updating stable/sql
cvs checkout: Updating stable/themes
cvs checkout: Updating stable/themes/classic
cvs checkout: Updating stable/themes/classic/images
cvs checkout: Updating stable/themes/default
cvs checkout: Updating stable/themes/default/images
cvs checkout: Updating stable/themes/eyeball
cvs checkout: Updating stable/themes/eyeball/images
cvs checkout: Updating stable/themes/fruity
cvs checkout: Updating stable/themes/fruity/images
cvs checkout: Updating stable/themes/hardwired
cvs checkout: Updating stable/themes/hardwired/images
cvs checkout: Updating stable/themes/igames
cvs checkout: Updating stable/themes/igames/images
cvs checkout: Updating stable/themes/mac_ox_x
cvs checkout: Updating stable/themes/mac_ox_x/images
cvs checkout: Updating stable/themes/project_vii
cvs checkout: Updating stable/themes/project_vii/images
cvs checkout: Updating stable/themes/rainy_day
cvs checkout: Updating stable/themes/rainy_day/images
cvs checkout: Updating stable/themes/styleguide
cvs checkout: Updating stable/themes/styleguide/images
cvs checkout: Updating stable/themes/water_drop
cvs checkout: Updating stable/themes/water_drop/images


I just used the standard linux cvs tool on my linux box and did the ol' souceforge routine.

Just a guess, but sounds like you missed a file when downloading from the CVS.

Did you use a CVS tool like TortoiseCVS, or did you download each file manually?
Logged
Pages: [1] 2   Go Up
 

Page created in 0.028 seconds with 19 queries.