Home arrow Forum
Potential integration problem with Mambo-G2 (Gallery2 component from Menalto)
  Welcome, Guest. Please login or register.
December 03, 2008, 09:38:08 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto) « previous next »
Pages: [1] Go Down Print
Author Topic: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto)  (Read 18762 times)
keymaster
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 25


View Profile
Potential integration problem with Mambo-G2 (Gallery2 component from Menalto)
« on: July 18, 2005, 09:18:40 AM »

Hi Cowboy,

I am posting this here because I thought you might be interested in hearing something I seem to have stumbled across. You can read all about it on this thread:

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=32672&postdays=0&postorder=asc&start=15

Basically, what seems to be the case (I emphasize seems because I am far from a PHP expert, and know my very definite limitations), is an interaction problem between mambo-SMF forum and the new mambo-G2 (gallery2), such that when mambo-SMF is installed, the mambo-G2 will not run.

I think the problem may be caused by some of the mambo-SMF changes to the index.php file.

Michiel_1981 who is the developer of the mambo-G2 component, like you, is right on top of his forum and supports it superbly and proactively. If you are so inclined, I suspect you could easily resolve this with a simple tweak so both of your important components can co-exist in the same mambo site.
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto
« Reply #1 on: July 19, 2005, 06:00:32 PM »

I thought this is not an issue with the latest version of it. Let me see.
Logged
michiel Bijland
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto)
« Reply #2 on: July 20, 2005, 03:52:43 AM »

Hi,

Was this a problem before?

You can contact me by mail or true his forum. A lot of people want to use both our component, so a fix should be made don't you think? I'm here to help on the gallery2 component side.

Regards,
Michiel
Logged
keymaster
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 25


View Profile
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto
« Reply #3 on: July 20, 2005, 12:00:19 PM »

Hi Michiel, Cowboy,

It seems the problem is caused by the following line (added by cowboy to mambo's main index.php):

require_once ($smf_path."/SSI.php");

If you comment it out, mambo-G2 works fine.

Interestingly, mambo-SMF also seems to work fine with it commented out (at least I didn't see any overt impact). The one thing I did notice was the module mod_smf_recent_posts ceases to function when it is commented out. That's not good.

I noticed that line also caused problems for other mambo components, see:

http://www.mambohacks.com/component/option,com_smf/Itemid,78/expv,0/topic,347.msg1440#msg1440
and
http://www.mambohacks.com/component/option,com_smf/Itemid,78/expv,0/topic,285.msg1349#msg1349

(BTW - I am using the patched index.php from the second thread above as suggested by cowboy:
http://www.mambohacks.com/smf/index.php?action=dlattach;topic=285.0;id=58

This patch fixed the SMF poll issue, but didn't fix the zoom gallery issue.

I wonder why Mambo's two gallery programs are broken because of this? Is there a connection?)

Anyways, I don't know what about that SSI.php file causes problems for G2, but am pretty sure that's where the problem lies... any ideas?
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto
« Reply #4 on: July 20, 2005, 05:01:13 PM »

Well in SSI.php series of calls, it clears what Mambo had initialized. For example, $_REQUEST is cleared by it. That is why on one fix, $_REQUEST value is saved to $_TMP and copied back to $_REQUEST after SSI.php call. There were other variables that probably needed be saved as well.
Logged
keymaster
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 25


View Profile
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto
« Reply #5 on: July 21, 2005, 01:56:33 AM »

if SSI.php clobbers the mambo context,(...a naive question...) might it be possible to save the entire mambo context before the SSI require_once and restore it after the SSI require_once returns?

Would this eliminate the issue once and for all?

Don't know how realistic/feasable this is, just brainstorming, and hoping there is no mambo variable which mambo-G2 and mambo-SMF require different values of to function.
Logged
michiel Bijland
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto)
« Reply #6 on: July 21, 2005, 02:56:36 AM »

Where in your component can i find that file?
Logged
keymaster
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 25


View Profile
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto
« Reply #7 on: July 21, 2005, 03:23:45 AM »

Hi Michiel,

I believe SSI.php is an actual SMF Forum file, so you would have to download SMF according to Cowboy's install instructions (it's a very easy, automated install).

This is the component link with instructions:
http://www.mambohacks.com/component/option,com_remository/Itemid,40/func,fileinfo/parent,folder/filecatid,30
« Last Edit: July 21, 2005, 03:32:20 AM by keymaster » Logged
michiel Bijland
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto
« Reply #8 on: July 27, 2005, 10:40:18 AM »

I found the problem.

cleanRequest() function is messing up gallery2 component and maybe a lot more components and modules, because it is included on every page and executed.

why is SSi.php included on every page by the way?

regards,
Michiel
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto
« Reply #9 on: July 27, 2005, 11:58:52 AM »

You need to look what's on cleanRequest(). It's just what I said on my previous post. The truth is, SSI is included just to support the other modules create for the "other" bridge. I maybe able to look on this myself this weekend. My cable modem is up and running  Grin.
Logged
keymaster
Newbie
*

Karma: +2/-0
Offline Offline

Posts: 25


View Profile
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto
« Reply #10 on: July 27, 2005, 12:20:51 PM »

Great teamwork, Guys.

Since you are respectively owners of two of the most significant components in the Mambo world, this cooperation is really nice to see.

It sounds like cowboy may not need this SSI afterall for his own bridge, so hopfully a fix is possible - in which recent posts, recent topics and optional SMF login module will still work.
Logged
michiel Bijland
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto)
« Reply #11 on: July 27, 2005, 12:43:30 PM »

nice,

that's quite a job because that function clears or alters nearly every thing i can think off int $_POST, $_GET, $_SERVER.

i'll get screening on the rules.

regards,
Michiel

ps: is there another smf bridge?
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto
« Reply #12 on: July 27, 2005, 04:01:47 PM »

That's what i'm saying. I guess there's still a need to save the state of some of the variables there, just like what's already done for $_REQUEST. In Mambo's index.php, $_REQUEST state is saved to $_TMP and retrieved back after the call to SSI.php.
Logged
Pages: [1] Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Potential integration problem with Mambo-G2 (Gallery2 component from Menalto) « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE