Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

HELP! addUserToGroup NEWLY_REGISTERED failed

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
keepitroostin

Beginner
Beginner


Joined: Aug 09, 2010
Posts: 2

PostPosted: Wed Aug 11, 2010 12:55 pm    Post subject: HELP! addUserToGroup NEWLY_REGISTERED failed Reply with quote

When i am the ADMIN. it works fine..

But if my users click gallery they get this


General Error
addUserToGroup NEWLY_REGISTERED failed for 58. Here is the error message from G2:
Error (ERROR_MISSING_OBJECT) : NEWLY_REGISTERED GalleryGroup

* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 155 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 2404 (GalleryEntityHelper_simple::loadEntityByExternalId)
* in modules/core/classes/GalleryEmbed.class at line 632 (GalleryCoreApi::loadEntityByExternalId)
* in /home/content/57/6524657/html/g2helper.php at line 285 (GalleryEmbed::addUserToGroup)
* in /home/content/57/6524657/html/g2helper.php at line 139 (g2helper::_createUser)
* in /home/content/57/6524657/html/gallery2.php at line 30 (g2helper::init)
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: HELP! addUserToGroup NEWLY_REGISTERED failed  

Back to top
commander_keen

Beginner
Beginner


Joined: Feb 24, 2009
Posts: 7

PostPosted: Sun Aug 28, 2011 3:17 pm    Post subject: Re: HELP! addUserToGroup NEWLY_REGISTERED failed Reply with quote

I'm experiencing the same problem.
Obviously g2-integration does not know about the optional phpBB user group, which handles newly registered users who have not been approved by admins/moderators yet or reached the minimum post-count to be moved to the "registered users" group.

Unfortunately I'm no php-guy, would anyone know how to fix this?

Would it be enough to add NEWLY_REGISTERED to the array in line 260 of the g2helper.php like this?

Code: ›       $phpbbDefaultGroups = array(
         'GUESTS',
         'REGISTERED',
         'REGISTERED_COPPA',
         'GLOBAL_MODERATORS',
         'ADMINISTRATORS',
         'BOTS',
         'NEWLY_REGISTERED'
      );


Or is this also a synchronisation issue between g2 and phpBB?


edit: I gave it a try and it SEEMS to work. At least one is able to view the gallery without getting that error instantly.
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannBluetooth HeadsetOnline internetSEOchina factoryDressesRestaurant Locatorandroid tablet

8th year online! 2003-2011
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia