creating an album why nothing in the database
nicopilote
Joined: 2010-04-03
Posts: 8 |
![]() |
Hi list($ret,$response) = GalleryCoreApi::createAlbum($parentAlbumId, $nameondisc, $title, $summary, $description, $keywords); the album (the file) is created on the disc in the good directory but nothing in the database... |
|
alecmyers
Joined: 2006-08-01
Posts: 4342 |
![]() |
Maybe there's some voodoo with closing the transaction before the db is updated. It would help if you posted a more complete code fragment with what you're trying to do, rather than a bare line. |
|
nicopilote
Joined: 2010-04-03
Posts: 8 |
![]() |
thanks for your answer, here the code: list ($ret, $lockId) = GalleryCoreApi::acquireWriteLock($parentAlbumId); list($ret,$result) = GalleryCoreApi::createAlbum($parentAlbumId, $nameondisc, $title, $summary, $description, $keywords); |
|
nicopilote
Joined: 2010-04-03
Posts: 8 |
![]() |
with the debug mode i probably found something... after this request I also have an error in the db Error (ERROR_MISSING_OBJECT) : Missing object for 0 |
|
nicopilote
Joined: 2010-04-03
Posts: 8 |
![]() |
now the data are in the db but i have |
|
nicopilote
Joined: 2010-04-03
Posts: 8 |
![]() |
and how to add an item into an album from my site WITHOUT using gallery views? |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
You might want to take a look and see how this guy has done it: http://gallery.menalto.com/node/81010#comment-284733 |
|
nicopilote
Joined: 2010-04-03
Posts: 8 |
![]() |
hi, thanks for your message,i hope the code will help me. |
|