Joomla 1.0.12, SMF 1.1.1, Bridge 1.1.6, and Gallery 1.5.5 - init.php in Gallery

Started by GJSchaller, December 31, 2006, 03:11:33 PM

Previous topic - Next topic

GJSchaller

I've got a site that is running the latest versions of all major components:

Joomla 1.0.12
Gallery 1.5.5-pl1
Oristo's SMF Bridge 1.1.6
SMF 1.1.1

Galley integrates seemingly fine using the included component into Joomla, and when I am logged in as an Admin, I can see the Admin functions in Gallery.  However, when I try to do something from the drop-down menus to administrate a gallery, I get the following error:

init.php: Gallery seems to be inside Mambo, but we couldn't get the necessary info.

Myself and several other people have been trying to track this down on the Gallery forums, and one of the developers was able to narrow it down to the SMF Bridge:

http://gallery.menalto.com/node/52718

Does anyone know of a workaround to get all the components to play together nicely?  I'm seeing a lot of posts regarding Gallery 2, but not Gallery 1.X.
Geoffrey J. Schaller
Knight Realms - Technical Officer
http://www.knightrealms.com/

Orstio

In your mambots/system folder should be a file named SMF_header_include.php.

In that file, find this:

//Gallery2 bridge+SEF compatibility (Damage control)
if (isset($_REQUEST['option']) && $_REQUEST['option'] == 'com_gallery2' && $mosConfig_sef == 1)
$_SERVER['QUERY_STRING'] = strtr($_SERVER['QUERY_STRING'],array('?'=>'','&'=>'/','&'=>'/','='=>','));


Add this immediately before it:

if (isset($_REQUEST['option']) && $_REQUEST['option'] == 'com_gallery')
          return;



GJSchaller

WONDERFUL! That did the trick - thank you so much!

Will this be included in future bridges by default?
Geoffrey J. Schaller
Knight Realms - Technical Officer
http://www.knightrealms.com/

Orstio

The problem with this is that it essentially disables some bridge functionality on the com_gallery component page.  That's fine for your site, where you have no bridge login module on that page, or anything dealing with the bridge.  But, for other site ownoers that want that functionality, it poses yet another problem.   :-\

GJSchaller

Geoffrey J. Schaller
Knight Realms - Technical Officer
http://www.knightrealms.com/

Aravot

Orstio, Michiel developer of com_gallery is working on another version can you contact him to see if this can be solved in next version of either components, thanks and Happy New Year.

SmittyNY

I'm using Joomla-SMF Forum 2.0 and I still have that init.php problem.
My Mambot/systems/ directory has no "SMF_header_include.php" to configure. So how do I resolve this init.php problem?

Orstio


sNiTcH

hello where can i download an SMF that can be used on joomla sites? joomlahacks.com [nofollow] wont allow me to download :( anyone can help?

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: