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: Sudden problem with batch add: pid=0  (Read 8575 times)

0 Members and 1 Guest are viewing this topic.

fotofreek

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 23
    • http://www.victorbos.nl/
Sudden problem with batch add: pid=0
« on: September 17, 2006, 03:07:00 pm »

Hi all,

After using coppermine for 2.5 years, I suddenly encounter a problem with the batch-add function (searchnew.php):
The directory listing appears, I select the directory, press [OK] and the blue [OK] bulb appears that the picture is succesfully added.
But coppermine will not show the picture, and if I peek into the _pictures table, I see that the added picture has a pid=0.
Any idea what can cause this sudden problem?

tia,

Victor
« Last Edit: September 17, 2006, 09:51:18 pm by GauGau »
Logged

fotofreek

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 23
    • http://www.victorbos.nl/
Re: Sudden problem with batch add: pid=0
« Reply #1 on: September 17, 2006, 09:12:04 pm »

It is solved:
My hosting provider upgraded to mySql 5, that behaves a bit different on the auto_increment column attribute: the insert of a '' in an integer column will not increment to the next value. I was running an old picmgmt.inc.php that does try to insert a ''. Changed that to NULL, now everything is OK again.
I guess it is time for me to upgrade to CPG 1.4  ;)

Victor
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Sudden problem with batch add: pid=0
« Reply #2 on: September 17, 2006, 09:51:04 pm »

I guess it is time for me to upgrade to CPG 1.4  ;)
Definitely yes ;)

Thanks for returning and posting your solution.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.