Xaraya+G2 error on user sync

nyback
nyback's picture

Joined: 2003-06-15
Posts: 9
Posted: Fri, 2006-01-06 00:11

I started to get errors after upgrading to latest xaraya. I get an error when i try ro syncronize the user data. It has worked perfectly before.

Below are two long error messages. I have tries different things but i cannot get it to work. When i upgraded xaraya i also changed xarayas root folder.
when i go to the gallery2 module config in xaraya i get this error to:
"Status of the Gallery2 module: The current configuration could not be verified successfully. Here is the error message:
[roles module was not hooked to our gallery2 module, but that is fixed now.]"

If i click the gallery2 module config again to re-enter the error is gone and i just get the normal "The current paths seem to be correct. Hit save to synchronize users/groups". I hit "update configuration" (I guess "Hit save" is a bug) to syncronize. Get an error like below and i am back where i started with "[roles module was not hooked..." if i re-enter gallery2 module config.
Any clues?

Failed to update G2 user with extId [18]. Here is the error message from G2: <br /> [Error (ERROR_MISSING_OBJECT) : Missing object for 18<ul><li><b>in</b> modules/core/classes/GalleryStorage/DatabaseStorage.class <b>at line</b> 2121 (gallerystatus::error) <li><b>in</b> modules/core/classes/GalleryStorage/DatabaseStorage.class <b>at line</b> 305 (mysqldatabasestorage::_identifyentities) <li><b>in</b> modules/core/classes/GalleryStorage.class <b>at line</b> 118 (mysqldatabasestorage::loadentities) <li><b>in</b> modules/core/classes/helpers/GalleryEntityHelper_simple.class <b>at line</b> 82 (gallerystorage::loadentities) <li><b>in</b> modules/core/classes/helpers/GalleryEntityHelper_simple.class <b>at line</b> 141 (galleryentityhelper_simple::loadentitiesbyid) <li><b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 2225 (galleryentityhelper_simple::loadentitybyexternalid) <li><b>in</b> modules/core/classes/GalleryEmbed.class <b>at line</b> 331 (gallerycoreapi::loadentitybyexternalid) <li><b>in</b> /var/www/nyback.com/htdocs/xaraya/modules/gallery2/xargallery2helper.php <b>at line</b> 351 (galleryembed::updateuser) <li><b>in</b> /var/www/nyback.com/htdocs/xaraya/modules/gallery2/xargallery2helper.php <b>at line</b> 1617 (xargallery2helper::g2updateuser) <li><b>in</b> /var/www/nyback.com/htdocs/xaraya/modules/gallery2/xaradmin/updateconfig.php <b>at line</b> 82 (xargallery2helper::g2xarusergroupimportexport) <li><b>in</b> /var/www/nyback.com/htdocs/xaraya/includes/xarMod.php <b>at line</b> 884<li><b>in</b> /var/www/nyback.com/htdocs/xaraya/index.php <b>at line</b> 93<li><b>in</b> /var/www/nyback.com/htdocs/xaraya/index.php <b>at line</b> 161</ul>]
Explanation:

The procedure executed correctly, but the result failed.
Stacken:

at g2updateuser(xargallery2helper.php:354)

Array
(
[0] => 18
[1] => Array
(
[uid] => 18
[uname] => eviik
[name] => manne
[email] =>

[pass] => 3bcaf9c54750292bd576f833275c9c5a
[state] => 3
[date_reg] => 1118227713
)

)

at g2xarusergroupimportexport(xargallery2helper.php:1617)
at gallery2_admin_updateconfig(updateconfig.php:82)

Array
(
[0] => Array
(
)

)

at xarmodfunc(xarMod.php:884)

Array
(
[0] => gallery2
[1] => admin
[2] => updateconfig
)

at xarmain(index.php:93)

Second error
Could not fetch a G2 user object. Here is the error message from G2: <br /> [Error (ERROR_MISSING_OBJECT) : Missing object for 30<ul><li><b>in</b> modules/core/classes/GalleryStorage/DatabaseStorage.class <b>at line</b> 2121 (gallerystatus::error) <li><b>in</b> modules/core/classes/GalleryStorage/DatabaseStorage.class <b>at line</b> 305 (mysqldatabasestorage::_identifyentities) <li><b>in</b> modules/core/classes/GalleryStorage.class <b>at line</b> 118 (mysqldatabasestorage::loadentities) <li><b>in</b> modules/core/classes/helpers/GalleryEntityHelper_simple.class <b>at line</b> 82 (gallerystorage::loadentities) <li><b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 2186 (galleryentityhelper_simple::loadentitiesbyid) <li><b>in</b> modules/core/classes/helpers/GalleryUserHelper_medium.class <b>at line</b> 183 (gallerycoreapi::loadentitiesbyid) <li><b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 506 (galleryuserhelper_medium::fetchuserbyusername) <li><b>in</b> /var/www/nyback.com/htdocs/xaraya/modules/gallery2/xargallery2helper.php <b>at line</b> 1381 (gallerycoreapi::fetchuserbyusername) <li><b>in</b> /var/www/nyback.com/htdocs/xaraya/modules/gallery2/xaradmin/updateconfig.php <b>at line</b> 82 (xargallery2helper::g2xarusergroupimportexport) <li><b>in</b> /var/www/nyback.com/htdocs/xaraya/includes/xarMod.php <b>at line</b> 884<li><b>in</b> /var/www/nyback.com/htdocs/xaraya/index.php <b>at line</b> 93<li><b>in</b> /var/www/nyback.com/htdocs/xaraya/index.php <b>at line</b> 161</ul>]
Förklaring:

Funktionen kördes korrekt, men resultatet blev misslyckat.
Stacken:

at g2xarusergroupimportexport(xargallery2helper.php:1384)
at gallery2_admin_updateconfig(updateconfig.php:82)

Array
(
[0] => Array
(
)

)

at xarmodfunc(xarMod.php:884)

Array
(
[0] => gallery2
[1] => admin
[2] => updateconfig
)

at xarmain(index.php:93)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-01-06 06:21

please take a look at your database table g2_ExternalIdMap

are there rows for
externalId = 18 and 30?
to what entityIds are they mapped to?

 
nyback
nyback's picture

Joined: 2003-06-15
Posts: 9
Posted: Fri, 2006-01-06 08:48

Right on.
It works now. I had not noticed the externalidmap table before. I deleted some entries in the externalidmap and i got it to work.

It all started when i, after doing the upgrade of xaraya, pressed the "export/import" button to trigger a sync between xaraya and G2. But it timed out after a while. Probably it left something broken between the externalidmap and the user table in G2.

Many thanks. The Xaraya/G2 module is great by the way.
/Andreas

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-01-06 21:29

good to have such knowledgeable users, makes my job easier :)
i hope this code will get more stable once we add a progressbar for the synchronization process...