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  

Does not Sync?

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

Beginner
Beginner


Joined: Jul 15, 2008
Posts: 8

PostPosted: Thu Aug 28, 2008 10:44 am    Post subject: Does not Sync? Reply with quote

Greeting,
I've just finished the mod and start the sync first and it turn out to be an error. Then I started to delete all the users in both applications and sync again. It works, I assume. However, when I create a new user and click to the gallery, it showed up error message. I looked into the gallery database, it didn't create the users. Everything else works well. Need help! Thank you very much!

Quote: ›
General Error
Here is the error message from G2:
Error (ERROR_MISSING_OBJECT) : Missing object for 30686

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 2054 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 98 (GalleryStorageExtras::_identifyEntities)
* in modules/core/classes/GalleryStorage.class at line 313 (GalleryStorageExtras::loadEntities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (GalleryStorage::loadEntities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 159 (GalleryEntityHelper_simple::loadEntitiesById)
* in modules/core/classes/GalleryCoreApi.class at line 2404 (GalleryEntityHelper_simple::loadEntityByExternalId)
* in /home/.niven/huangzhen/theakiba.com/forum/g2helper.php at line 806 (GalleryCoreApi::loadEntityByExternalId)
* in /home/.niven/huangzhen/theakiba.com/forum/g2helper.php at line 100 (g2helper::_mapGalleryLink)
* in /home/.niven/huangzhen/theakiba.com/forum/gallery2.php at line 28 (g2helper::init)
[/quote]
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Does not Sync?  

Back to top
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1044

PostPosted: Thu Aug 28, 2008 1:04 pm    Post subject: Re: Does not Sync? Reply with quote

What was the error when you first did the user sync? Did you use the 'export all users now' option or the 'export at first access' option?

If the export timed out it probably left the g2 database slightly hosed up. After you run the 'un-synchronize' option make sure the following tables are left in appropriate condition:
g2_externalidmap - should have no entries
g2_group - should only have entries for 'Registerd Users', 'Site Admins', and 'Everybody'
g2_user - should only have entries for 'Guest' and 'Gallery Administrator'
g2_usergroupmap - should only have entries for the guest id and the administrator id

Then run the export at first access option again.

WARNING! Only do this if it is a fresh install of gallery and phpbb. Do not do this if you had gallery users prior to the integration. Also, if you have phpbb users with items in gallery, doing this will likely break the ownership of these items. Back up everything first!

Alternatively, you can try to sort out the issues with the above mentioned tables and try to see where things are not right. (The issue seems to be that there is an externalidmapping for the user, but the user does not exist in gallery, in which case, just delete the externalidmap entry for that user.) Or, reinstall your backups from before the integration and try it again.
Back to top
Offline View user's profile Send private message
milohuang

Beginner
Beginner


Joined: Jul 15, 2008
Posts: 8

PostPosted: Thu Aug 28, 2008 9:43 pm    Post subject: Re: Does not Sync? Reply with quote

Well, I tried again.

I make a fresh installation of the gallery 2.3 RC1 and make the sync, it works and I saw members in the gallery2 database. But when I access to the gallery2 page, it turned out to be blank page. And guest cannot see anything in the gallery except the admin.

Time to think about getting someone to do this for me and I wonder whether there's way to restore all the gallery. I overwrite all the gallery2 files with the original files and it didn't work and show up "an error was occurred." Confusing...

BTW..I tried the gallery2 2.25 version and it works well. Not yet support 2.3??

THANKS
Back to top
Offline View user's profile Send private message
milohuang

Beginner
Beginner


Joined: Jul 15, 2008
Posts: 8

PostPosted: Thu Aug 28, 2008 9:49 pm    Post subject: Re: Does not Sync? Reply with quote

One thing more...After the integration I dropped into the gallery site admin panel and found out the plugins no longer work (You cannot turn on or deactive the plugins anymore...) Is this how the mod works?
Back to top
Offline View user's profile Send private message
PoPoutdoor

Wizard
Wizard


Joined: Jan 20, 2006
Posts: 109

PostPosted: Fri Aug 29, 2008 2:03 am    Post subject: Re: Does not Sync? Reply with quote

milohuang wrote: › BTW..I tried the gallery2 2.25 version and it works well. Not yet support 2.3??


To make Gallery 2.3 works, you have to fix the password issue.

Edit: Code deleted(wrong code) Razz


Last edited by PoPoutdoor on Fri Aug 29, 2008 11:29 pm; edited 1 time in total
Back to top
Offline View user's profile Send private message
milohuang

Beginner
Beginner


Joined: Jul 15, 2008
Posts: 8

PostPosted: Fri Aug 29, 2008 3:45 am    Post subject: Re: Does not Sync? Reply with quote

Thanks Guru for the tip though it didn't work for me. I use 2.25 instead and restoring all the files since I didn't backup (silly I was). Neutral It seems to be a hard job.

When using 2.25, you can turn on and off the plugins and everything seems perfect. Nice work! Thank you too jettyrat!
Back to top
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1044

PostPosted: Fri Aug 29, 2008 10:31 am    Post subject: Re: Does not Sync? Reply with quote

milohuang wrote: › BTW..I tried the gallery2 2.25 version and it works well. Not yet support 2.3??
I don't know for certain if the 1.0.1 integration works with G2.3. There will be new integration code when G2.3 is final.

milohuang wrote: › When using 2.25, you can turn on and off the plugins and everything seems perfect.
I think you have the answer then. Apparently the 1.0.1 integration does not work with G2.3 for some reason.

PoPoutdoor wrote: › To make Gallery 2.3 works, you have to fix the password issue.
That password fix is actually for versions older than 2.3 and is only for standalone access or gallery remote where direct access is necessary. The password issue is fixed in 2.3 without edits to the gallery code and is handled by the integration itself.
Back to top
Offline View user's profile Send private message
milohuang

Beginner
Beginner


Joined: Jul 15, 2008
Posts: 8

PostPosted: Fri Aug 29, 2008 11:10 am    Post subject: Re: Does not Sync? Reply with quote

One thing more just occurred to me. When you make the integration, users or visitors who may still access from the external link like google, they may access and all they got is

"Security Violation
The action you attempted is not permitted.
Back to the Gallery"

Can I make some changes to the main.php or other files to change the error message to some helpful one?
Back to top
Offline View user's profile Send private message
madpinger

Beginner
Beginner


Joined: Aug 27, 2008
Posts: 12

PostPosted: Fri Aug 29, 2008 12:16 pm    Post subject: Re: Does not Sync? Reply with quote

milohuang wrote: › One thing more just occurred to me. When you make the integration, users or visitors who may still access from the external link like google, they may access and all they got is

"Security Violation
The action you attempted is not permitted.
Back to the Gallery"

Can I make some changes to the main.php or other files to change the error message to some helpful one?


well, the easy way to change that is to open the gallery2 config.php and change the following:
$gallery->setConfig('mode.embed.only', true);
You can change it to a url, like this for example.
$gallery->setConfig('mode.embed.only', ('/error.php?mode=403'));
or
$gallery->setConfig('mode.embed.only', ('/docserv.php?mode=maintenance'));
[code]Thats how I have mine set, so they get a error page in my sites theme. You can make the url what every you want.
Notice that you add ('theurl') to urls unlike when you use true or false values.
From the comments in the config.php
[code]
* true (without quotes) - block direct requests
* url (with quotes) - redirect requests to this url
* false (without quotes) - allow direct requests
[/code]

past that, I think the error message strings that are not module specific are stored in ../modules/core/po "Your language file".po
I could be off on that, kinda new to gallery. Switched from coppermine.[/i]
Back to top
Offline View user's profile Send private message
milohuang

Beginner
Beginner


Joined: Jul 15, 2008
Posts: 8

PostPosted: Sat Aug 30, 2008 2:52 am    Post subject: Re: Does not Sync? Reply with quote

Wow! That's great! It works like a charm!

I changed the url to:

Quote: › $gallery->setConfig('mode.embed.only', ('http://myaddress.com'));


It redirects everything including error to my new address. Awesome!

Thank you very much madpinger!

BTW..I also switched from coppermine. Tired of the theme and looking. Laughing
Back to top
Offline View user's profile Send private message
madpinger

Beginner
Beginner


Joined: Aug 27, 2008
Posts: 12

PostPosted: Sat Aug 30, 2008 3:19 am    Post subject: Re: Does not Sync? Reply with quote

I'm glad that was the correct salution for you.

I switched from coppermine due to its core. themes are a lot easier to make then the core api's imo.
This stuff takes so much time.
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 Issues » 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: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

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