init.php issue w/ Gallery 1.5 & Joomla Intergration

macphoto
macphoto's picture

Joined: 2004-06-08
Posts: 97
Posted: Mon, 2006-08-07 18:10

Greetings!

I've got Gallery 1.5.3 integrated w/ Joomla v1.0.8. The integration itself is fine. However, when logged into Joomla as a Super-Admin I've tried to perform Admin tasks in Gallery. Such as add or delete albums in Gallery. Upon doing so I get a pop up dialog box that reads...

" init.php: Gallery seems to be inside Mambo, but we couldn't get the necessary info." —Nothing results from this.

It appears to me that gallery can't read the "init.php" file when integrated. Also, it thinks it's imbedded within Mambo, not Joomla. I made sure to use the proper integration component that's specified for Joomla also. I'm surprised it's mentioning Mambo in this dialog box. Is there a fix to this so I don't need to log into Gallery separately to perform admin tasks?

Your help is greatly appreciated!
Smitty

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Mon, 2006-08-07 18:26

Hi,

if you are running Joomla 1.0.8 set the "Session Authentication Method" in Joomlas Global Configuration to "Level 1 Backward - Compatibility".
More: http://www.gallery-addons.com/component/option,com_kb/page,articles/articleid,12/Itemid,136/

I hope that helps.

Kai
-----
http://www.gallery-addons.com

 
macphoto
macphoto's picture

Joined: 2004-06-08
Posts: 97
Posted: Mon, 2006-08-07 19:32

Ok, I found the setting under the "server" tab.
But after I applied it and performed gallery's admin tasks through Joomla; the following error message appeared...

" Fatal error: Call to a member function on a non-object in /public_html/gallery/classes/User.php on line 225 "

Something is not working. But I'll continue to poke around with this...

 
gjschaller
gjschaller's picture

Joined: 2004-04-19
Posts: 44
Posted: Sat, 2006-08-19 16:54

I'm running into the same "init.php" error, running Joomla 1.0.10, and Gallery 1.5.4 (It was happening in previous verisons, and I just upgraded Gallery in the hopes it would fix it - no luck).

I've tried setting the Session Authenticaiton Method to Level 1, but again, no luck.

I should note that I am also using SMF 1.1RC2 with the bridge from SMF's forums - the one that does *not* require you to modify any code. I'm not sure if this matters, but other people have noted it as a possible cause.

I've even uninstalled the Gallery component from Joomla and re-installed it after the update to 1.5.4, to no avail.

Has anyone found a reliable fix for this?

Geoffrey J. Schaller
http://gallery.knightrealms.com

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Wed, 2006-08-16 06:50

Hi,

what is the URL to your standalone Gallery?

Kai
-----
http://www.gallery-addons.com

 
macphoto
macphoto's picture

Joined: 2004-06-08
Posts: 97
Posted: Thu, 2006-08-17 09:53

Here are my links:

Stand alone Gallery 1.5
http://urbanfashion.net/Events/

Joomla Intergration
http://urbanfashion.net/CMS/

 
gjschaller
gjschaller's picture

Joined: 2004-04-19
Posts: 44
Posted: Sat, 2006-08-19 16:54
 
macphoto
macphoto's picture

Joined: 2004-06-08
Posts: 97
Posted: Fri, 2006-09-01 14:59

Kai

Did you have a resolve for this error issue?
Is this happening because of the SMF intergration?

 
gjschaller
gjschaller's picture

Joined: 2004-04-19
Posts: 44
Posted: Fri, 2006-09-22 02:16

Any word on a solution for this?
--
Geoffrey J. Schaller
http://gallery.knightrealms.com

 
macphoto
macphoto's picture

Joined: 2004-06-08
Posts: 97
Posted: Mon, 2006-09-25 16:52

None, Sorry, I'm still waiting....

 
gjschaller
gjschaller's picture

Joined: 2004-04-19
Posts: 44
Posted: Thu, 2006-11-16 22:55

I've updated to Gallery 1.5.5, and Joomla is still good ol' 1.0.11. Some of thie issues seem to have been cleared up (I can edit photos and captions, etc.), but one of the main features - the ability to set permissions and ownership of albums - is still not working.

Is there any news on how to resolve this? I'm running Gallery 1.5.5, Joomla 1.0.11, and SMF 1.1RC3, with Bridge 1.1.6 from the official SMF Forums. Will Gallery 1.6 resolve this?

--
Geoffrey J. Schaller
http://gallery.knightrealms.com

 
gjschaller
gjschaller's picture

