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]   Go Down

Author Topic: Versioncheck creating multiple errors on server  (Read 5114 times)

0 Members and 1 Guest are viewing this topic.

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Versioncheck creating multiple errors on server
« on: August 23, 2004, 01:11:36 pm »

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.
« Last Edit: August 28, 2004, 06:14:57 am by GauGau »
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Versioncheck creating multiple errors on server
« Reply #1 on: August 24, 2004, 09:32:20 am »

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:
Quote
pow
(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
Code: [Select]
$return = $return + (pow('100',count($version_info)-$i)*$version_info[$i]);with
Code: [Select]
$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
« Last Edit: August 25, 2004, 07:19:32 am by GauGau »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Versioncheck creating multiple errors on server
« Reply #2 on: August 24, 2004, 11:53:15 am »

Hi Gaugau,

that worked great. Tested on both my servers.  I have fixed and committed both stable and dev versions.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.