| Author |
Message |
darp
Novice


Joined: Feb 14, 2007 Posts: 20
|
Posted: Wed Jan 09, 2008 4:33 pm Post subject: Lost adim in gallery. |
|
|
I did the integration including the light box and everything worked fine.
Then I added some forms and got familiar with the permissions.
Now I don't have administrative access to the gallery.
I checked phpMyAdmin and activeAdminId is 2, as it should be.
When I checked the export result this is what I got.
0 group(s) processed for import to Gallery 2 from phpBB.
0 group(s) succeeded import to Gallery 2 from phpBB.
2 user(s) processed for import to Gallery 2 from phpBB.
2 user(s) already mapped to Gallery 2.
0 admin user(s) mapped to Gallery 2.
0 user(s) succeeded import to Gallery 2 from phpBB.
There are only two users, so I tried to un-synchronize to start again and I got this error.
File: /srv/www/htdocs/forum/includes/acp/acp_gallery2.php
Line: 895
deleteUser failed for 53. Here is the error message from G2:
Error (ERROR_MISSING_VALUE)
* in modules/core/classes/GalleryUser.class at line 278 (GalleryCoreApi::error)
* in modules/core/classes/helpers/GalleryEntityHelper_medium.class at line 113 (GalleryUser::delete)
* in modules/core/classes/GalleryCoreApi.class at line 2271 (GalleryEntityHelper_medium::deleteEntityById)
* in modules/core/classes/GalleryEmbed.class at line 444 (GalleryCoreApi::deleteEntityById)
* in /srv/www/htdocs/forum/includes/acp/acp_gallery2.php at line 893 (GalleryEmbed::deleteUser)
* in /srv/www/htdocs/forum/includes/functions_module.php at line 471 (acp_gallery2::main)
* in /srv/www/htdocs/forum/adm/index.php at line 74 (p_master::load_active)
Which tells me there is something very wrong, but I don't know what.
Can anybody help me?
BTW, the forum to gallery links still work, so the db is still mapping something.
Thanks for any help.
Dan |
|
| Back to top |
|
|
AdBot
|
| Post subject: Lost adim in gallery. |
|
|
|
|
|
| Back to top |
|
 |
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 922
|
Posted: Wed Jan 09, 2008 5:00 pm Post subject: Re: Lost adim in gallery. |
|
|
1. There are some permissions issues with the 0.0.4 integration. I'm working on a new version, but haven't had time to finish it up yet. Most of the fixes are posted in this forum already.
2. The permissions system of phpBB3 is quite complex. You have to make sure you set the 'Can be administrator in Gallery 2' permission correctly for each role/group/user that you want to have access. Somewhere the permission has to be set to 'Yes' and the user cannot belong to a group or role where this permission is 'Never'.
3. I'll have to test the un-synchronize option and make sure something is not broken - Error (ERROR_MISSING_VALUE) is the key. Seems there is data missing somewhere.
4. You can do the same thing as un-synchronize by deleting all G2 users from the G2 admin panel, except the main admin and clearing the values from the g2_externalidmap table.
5. The forum to gallery link still works because it is simply a link and there is no mapping of anything for it to work. |
|
| Back to top |
|
|
darp
Novice


Joined: Feb 14, 2007 Posts: 20
|
Posted: Fri Jan 11, 2008 7:44 pm Post subject: Re: Lost adim in gallery. |
|
|
Thanks for the prompt reply - what service!
When you say, "Most of the fixes are posted in this forum already. " are you refering to the Integration Bugs section?
I am going to start from scratch and I want to get it right this time, with all the fixes in place.
I tried repairing the first integration and the error messages just got crazier and crazier.
I have installed the gallery and phpbb on different databases. Does this make a difference? better or worse?
Once again thanks jettyrat and anyone else who helps out here.
Dan |
|
| Back to top |
|
|
Curbob
Beginner


Joined: Oct 27, 2006 Posts: 8
|
Posted: Sat Jan 12, 2008 8:03 am Post subject: Re: Lost adim in gallery. |
|
|
| I had the exact same thing happen on the exact same user 53 (first new user after bots) so I deleted that user and things just got worse, now it fails on user 2 the admin. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 922
|
Posted: Mon Jan 14, 2008 11:13 am Post subject: Re: Lost adim in gallery. |
|
|
Quote: › When you say, "Most of the fixes are posted in this forum already. " are you refering to the Integration Bugs section?
They are scattered in various places in this forum, not the Integration Bugs thread. I have a new version just about ready. Just need to look into the un-synchronize issue and the blank memberlist page issue.
I would suggest not using the un-synchronize feature for the time being... |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 922
|
Posted: Wed Jan 16, 2008 3:26 pm Post subject: Re: Lost adim in gallery. |
|
|
| I just tested the un-synchronize feature and it worked just fine for me. You guys will have to give me more details on how to make it fail if there is a problem with it. |
|
| Back to top |
|
|
darp
Novice


Joined: Feb 14, 2007 Posts: 20
|
Posted: Sat Jan 19, 2008 1:12 am Post subject: Re: Lost adim in gallery. |
|
|
I would love to help, but I don't know what I did to screw things up. I reinstalled everything and I am replacing the few posts and pictures and so far the admin remains solid in both the forum and the gallery.
However, now I have another strange problem. I wanted to delete "You first category" and the other default content and it is not available. It is grayed out, not selectable, when I try to delete it. Is this normal? I am logging in as the founding admin.
To get around the problem I have just edited everything. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 922
|
Posted: Sat Jan 19, 2008 3:58 pm Post subject: Re: Lost adim in gallery. |
|
|
If there are problems, I would like to fix them, but I have to be able to duplicate them .
I'll have to try deleting the first category, I usually just rename it. Haven't had a problem with that. I'm working on a new release which will fix a lot of things with permissions and such... |
|
| Back to top |
|
|
|
|
|
|
|