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: Photo shop 1.3.1 and CPG 1.4.10 causes out of range error  (Read 5096 times)

0 Members and 1 Guest are viewing this topic.

Willow69

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
Photo shop 1.3.1 and CPG 1.4.10 causes out of range error
« on: December 11, 2006, 03:14:54 pm »

Hi everyone,

if just installed the photo shop 1.3.1 plugin and receive the following error while trying to configure the shop:

Code: [Select]
While executing query "INSERT INTO cpg149_shop_config (priority) VALUES ('')" on 0

mySQL error: Out of range value adjusted for column 'priority' at row 1

This error mesage comes up when I press the "new format" button in the config screen.
I've already emptied the database tables and tried update.php.

The miniCMS plugin was installed but now has been removed (dosn't seem to make any difference because the error msg remains the same)...

Any clues?

THX in advance,
Willow
« Last Edit: December 11, 2006, 04:42:41 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Photo shop 1.3.1 and CPG 1.4.10 causes out of range error
« Reply #1 on: December 11, 2006, 03:21:49 pm »

It should probably be 0 instead of ''. Try to find the query in the code and correct it.
Logged

Nibbler

  • Guest
Re: Photo shop 1.3.1 and CPG 1.4.10 causes out of range error
« Reply #2 on: December 11, 2006, 03:23:40 pm »

May be here (photo_shop_config.php)

Code: [Select]
$priority = (is_numeric($temp[0])) ? ++$temp[0] : '';
Code: [Select]
$priority = (is_numeric($temp[0])) ? ++$temp[0] : 0;
Logged

Willow69

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
Re: Photo shop 1.3.1 and CPG 1.4.10 causes out of range error
« Reply #3 on: December 11, 2006, 04:20:59 pm »

@Nibbler: That has been it  ;D

Problem solved! - THANK YOU VERY MUCH!

Cheers,
Willow
Logged
Pages: [1]   Go Up
 

Page created in 0.042 seconds with 20 queries.