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  

phpBB2/Gallery2 integration Problems

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

Beginner
Beginner


Joined: Oct 20, 2008
Posts: 7

PostPosted: Tue Nov 18, 2008 1:06 am    Post subject: phpBB2/Gallery2 integration Problems Reply with quote

I've carefully done all the mods to integrate my phpBB2 and Gallery2 installations. Most things work, but there are several problems (that I think/hope are all symptoms of a single problem with the integration):

1. If I edit photo items (e.g. change the title, summary or keywords), when I click "Save" I come back to this same page, but all of the changes are lost--they revert back to previous settings.

2. If I try to make changes to permissions for photos or albums, I get a "Security Violation" Error: BAD_PARAMETER (see Error details at the bottom of this post)

3. In what I assume is probably a related issue, when I upload new photos and fill in the caption box, the upload works properly, but the caption I enter is ignored, and the caption usually just has the latter "r" in it????

4. I also tried turning off the embed.only flag and accessing Gallery2 directly. If I access it directly, everything seems to work fine, so there must be something wrong with my integration.

5. I have disabled/uninstalled the URL re-write module as per some of the other posts that appeared to have related issues.

I'm hoping that these issues are all symptoms of one core problem.

Security Violation Error Details:
--------------------------------------
Error (ERROR_BAD_PARAMETER)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 39 (GalleryCoreApi::error)
in modules/core/classes/GalleryCoreApi.class at line 2259 (GalleryEntityHelper_simple::loadEntitiesById)
in modules/core/ItemMove.inc at line 72 (GalleryCoreApi::loadEntitiesById)
in main.php at line 231 (ItemMoveController::handleRequest)
in main.php at line 94
in modules/core/classes/GalleryEmbed.class at line 179
in /usr/fileshare/home/xyzzy.com/www/htdocs/test/PHPbb/gallery2.php at line 40 (GalleryEmbed::handleRequest)
--------------------------------------

** LATE ADDITION: **
I've tracked the permission problem as far as the file gallery2/modules/core/ItemMove.inc line 69. It appears that the $form array--which I assume has the HTTP_POST_VARS in it, isn't loaded properly and specifically the 'selectedIDs' item has just the string "Array" in it, not a list of selectedIds.

All guidance/help appreciated!
Mark
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: phpBB2/Gallery2 integration Problems  

Back to top
PoPoutdoor

Wizard
Wizard


Joined: Jan 20, 2006
Posts: 129

PostPosted: Tue Nov 18, 2008 3:44 am    Post subject: Re: phpBB2/Gallery2 integration Problems Reply with quote

What is the Gallery 2 version?

Seems you misplace the mod code somewhere... and 0.5.12 package is not for gallery 2.3.
Back to top
Offline View user's profile Send private message
mdt55

Beginner
Beginner


Joined: Oct 20, 2008
Posts: 7

PostPosted: Tue Nov 18, 2008 12:09 pm    Post subject: Re: phpBB2/Gallery2 integration Problems Reply with quote

Here's the Gallery version info:
Gallery version = 2.2.5 core 1.2.0.7

I believe my integration package is 0.5.12 (phpbb2_0512.zip).

Are these versions compatible?

Mark
Back to top
Offline View user's profile Send private message
IngerK

Wizard
Wizard


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

PostPosted: Tue Nov 18, 2008 12:50 pm    Post subject: Re: phpBB2/Gallery2 integration Problems Reply with quote

Yes, they are compatible. But why do you want to spend lots of work on old versions of software?
Gallery 2.2.6 [menalto.com] was a security fix, and Gallery 2.3 is latest release.
I don't think the integration package for phpBB2 will work for Gallery 2.3, and I guess no integration package for phpBB2/Gallery 2.3 will ever be made: phpBB 2.0.x will be retired by the end of the year.
Back to top
Offline View user's profile Send private message Visit poster's website
mdt55

Beginner
Beginner


Joined: Oct 20, 2008
Posts: 7

PostPosted: Tue Nov 18, 2008 1:59 pm    Post subject: Re: phpBB2/Gallery2 integration Problems Reply with quote

Thanks for the info on versions.

I'm pretty much stuck with phpBB 2.x because I have a fairly large existing site with it. I want to integrate Gallery2 with that site. I decided it would be best to start with doing an integration of Gallery2 with an "out of the box" version of phpBB 2.x just to get familiar with it and make sure I can get it all to work before I started to try to apply it to my larger site. It's in this process that I've run into the problems.

If I undersand you correctly, I should NOT be using Gallery 2.3 because the integration package with phpBB2.x doesn't support Gallery 2.3. It sounds like I might be off by one minor release on Gallery 2.2.5 vs. 2.2.6, but I doubt that's the source of these problems.

It seems from what I've been able to find so far, that the process of gathering the form input and putting it into the $form array in GalleryUtilities::getFormVariables() is not working properly. I haven't had an opportunity yet to dig farther into this problem. I was hoping you guys might have some insight on this issue.

Mark
Back to top
Offline View user's profile Send private message
mdt55

Beginner
Beginner


Joined: Oct 20, 2008
Posts: 7

PostPosted: Tue Nov 18, 2008 10:58 pm    Post subject: Re: phpBB2/Gallery2 integration Problems -- More Information Reply with quote

OK...I've followed this rabbit hole quite a ways down.
The root of the problem seems to be that when Gallery is embedded in PHPbb, for reasons that I can't understand, the $_POST variable doesn't seem to be loaded correctly at page submissions with array variables on the form. In particular, where the forms have several checkboxes next to a photo, for example, each checkbox has a name of the form:

g2_form[selectedIds][nn] (where nn is the ID# of the photo).

When I look at the $_POST variable contents submitting a Gallery page that is NOT embedded, the $_POST variable has a selectedIds array.

However, when Gallery is embedded in a phpBB page, the selectedIds element in the $_POST array simply has the text "Array" in it--not an array of selectedIds.

Something--I haven't been able to figure out what yet--is changing the way PHP loads the $_POST variable when the page is submitted.

WOW. Any ideas??????
Back to top
Offline View user's profile Send private message
mdt55

Beginner
Beginner


Joined: Oct 20, 2008
Posts: 7

PostPosted: Wed Nov 19, 2008 12:29 am    Post subject: Re: phpBB2/Gallery2 integration Problems: FOUND IT! Reply with quote

Just FYI....I found the root of the problem.

I'd forgotten that this wasn't a completely generic phpBB2 installation. It had the M2F (Mail2Forum) mod added to it, and the M2F mod had some code that messed with the $_POST array. The code assumed that the $_POST array never had any embedded arrays--which was not the case for Gallery2, so the code "flattened" these arrays and simply substitued the word "Array" for the arrays. It's relatively easy to fix.
Back to top
Offline View user's profile Send private message
PoPoutdoor

Wizard
Wizard


Joined: Jan 20, 2006
Posts: 129

PostPosted: Wed Nov 19, 2008 2:37 am    Post subject: Re: phpBB2/Gallery2 integration Problems Reply with quote

Quote: › I'm pretty much stuck with phpBB 2.x because I have a fairly large existing site with it.

I'm stuck too! For the most needed RSS Input mod not ported to phpbb3 yet... I'm working on coding something based on FIND now, but I'm not sure I can get that works in phpbb3.
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 » phpBB2 / 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 ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

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