Photo shop 1.3.1 and CPG 1.4.10 causes out of range error Photo shop 1.3.1 and CPG 1.4.10 causes out of range error
 

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

Photo shop 1.3.1 and CPG 1.4.10 causes out of range error

Started by Willow69, December 11, 2006, 03:14:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Willow69

Hi everyone,

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

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

Nibbler

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

Nibbler

May be here (photo_shop_config.php)

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

$priority = (is_numeric($temp[0])) ? ++$temp[0] : 0;

Willow69

@Nibbler: That has been it  ;D

Problem solved! - THANK YOU VERY MUCH!

Cheers,
Willow