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  

Group problem?
Goto page 1, 2  Next
 
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
IngerK

Wizard
Wizard


Joined: Jan 19, 2006
Posts: 99
Location: Oslo, Norway

PostPosted: Sat Dec 01, 2007 7:01 am    Post subject: Group problem? Reply with quote

Error message when adding users to groups in phpBB3 ACP:

Quote: › [phpBB Debug] PHP Notice: in file /includes/functions_user.php on line 2637: require(g2helper.inc) [function.require]: failed to open stream: No such file or directory

Fatal error: require() [function.require]: Failed opening required 'g2helper.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /home/chat/html/phpBB3/includes/functions_user.php on line 2637


Maybe I have done something wrong with installation of the mod, or maybe it is a bug/problem with the integration package.
Could somebody else try this for me?
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: Group problem?  

Back to top
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1139

PostPosted: Sat Dec 01, 2007 3:51 pm    Post subject: Re: Group problem? Reply with quote

You might double check the mods for includes/functions_user.php

There were a couple of changes in that file from the test versions. Especially make sure you got the $phpbb_root_path added to the global statements at the beginning of a couple of the functions...

Code: ›
#
#-----[ FIND ]------------------------------------------
#
function group_user_add($group_id, $user_id_ary = false, $username_ary = false, $group_name = false, $default = false, $leader = 0, $pending = 0, $group_attributes = false)
{
   global $db, $auth;

#
#-----[ REPLACE WITH ]------------------------------------------
#
function group_user_add($group_id, $user_id_ary = false, $username_ary = false, $group_name = false, $default = false, $leader = 0, $pending = 0, $group_attributes = false)
{
   global $db, $auth, $phpbb_root_path;

#
#-----[ FIND ]------------------------------------------
#
function group_user_del($group_id, $user_id_ary = false, $username_ary = false, $group_name = false)
{
   global $db, $auth;

#
#-----[ REPLACE WITH ]------------------------------------------
#
function group_user_del($group_id, $user_id_ary = false, $username_ary = false, $group_name = false)
{
   global $db, $auth, $phpbb_root_path;


I think that is the problem since it doesn't find g2helper.inc, but let me know if there is still a problem, I'm not at a development machine at the moment. Smile
Back to top
Offline View user's profile Send private message
IngerK

Wizard
Wizard


Joined: Jan 19, 2006
Posts: 99
Location: Oslo, Norway

PostPosted: Sat Dec 01, 2007 3:59 pm    Post subject: Re: Group problem? Reply with quote

I looks like that solved the problem. I tried to add a user to a group again, and I didn't get an error message. Very Happy
Back to top
Offline View user's profile Send private message Visit poster's website
IngerK

Wizard
Wizard


Joined: Jan 19, 2006
Posts: 99
Location: Oslo, Norway

PostPosted: Sat Dec 01, 2007 4:20 pm    Post subject: Re: Group problem? Reply with quote

I'm not quite sure what you want me to do Embarassed
The problem I mentioned above was when adding new users to an existing group.
I can't find this user/group combination in any of the tables you mentioned, I think. I added a new group now, and then syncronized users from ACP, and I could then find my new group in g2_Group:

261 1 mygroup

And in g2_ExternalIdMap:

mygroup GalleryGroup 261

Is this what you wanted to know? Smile
Back to top
Offline View user's profile Send private message Visit poster's website
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1139

PostPosted: Sat Dec 01, 2007 9:00 pm    Post subject: Re: Group problem? Reply with quote

Thanks! It's fine, don't worry about it. Smile It's just that when I tried to duplicate your problem on my home computer, the group stuff wasn't working at all, but this is not the machine I develop with so it's just not up to date with the current mods. I'm pretty sure the group stuff is all working with the latest release mods, but if you find something that isn't working correctly, let me know! Smile Your table data seems to be fine!
Back to top
Offline View user's profile Send private message
IngerK

Wizard
Wizard


Joined: Jan 19, 2006
Posts: 99
Location: Oslo, Norway

PostPosted: Wed Dec 05, 2007 10:44 pm    Post subject: Re: Group problem? Reply with quote

I'm not quite sure if the mapping of admin users works. I had to add 2 new admins, and they were not mapped to G2 , not even if they were "founders". I had to manualy add them to group "Site Admins" in G2. I can't remember I had to do that last time?
Back to top
Offline View user's profile Send private message Visit poster's website
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1139

PostPosted: Fri Dec 07, 2007 5:29 pm    Post subject: Re: Group problem? Reply with quote

phpBB3 administrators are not mapped to Gallery by default. They are only mapped if the 'Can be administrator in Gallery 2' option is enabled in the advanced permissions setting for administrators page. See the readme in the latest release. It has all the details on this. Cool
Back to top
Offline View user's profile Send private message
IngerK

Wizard
Wizard


Joined: Jan 19, 2006
Posts: 99
Location: Oslo, Norway

PostPosted: Fri Dec 07, 2007 6:16 pm    Post subject: Re: Group problem? Reply with quote

Yes I have seen that "Can be administrator in Gallery 2" is a special permission.
Of course - it is possible I have done something wrong when editing files. If this works for others here, that's the most likely reason. Smile

Edit: I will install the integration again next week with phpBB3 RC8, if I still have the same problem, I will tell you Wink
Back to top
Offline View user's profile Send private message Visit poster's website
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1139

PostPosted: Sat Dec 08, 2007 12:07 am    Post subject: Re: Group problem? Reply with quote

Thanks IngerK! If there is a problem, please note the steps that it takes to create the problem. I tested this permission specifically with the latest release and it should all be working properly, but I may have missed something. I need to go through the latest rc version also. I wish they would get to gold already!!! As many rc versions as they have had - seems as it is still in beta! But, as many years as it has taken to get to this point, I guess it is no surprise...
Back to top
Offline View user's profile Send private message
IngerK

Wizard
Wizard


Joined: Jan 19, 2006
Posts: 99
Location: Oslo, Norway

PostPosted: Sun Dec 09, 2007 4:41 pm    Post subject: Re: Group problem? Reply with quote

I have upgraded phpBB3 to RC8, and edited files again from fresh phpBB3-RC8 files Smile
I get the Gallery Admin Permissions to work if I do it just like you tell in the README Very Happy

But I have tried in a different way too:

In phpBB3, I have edited the Admin role for "Full admin" to include "Can be administrator in Gallery 2".
Then I added a new group, g2admin.
ACP -> Permissions -> Global permissions -> Group's permissions -> g2admin -> Admin permissions, and I give this group "Full Admin" role.

I add a user to the g2admin group. In ACP -> Users -> Manage users, I can choose to see this users permissions. It is "green" all over, and in Settings -> Can be administrator in Gallery 2 is Yes too.
In gallery2 -> Site Admin, I can now see the new group g2admin and the user I added is a member of this group. But the user is not a member of the G2-group "Site Admins", and cannot administer Gallery2.

And - phpBB3 is Gold in 3 days 19 hours! Mr. Green
Back to top
Offline View user's profile Send private message Visit poster's website
IngerK

Wizard
Wizard


Joined: Jan 19, 2006
Posts: 99
Location: Oslo, Norway

PostPosted: Sun Dec 09, 2007 4:43 pm    Post subject: Re: Group problem? Reply with quote

removed
Back to top
Offline View user's profile Send private message Visit poster's website
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1139

PostPosted: Sun Dec 09, 2007 4:53 pm    Post subject: Re: Group problem? Reply with quote

Thanks IngerK for the detailed failure mode. Sounds like everything is working except the group is not keeping the 'can be administrator in gallery2' setting properly. I will look at this during the next release iteration. Were there any significant changes in the rc8 release?
Back to top
Offline View user's profile Send private message
IngerK

Wizard
Wizard


Joined: Jan 19, 2006
Posts: 99
Location: Oslo, Norway

PostPosted: Sun Dec 09, 2007 5:00 pm    Post subject: Re: Group problem? Reply with quote

No problems with any of the mods I use (Gallery2 and User Blog Mod) with RC8.
Back to top
Offline View user's profile Send private message Visit poster's website
IngerK

Wizard
Wizard


Joined: Jan 19, 2006
Posts: 99
Location: Oslo, Norway

PostPosted: Sun Dec 09, 2007 6:12 pm    Post subject: Re: Group problem? Reply with quote

Something more with groups.
When I have added a new group, I have to Synchronize Users in ACP -> G2-settings before the group is visible in Gallery2?
If I add users before I do this, it looks like they are not visible in the group in G2.
Back to top
Offline View user's profile Send private message Visit poster's website
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1139

PostPosted: Mon Dec 10, 2007 11:19 pm    Post subject: Re: Group problem? Reply with quote

Quote: › Something more with groups.
When I have added a new group, I have to Synchronize Users in ACP -> G2-settings before the group is visible in Gallery2?

Now I feel really stupid!!! I posted a fix for this issue back in October and somehow it didn't make it into the release code! Embarassed Last post in thread, http://www.nukedgallery.net/postxf3735-0-15.html [nukedgallery.net]
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
Goto page 1, 2  Next

 
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: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

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