ERROR_LOCK_REQUIRED when calling GalleryCoreApi::addItemToAlbum
lukeco
Joined: 2009-04-08
Posts: 1 |
Posted: Wed, 2009-04-08 01:23 |
I'm trying to add new pictures to an album (any album). I've been messing around with this all day and I hoping someone can tell me what I'm doing wrong. //Add Item to root album If this code is called without the "if ($ret)" section, the item is not saved and the following error is thrown. If I don't do error checking, the item is saved. Error (ERROR_LOCK_REQUIRED) I've posted a more complete chunk of code here: Thanks to anyone who can help! Luke |
|
Posts: 4342
Print_r the contents of the $lockIds array at various places and make sure it contains what you think it does.