doube body & header tags? (e107+gallery2.2)

psygarden

Joined: 2003-03-25
Posts: 128
Posted: Wed, 2007-12-05 21:53

I'm having an issue with integrating gallery2 in e107, i'm using a somewhat customized version of the bridge to fix some bugs, but now i have this problem:

When i load up the gallery index or any album page, instead of just inserting the gallery2 html that's between the <body> tags, i get the entire html (head -css & javascripts-, body, all of it). This doesn't happen when i look at a specific image. Then it's fine.

Live examples: look at the source of www.psygarden.be/gallery and search for the body tag, you'll find two sets. Then when you look at an actual image in full view, you'll no longer see the double body tags...

I can't seem to find what is causing the entire html to be inserted rather than just the part between the body tags... hopefully someone here can help me in the right direction!

Here is a copy of the embedding script i'm using: http://paste2.org/p/10205
And here the functions that it uses: http://paste2.org/p/10206

Should anyone here with some experience with this kind of issues have some time to look into it...
I'd Appreciate it a LOT

greetings,
Rik

ps.
-places where it's ok: admin section, itemview
-places where it's not ok: any album view, dynamic or normal.

Gallery version = 2.2 core 1.2.0
PHP version = 5.2.3-1+b1 apache2handler
Webserver = Apache/2.2.6 (Debian) PHP/5.2.3-1+b1
Database = mysqlt 5.0.45-Debian_1-log, lock.system=flock
Toolkits = ArchiveUpload, ImageMagick, Thumbnail
Acceleration = full/86400, partial/86400
Operating system = Linux psygarden 2.6.18-4-486 #1 Wed May 9 22:23:40 UTC 2007 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Rows in GalleryAccessMap table = 1864
Rows in GalleryAccessSubscriberMap table = 13335
Rows in GalleryUser table = 1183
Rows in GalleryItem table = 13260
Rows in GalleryAlbumItem table = 743
Rows in GalleryCacheMap table = 46000

 
psygarden

Joined: 2003-03-25
Posts: 128
Posted: Thu, 2007-12-06 18:35

This appears to be a php5 isseu ... i'm going to try upgrading the gallery to 2.3 nightly

Quote:
<sqwob> mind if i ask if $g2moddata['bodyHtml'] is supposed to return the same html (everything from within the <body> tags) ?
<sqwob> i'm getting more output on album pages (also the entire header tag)
<valiant> using php 5.2.0 or later?
<sqwob> indeed
<sqwob> i upgraded a few weeks ago
<valiant> then it's a case of php's choice to be silent on PCRE recursion / backtrace limit errors
<valiant> get a nightly snapshot of g2.3 for a fix (workaround)

 
psygarden

Joined: 2003-03-25
Posts: 128
Posted: Thu, 2007-12-06 18:45

The solution: upgrade to SVN or replace this file with the version from svn:

/trunk/gallery2/modules/core/test/phpunit/ThemeTest.class
link: http://fisheye3.cenqua.com/browse/~raw,r=17093/gallery/trunk/gallery2/modules/core/test/phpunit/ThemeTest.class

greetings,
Rik

ps. Thanks again valiant!