On Aug 13, 12:43 pm, Josen Ruiseco <[EMAIL PROTECTED]>
wrote:
> I uploaded numerous images into my Image Gallery plugin using the image
> library utility "add new" tab.
>
> The image library interface kept losing images that were "selected". They
> would just disappear after I added images using "add new". I finally
> determined that I would not worry about selecting images and would just keep
> adding images using the "add new" tab in an effort to get them uploaded (15
> in all). When I was done, I selected no images and did the "save and close"
> so that I could go back and see all the images (not just the ones that
> didn't disappear).
>
> I went back into the image library utility, selected my images, then did the
> "save and close". Everything seemed to work okay at that point.
>
> Then I realized that I forgot to upload one image. I went into the library
> utlity, did the "add new", selected the new image and added to the list of
> images on the left side. I then got this error:
>
> ************************************************
>
> Error Executing Database Query.
> [Macromedia][SQLServer JDBC Driver][SQLServer]Violation of PRIMARY KEY
> constraint 'PK__imageGallery_aOb__51300E55'. Cannot insert duplicate key in
> object 'imageGallery_aObjectIds'.
>
> The error occurred in E:\farcry\core\packages\fourq\gateway\DBGateway.cfc:
> line 320
>
> ************************************************

This suggests that the JS UI had not updated appropriately.  If you
close the entire edit handler and reopen and then try adding images,
does it begin to work again?  Sometimes if the server is very slow,
the AJAX call in the background that updates the array library element
fails to refresh and the browser gets out of kilter.  This is
something we sometimes see in very large array sets or very slow
computers.

We're trying to add some better error handling in the JS for the 4.07
release.

> It's seems clear that duplicate images were attempting to get inserted. Does
> the image library utility not have the ability to examine the selections for
> duplicates and then deal with them appropriately?

The library is generic and applies to all content types -- not just
images.  So if you are seeing a problem here you are likely going to
see it in all library pickers.  The error is being generated indicates
that the application is blocking duplicates.  It suggests that the UI
has got out of synch with the underlying data.

Can you restart the editing method and see the same issue?

> Using Farcry 4.0.6...

You might try the latest HEAD of the p400 branch to see if the recent
changes we have made make any difference to your issue.

-- geoff
http://www.daemon.com.au/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to