| Author | Message |
| Post Title: Removing old Gallery2 users during synchronization fails | |
seanblee
Joined: Aug 10, 2006 Posts: 5
|
Posted: Sat Sep 27, 2008 3:13 pm
Hello,
I'm having an issue with the user synchronization process in the Gallery 2 / phpBB3 integration mod. I used to run phpBB2 with an integration mod, which seemed to work fine. I did a clean install of phpBB3 this morning, imported my old forum and then installed the integration mod for phpBB3 from this site. Followed through the install guide fine, right up to the synchronizing users step. I've got a whole load of old Gallery2 users generated by the old mod which I'd like to delete, but keep their files. However, the only way I can get past the synchronization screen is to set all of them to 'Leave as-is' - if I change even one to the 'Delete user but keep data' option, I get a white page when I submit. Any pointers to how I can remove all the old non-mapped Gallery2 users would be much appreciated, thanks! |
| Author | Message |
| Post Title: Re: Removing old Gallery2 users during synchronization fails | |
jettyrat
Joined: Nov 28, 2005 Posts: 1144
|
Posted: Sat Sep 27, 2008 11:12 pm
What version of gallery is this?
Try turning on phpbb debug in the config.php file and set gallery debug to "immediate" in the gallery config.php file to see more error info. |
| Author | Message |
| Post Title: Re: Removing old Gallery2 users during synchronization fails | |
seanblee
Joined: Aug 10, 2006 Posts: 5
|
Posted: Tue Oct 14, 2008 7:03 pm
Sorry for the delay, missed your reply! This is with Gallery 2.2.6, using mysqli, with phpBB 3.0.2 using mysqli.
Gallery debug gives me this: Code: › file_exists(/home/discover/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) Unimplemented: GalleryUrlGenerator getParameter cookie.path for core plugin file_exists(/home/discover/g2data/cache/module/core/0/0/0.inc) getParameter session.lifetime for core plugin getParameter session.inactivityTimeout for core plugin
(mysqli): SET NAMES "utf8" file_exists(/home/discover/g2data/cache/module/_all/0/0/GalleryStorage_describeMap.inc) (mysqli): SELECT g_userId, g_remoteIdentifier, g_creationTimestamp, g_modificationTimestamp, g_data FROM g2_SessionMap WHERE g_id='330c028d5bf6e38bd690f99fda4f023c' [1224028972] can't guarantee 5 -- extending! file_exists(/home/discover/g2data/cache/entity/0/2/24.inc) [1224028972] can't guarantee 300 -- extending! getParameter id.adminGroup for core plugin getParameter id.allUserGroup for core plugin getParameter id.everybodyGroup for core plugin (mysqli): SELECT g2_UserGroupMap.g_userId, g2_User.g_userName FROM g2_UserGroupMap, g2_User WHERE g2_UserGroupMap.g_groupId = 3 AND g2_UserGroupMap.g_userId = g2_User.g_id ORDER BY g2_User.g_userName LIMIT 2 file_exists(/home/discover/g2data/cache/entity/0/2/28.inc) Fatal error: Call to undefined method user::getId() in /home/discover/public_html/phpBB3/includes/acp/acp_gallery2.php on line 955 |
| Author | Message |
| Post Title: Re: Removing old Gallery2 users during synchronization fails | |
jettyrat
Joined: Nov 28, 2005 Posts: 1144
|
Posted: Tue Oct 14, 2008 8:11 pm
Oh yeah, I fixed that in the new integration...I think all you need to do is this in acp_gallery2.php
Code: › Find:
$ret = GalleryCoreApi::remapOwnerId($g2Id, $user->getId()); Replace with: $ret = GalleryCoreApi::remapOwnerId($g2Id, $adminId); |
| Author | Message |
| Post Title: Re: Removing old Gallery2 users during synchronization fails | |
seanblee
Joined: Aug 10, 2006 Posts: 5
|
Posted: Wed Oct 15, 2008 4:35 pm
Sorted, thanks very much!
|