MDN

Go Back   Mambo - Forums Closed for posting > Mambo 3rd Party Addons > Components

Reply
 
Thread Tools Search this Thread Display Modes
Old January 12th, 2006, 16:30   #1
asmar
 
Join Date: Apr 2004
Posts: 48
asmar is on a distinguished road
Default init.php: Gallery seems to be inside Mambo, but we couldn't get the necessary info

Hi,

I am going mad with this Mambo problem...
I moved 2 galleries installation from a Debian box running PHP 4.3.10 to a Centos one with 4.4.1 and now I am getting the following error every time I am trying to remove or modify a gallery:
init.php: Gallery seems to be inside Mambo, but we couldn't get the necessary info

Outside the Mambo directory gallery is working fine.
I read all the posts on this forum and double checked all my url's and everything appears to be ok but problem still remains.

Be aware that I move the galleries from a server were both have been working fine so no need to modify anything apart from the paths which I double checked.

Anyone with a suggestion?

Thanks a lot

Mambo version: Latest patched
Gallery version: 1.5.1
PHP version: 4.4.1 (tested on 4.3.11 as well with same results)
Webserver: Apache 1.3.34
asmar is offline   Reply With Quote
Old February 27th, 2006, 17:56   #2
Syrinx
 
Join Date: Feb 2006
Posts: 1
Syrinx is on a distinguished road
Default

Having the same problem here.. it seems to be related to the SMF Forum component. When I remove the SMF component the popup links in Gallery start to work again...

Strange thing is, if I re-activate the SMF Forum component, Gallery will continue to work normall for a time, then the links will just decide to stop working again, apparently at random.

Anyone have any ideas?

Syrinx is offline   Reply With Quote
Old April 16th, 2006, 05:08   #3
dogsbody
 
dogsbody's Avatar
 
Join Date: Mar 2004
Location: UK
Posts: 100
dogsbody is on a distinguished road
Default

I'm ripping my hair out with this one too I have five sites affected by this now
dogsbody is offline   Reply With Quote
Old April 16th, 2006, 07:44   #4
maligned-geek
 
Join Date: Dec 2005
Location: Cornwall U.K.
Posts: 3,712
maligned-geek is on a distinguished road
Default

This appears to be a widespread problem - I just Googled the error string..forum wont let me post the results URL

I don't know of "the fix" yet (I don't use most of these 3rd party galleries) but I'm always willing to wade through Google looking for a cure.

The Gallery help forums might yield a faster response:

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

The last post in that thread makes me think the classic adding www. to the live_site variable in Mambo's configuration.php might help.That might be where the confilct lies.

Quote:
Ok folks this is the definitive answer...it came to me from Olduvai!

if you have a mambo site on www.example.com/mymambosite/ which has a gallery component, your gallery component must also be on www.example.com for gallery to share the session. This is not a gallery problem but a universal domain issue.

so this will work :lol:
site on www.example.com/mambosite/ WITH www.example.com/gallery

this will not work :cry:

site on www.example.com/mambosite/ WITH gallery.somesite.com

that will work sweet!

Last edited by maligned-geek : April 16th, 2006 at 07:52.
maligned-geek is offline   Reply With Quote
Old April 16th, 2006, 10:36   #5
dogsbody
 
dogsbody's Avatar
 
Join Date: Mar 2004
Location: UK
Posts: 100
dogsbody is on a distinguished road
Default

I have spent four hours googling and searching forums now. Tried many config settings and even change code but nothing has fixed it yet!
dogsbody is offline   Reply With Quote
Old April 16th, 2006, 10:45   #6
maligned-geek
 
Join Date: Dec 2005
Location: Cornwall U.K.
Posts: 3,712
maligned-geek is on a distinguished road
Default

What are Gallery saying about it?

What are the exact and precise errors you're getting,dogsbody? If you've moved the Mambo installations like the first poster,then file ownership could need adjusting...

If the problem has occurred out of the blue,has anything changed serverside,like PHP or MySQL?
maligned-geek is offline   Reply With Quote
Old April 16th, 2006, 10:59   #7
dogsbody
 
dogsbody's Avatar
 
Join Date: Mar 2004
Location: UK
Posts: 100
dogsbody is on a distinguished road
Default

Quote:
Originally Posted by maligned-geek
What are Gallery saying about it?
Same as this forum really, a few people have tried to help which is great but no one can fix it Thank you to everyone that has tried.

Quote:
Originally Posted by maligned-geek
What are the exact and precise errors you're getting,dogsbody?
Gallery works fine on it's own and mambo works fine too however when accessing Gallery through mambo all the popups where you would usually add pictures or change permissions just contain the text "init.php: Gallery seems to be inside Mambo, but we couldn't get the necessary info."

Quote:
Originally Posted by maligned-geek
If the problem has occurred out of the blue,has anything changed serverside,like PHP or MySQL?
For me this happened when I upgraded both Gallery from v1.4.4-pl4 to v1.5.3 and Mambo from v4.5.2.3 to v4.5.3h + patch. (while I did upgrade them one at a time I didn't test adding pictures until I had patched both).

Thank you again if anyone could please help me
dogsbody is offline   Reply With Quote
Old April 16th, 2006, 11:13   #8
maligned-geek
 
Join Date: Dec 2005
Location: Cornwall U.K.
Posts: 3,712
maligned-geek is on a distinguished road
Default

I'm stumped to be honest,because "the fix" does appear to be matching the live_site URL in Mambo's configuration.php to the Gallery URL in the gallery config file...Plus of course accessing the site from that precise URL too.
This makes perfect sense because javascript is forbidden to run across two different domains (which http://example.com and http://www.example.com could potentially be).

I read from the Drupal cache that someone had said it worked for them in IE but not Firefox,then went onto to add enabling cookies did the trick in the end.

Does it work in any browser? Have you cleared both the server cache/Mambo's cache and the cache on your local PC? Else results might be misleading if old pages are being called after you've tried a fix...
maligned-geek is offline   Reply With Quote
Old April 16th, 2006, 11:54   #9
dogsbody
 
dogsbody's Avatar
 
Join Date: Mar 2004
Location: UK
Posts: 100
dogsbody is on a distinguished road
Default

Definately not the path settings, they have never been anything differant...
Quote:
Originally Posted by configuration.php
$mosConfig_live_site = 'http://www.cskate.co.uk';
Quote:
Originally Posted by gallery/config.php
$gallery->app->photoAlbumURL = "http://www.cskate.co.uk/gallery";
Some people have said that it has sometimes worked in IE or just intermittantly but to me this is a solid error.

I have also seem talk of it only happening on sites with SMF forum on, while this is true of my original site I now have three other sites that have only Gallery & Mambo installed and are doing this :-(
dogsbody is offline   Reply With Quote
Old April 16th, 2006, 12:01   #10
maligned-geek
 
Join Date: Dec 2005
Location: Cornwall U.K.
Posts: 3,712
maligned-geek is on a distinguished road
Default

Mmm..this makes me think the error:

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

may have a lot of triggers,say for example the file's/folders ownership is out of whack somehow.Gallery knows they are there but can't get to them.

Can you check the ownership (not permissions) on the affected folders/files of Gallery compared with those of Mambo,please?

The easy way to do that is with Joomlaxplorer if you have it installed.

http://virtuemart.net/index.php?opti...51&Item id=80

Yes - it is fully Mambo compatible.
maligned-geek is offline   Reply With Quote
Old April 16th, 2006, 15:33   #11
dogsbody
 
dogsbody's Avatar
 
Join Date: Mar 2004
Location: UK
Posts: 100
dogsbody is on a distinguished road
Default

Permissions are fine

One of the threads I read on this error said that it was a variable that now wasn't being passed to gallery but the post didn't have any specifics or a fix I couldn't see any differance in the URL that was being called but beond that I couldn't tell.
dogsbody is offline   Reply With Quote
Old April 16th, 2006, 15:35   #12
maligned-geek
 
Join Date: Dec 2005
Location: Cornwall U.K.
Posts: 3,712
maligned-geek is on a distinguished road
Default

and ownership? It's the ownership I was more interested by.

Bummer if ownership is fine too.It was just a thought.Man,this does sound like a crippling bug.Gallery really need to help you with it.
maligned-geek is offline   Reply With Quote
Old April 16th, 2006, 15:43   #13
dogsbody
 
dogsbody's Avatar
 
Join Date: Mar 2004
Location: UK
Posts: 100
dogsbody is on a distinguished road
Default

Yeah ownership too, I've done recursive chmod's chown's and chgrp's

I have posted over on the Gallery forums too but just as the Mambo forums is missing a Gallery expert the Gallery forums are missing a Mambo expert!

Thank you again for your help.
dogsbody is offline   Reply With Quote
Old April 18th, 2006, 02:11   #14
kai
 
Join Date: Mar 2004
Location: Oldenburg, Germany
Posts: 133
kai is on a distinguished road
Default

Hi,

this seems to be a problem with Mambo 4.5.3h and Gallery 1.5x.
I have found the following line in the changelog.php:
Quote:
21-Dec-2005 Carlos Souza (csouza)
# added session_start() calls to index.php and index2.php
If you remove session_start() from Mambos index.php (and delete cookies and cache) all Gallery popups will work again without this error message.
Please note, I'm not a programmer and I'm not sure what happens to Mambo if you remove this line.

I have talked to a G1 developer and he will fix this issue in the next version of Gallery1.

(just for info: The same error exist in Joomla since the session management has changed but you can configure the session management in Joomlas Global Configuration to "backwards compatibility".)

I hope this helps.

Kai
__________________
gallery-addons.com
kai is offline   Reply With Quote
Old April 18th, 2006, 07:23   #15
dogsbody
 
dogsbody's Avatar
 
Join Date: Mar 2004
Location: UK
Posts: 100
dogsbody is on a distinguished road
Default

Quote:
Originally Posted by kai
I have talked to a G1 developer and he will fix this issue in the next version of Gallery1.
This is brilliant information, thank you very much
dogsbody is offline   Reply With Quote
Old May 7th, 2006, 04:11   #16
instant0
 
Join Date: May 2006
Posts: 1
instant0 is on a distinguished road
Default

I added "session_start();" beneath the hack prevention globals in gallery/index.php and that seemed to solve the problem with the popup init.php error message.
instant0 is offline   Reply With Quote
Old May 7th, 2006, 20:50   #17
dlsodders
 
Join Date: Mar 2006
Posts: 14
dlsodders is on a distinguished road
Default Gallery 1.5 Mambo Integration

Hello,

Im new to mambo and I just finished working through the problems surrounding 1.5 gallery with mambo 4.5.

Everything works fine except I cant seem to figure out how to allow logged in users to create albums viewable by public but only editable by the person who creates it.

Thoughts?

Thanks in advance,
D
dlsodders is offline   Reply With Quote
Old June 10th, 2006, 18:39   #18
Mantis_Atlantis
 
Join Date: Mar 2006
Posts: 10
Mantis_Atlantis is on a distinguished road
Default

I've also just upgraded to 4.5.3h and now my Gallery doesn't work:

I added in session_start(); that seemed to get rid of the message of "Gallery seems to be there..." My Mambo 4.5.3 site had been hit by massive hacking which caused our very reliable 3rd party server hosts to be down for 2 days. Removing session_start(); may compromise the security of my site again.

BUT I've also got ALOT of warning errors caused by the transfer... How do I fix these?

Code:
Warning: set_time_limit(): Cannot set time limit in safe mode in /home/nzpbccon/public_html/gallery/init.php on line 68

Warning: putenv(): Safe Mode warning: Cannot set environment variable 'LANG' - it's not in the allowed list in /home/nzpbccon/public_html/gallery/lib/lang.php on line 342

Warning: putenv(): Safe Mode warning: Cannot set environment variable 'LANGUAGE' - it's not in the allowed list in /home/nzpbccon/public_html/gallery/lib/lang.php on line 343

Warning: putenv(): Safe Mode warning: Cannot set environment variable 'LC_ALL' - it's not in the allowed list in /home/nzpbccon/public_html/gallery/lib/lang.php on line 345
	
	 Gallery

Last edited by Mantis_Atlantis : June 10th, 2006 at 18:54.
Mantis_Atlantis is offline   Reply With Quote
Old June 10th, 2006, 21:27   #19
adilovetini
Super Mod
 
adilovetini's Avatar
 
Join Date: Oct 2005
Location: Bali, Indonesia
Posts: 677
adilovetini is on a distinguished road
Default

your server use safe mode = on setting. in the safe mode env, there are some limitations on functions use such set_time_limit, locale setting and other php.ini setting. you can hide such warning info by puttng

error_reporting (E_ALL ^ E_NOTICE);

in the first line of init.php
__________________
Adi Setiawan
-------------
http://ex3me.org
Official Mambo CMS Forums: http://forum.mambo-foundation.org
adilovetini is offline   Reply With Quote
Old June 10th, 2006, 23:24   #20
Mantis_Atlantis
 
Join Date: Mar 2006
Posts: 10
Mantis_Atlantis is on a distinguished road
Default temporary solution

Not a fix to the Mambo source code, just changing the settings so that the warning messages are hidden.

I commented out the old line and put the "error_reporting (E_ALL ^ E_NOTICE);" line instead but the warnings still kept coming up.

I did this however, my 3rd party hosts gave me access to the php.ini file so I just turned off all error reporting - "display_errors = Off" . This is actually the recommended setting but they never did...

Together with the earlier fix of commenting out start_session for index.php & index2.php. My site is working fully under 4.5.3h with security patch - safe mode including the Gallery.

Last edited by Mantis_Atlantis : June 10th, 2006 at 23:31.
Mantis_Atlantis is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
The actual usefulness of Mambo? zimen General Questions 10 November 19th, 2005 04:15
Mambo Documentation Resources kenmcd Documentation Resources 8 June 2nd, 2005 20:07
editing menalto gallery in mambo admin & linking individual albums within mambo ajollybengali General Questions 1 May 5th, 2005 12:38
gallery issue with mambo (necessary info not found) joeykangaroo Open Source Products for Mambo 3 October 25th, 2004 12:40


All times are GMT -7. The time now is 07:29.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.