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:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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