This is most likely because the extID already exists in the gallery database. When a user is created in gallery, the VB userid is mapped to a different Gallery userid. This is done in case gallery is also run in standalone mode or for multiple domains.
How does this mapping work?
1. VB user has a userid=8
2. Added as a gallery user and given the g_userid=12
3. In the externalID map table, an entry is made linking 8--->12.
The problem is, that if the user is deleted from within the gallery app, the user is removed. But the entry in the externalID map table is not. So all deletion of users, etc. must be done via the embedding app. But the current version that's posted here does not allow that...it never has. I don't mean to complain about the original author, as I really appreciate their work, its simply that this feature wasn't really fully implemented. So I'm writing an improved one and will hopefully have it up this week. It will also support the mapping of primary VB group to gallery group as well.
Quote:
Originally Posted by noj75
Hi,
Have done all of the above. Getting this error when trying to view:
line: 98, Failed to create G2 user with extId [1]. Here is the error message from G2:
Error (ERROR_COLLISION)
in modules/core/classes/GalleryUser.class at line 154 (gallerycoreapi::error)
in modules/core/classes/GalleryEmbed.class at line 360 (galleryuser::create)
in /home/*****/public_html/boards/gallery2.php at line 95 (galleryembed::createuser)
in /home/*****/public_html/boards/gallery2.php at line 50
Any ideas please.
Kind regards.
|