GalleryEmbed::createGroup doesn't work (db transaction problem?)

josno

Joined: 2007-09-17
Posts: 10
Posted: Thu, 2009-02-19 17:14

I've been trying to use createGroup (using the latest version of Gallery2) so far without success. I've been digging through the Gallery2 code and have (I think) narrowed the problem down to database transactions: Gallery2 starts a transaction, inserts into g2_Group, g2_Entity and g2_ExternalIdMap and then does nothing more - surely it should then commit?

The database is working find otherwise, as it does this query fine: "update g2_SequenceId set id=LAST_INSERT_ID(id+1);" which happens just before getting the g2_Schema info and then beginning the transaction.

 
josno

Joined: 2007-09-17
Posts: 10
Posted: Sat, 2009-02-21 12:37

For anyone interested, I'd forgotten to call GalleryEmbed::done(). Problem solved!