| Author |
Message |
IngerK
Wizard


Joined: Jan 19, 2006 Posts: 99 Location: Oslo, Norway
|
Posted: Sat Dec 01, 2007 7:01 am Post subject: Group problem? |
|
|
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 |
|
|
AdBot
|
| Post subject: Group problem? |
|
|
|
|
|
| Back to top |
|
 |
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Sat Dec 01, 2007 3:51 pm Post subject: Re: Group problem? |
|
|
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.  |
|
| Back to top |
|
|
IngerK
Wizard


Joined: Jan 19, 2006 Posts: 99 Location: Oslo, Norway
|
Posted: Sat Dec 01, 2007 3:59 pm Post subject: Re: Group problem? |
|
|
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.  |
|
| Back to top |
|
|
IngerK
Wizard


Joined: Jan 19, 2006 Posts: 99 Location: Oslo, Norway
|
Posted: Sat Dec 01, 2007 4:20 pm Post subject: Re: Group problem? |
|
|
I'm not quite sure what you want me to do
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?  |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Sat Dec 01, 2007 9:00 pm Post subject: Re: Group problem? |
|
|
Thanks! It's fine, don't worry about it. 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! Your table data seems to be fine! |
|
| Back to top |
|
|
IngerK
Wizard


Joined: Jan 19, 2006 Posts: 99 Location: Oslo, Norway
|
Posted: Wed Dec 05, 2007 10:44 pm Post subject: Re: Group problem? |
|
|
| 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 |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Fri Dec 07, 2007 5:29 pm Post subject: Re: Group problem? |
|
|
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.  |
|
| Back to top |
|
|
IngerK
Wizard


Joined: Jan 19, 2006 Posts: 99 Location: Oslo, Norway
|
Posted: Fri Dec 07, 2007 6:16 pm Post subject: Re: Group problem? |
|
|
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.
Edit: I will install the integration again next week with phpBB3 RC8, if I still have the same problem, I will tell you  |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Sat Dec 08, 2007 12:07 am Post subject: Re: Group problem? |
|
|
| 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 |
|
|
IngerK
Wizard


Joined: Jan 19, 2006 Posts: 99 Location: Oslo, Norway
|
Posted: Sun Dec 09, 2007 4:41 pm Post subject: Re: Group problem? |
|
|
I have upgraded phpBB3 to RC8, and edited files again from fresh phpBB3-RC8 files
I get the Gallery Admin Permissions to work if I do it just like you tell in the README
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!  |
|
| Back to top |
|
|
IngerK
Wizard


Joined: Jan 19, 2006 Posts: 99 Location: Oslo, Norway
|
Posted: Sun Dec 09, 2007 4:43 pm Post subject: Re: Group problem? |
|
|
| removed |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Sun Dec 09, 2007 4:53 pm Post subject: Re: Group problem? |
|
|
| 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 |
|
|
IngerK
Wizard


Joined: Jan 19, 2006 Posts: 99 Location: Oslo, Norway
|
Posted: Sun Dec 09, 2007 5:00 pm Post subject: Re: Group problem? |
|
|
| No problems with any of the mods I use (Gallery2 and User Blog Mod) with RC8. |
|
| Back to top |
|
|
IngerK
Wizard


Joined: Jan 19, 2006 Posts: 99 Location: Oslo, Norway
|
Posted: Sun Dec 09, 2007 6:12 pm Post subject: Re: Group problem? |
|
|
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 |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
|
| Back to top |
|
|
|
|
|
|
|