Versioncheck creating multiple errors on server Versioncheck creating multiple errors on server
 

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

Versioncheck creating multiple errors on server

Started by Casper, August 23, 2004, 01:11:36 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Casper

I have a total of 5 installs, 3 on 1 server, 2 on another.  The 3, which include both version 1.3 and 1.4 work well, but the 2 installs on the other server, both 1.4 have errors, best illustrated by the attached screenshot.

Cannot find the cause, and there is no debug info given by the page.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

#1
Hey Casper,

I think this is being caused by the php version on the server with errors is smaller than 4.2.0, this is what the manual says:
Quotepow
(PHP 3, PHP 4 , PHP 5)

pow -- Exponential expression
Description
number pow ( number base, number exp)


Returns base raised to the power of exp. If possible, this function will return an integer.

If the power cannot be computed, a warning will be issued, and pow() will return FALSE. Since PHP 4.2.0 pow() doesn't issue any warning.
Basically, this is poorly coded (sorry) :-[ - could you check by replacing$return = $return + (pow('100',count($version_info)-$i)*$version_info[$i]);with$power = @pow('100',count($version_info)-$i)*$version_info[$i];
$return = $return + $power;
and report back (as I don't have an older version of php to test this with)?

GauGau

Casper

Hi Gaugau,

that worked great. Tested on both my servers.  I have fixed and committed both stable and dev versions.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here