CPG 1.3 NOT working with php-4.3.10!! CPG 1.3 NOT working with php-4.3.10!!
 

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

CPG 1.3 NOT working with php-4.3.10!!

Started by NetPublicist, December 16, 2004, 06:08:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NetPublicist

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!

Joachim Müller

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

Joachim

Tarique Sani

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
SANIsoft PHP applications for E Biz

NetPublicist

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

Tarique Sani

SANIsoft PHP applications for E Biz

Tranz

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.

Joachim Müller

#6
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

NetPublicist

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

Satyr

#8
[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.
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

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

Joachim

Satyr

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

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

Testuser: Test23 PW: 123456

tradenet

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

Joachim Müller

Quote from: tradenet 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
Did you run the upgrade script?

Joachim

Rosely

Quote from: GauGau 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


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.

kegobeer

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.
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

Yes I Did.

Quote from: GauGau on January 20, 2005, 06:57:27 AM
Quote from: tradenet 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
Did you run the upgrade script?

Joachim

kegobeer

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?
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

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.

tradenet

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

Quote from: kegobeer 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?

tradenet

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

Quote from: tradenet 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.

Quote from: kegobeer 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?