Joined: 2004-04-19
Posts: 44
Posted: Thu, 2006-11-16 23:05

Just updated to 1.5.5-pl1, still having the same issue.

--
Geoffrey J. Schaller
http://gallery.knightrealms.com

 
digithead

Joined: 2006-12-22
Posts: 2
Posted: Fri, 2006-12-22 21:14

Good grief... all of the research I've done shows that this problem goes back THREE YEARS... I'm still BANGING on it trying to figure out what's wrong. ANYBODY ever figure it out or we just wasting time now?

 
gjschaller
gjschaller's picture

Joined: 2004-04-19
Posts: 44
Posted: Fri, 2006-12-22 21:20

In my Joomla, I noticed that the Add-In for Gallery was listed as 1.5.2 - not 1.5.5, like the Gallery itself. I'm guessing it's still Mambo based, and not actually updated for Joomla.

Hopefully 1.6 will fix this... Or, we can put in an actual Bug Report. I think I will go do that now.

--
Geoffrey J. Schaller
http://gallery.knightrealms.com

 
gjschaller
gjschaller's picture

Joined: 2004-04-19
Posts: 44
Posted: Sun, 2006-12-24 19:26

I put in the bug report, and received a response that this was not a bug, but a configuration issue that had been answered already on the forums. I pointed out that none of us could find the solution, and after 4 months no one had been able to answer this thread, either.

I suggested a documentation page on the official Gallery website for the correct configuration, and they will try this - the documentation I was referred to in the /cotrib/joomla lacked the details necessary to actually configure it correctly.

Hopefully we'll have an answer soon, or at least a link to an existing one.

--
Geoffrey J. Schaller
http://gallery.knightrealms.com

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Fri, 2006-12-29 20:39

Geoffrey, thanks for your private message.

Ok, I have installed the SMF Forum, SMF Bridge 1.1.6 and Gallery 1.5.5 pl1 on my testsite and can reproduce the issue.
With the installed SMF-Bridge I receive the "init.php: Gallery seems to be inside Mambo, but we couldn't get the necessary info." error.

After unpublishing the "SMF_header_include" Mambot in Joomla's Mambot Manager and deleting all cookies the Gallery popups and admin stuff work again without problems.
Same problem with the Joomla-SMF Forum Bridge from joomlahacks.com after patching Joomla's index.php.

I think the SMF Components and the Gallery1 Component for Joomla are not compatible.
Maybe it will work with the upcomming Gallery 1.6

Kai
-----
http://www.gallery-addons.com

 
gjschaller
gjschaller's picture

Joined: 2004-04-19
Posts: 44
Posted: Fri, 2006-12-29 20:54

Thank you for the confirmation - we know where to begin looking now.

I'll keep an eye out for Gallery 1.6 - if this does not resolve it, I'll see if I can coordinate between the SMF Bridge and Gallery folks to get a fix in place.

Thank you again, and Happy New Years!

--
Geoffrey J. Schaller
http://gallery.knightrealms.com

 
gjschaller
gjschaller's picture

Joined: 2004-04-19
Posts: 44
Posted: Sun, 2006-12-31 20:37

We have a working fix!

http://www.simplemachines.org/community/index.php?topic=138636

My site now works like a charm... I just hope it is integrated into the bridge from here out, or I'll forget to change it each time I upgrade. ;-)

--
Geoffrey J. Schaller
http://gallery.knightrealms.com

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Mon, 2007-01-01 14:41

I'm glad you got it to work and thanks for the feedback. :)

Kai
-----
http://www.gallery-addons.com

 
macphoto
macphoto's picture

Joined: 2004-06-08
Posts: 97
Posted: Sat, 2007-03-17 18:09
Quote:
Which bridge for SMF are you using?
The Fix is for the original bridge from simplemachines.org
If you are using the bridge from joomlahacks.com the fix will not work.

Thanks for responding Kai !

I'm using SMF 1.1 Joomla Bridge 1.1.6
I still don't see SMF_header_include.php in the mambot/system folder.

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Sat, 2007-03-17 19:36

Hmm, I have just installed SMF 1.1 Joomla Bridge 1.1.7 and I can see the SMF_header_include.php in joomlaroot/mambots/system/

Kai
-----
http://www.gallery-addons.com

 
macphoto
macphoto's picture

Joined: 2004-06-08
Posts: 97
Posted: Sat, 2007-03-17 22:15

Ok! perhaps I should uninstall v 1.1.6 and intall Bridge 1.1.7?

I think I'll try this...