Mambo 4.5.1a problem (Gallery seems to be inside Mambo, etc)
duckpuppy
Joined: 2004-11-09
Posts: 18 |
Posted: Mon, 2004-12-20 23:18 |
Here's a weird problem. I have Gallery 1.4.4-pl4 embedded in a Mambo 4.5.1a install with no problems as long as I'm not logged into the front end as an admin. If I'm logged in, here's what happens: Any function that does NOT open a pop-up: works. Any function that OPENS a pop-up (ex. photo properties or rename album) works ONCE, but after that I get " Now, there is a workaround. I can log into Mambo as admin (http://www.myhost.com), then enter the direct URL to gallery (basically, pull it up as a standalone OUTSIDE Mambo using http://www.myhost.com/gallery) and do everything successfully. That tells me that the session variables are set properly since Gallery still knows I'm an admin. If I am NOT logged in, photo properties (the only thing I remember that opens a pop-up available to non-registered users) ALWAYS works fine every time. I can't easily give full admin rights to the site, but I may be able to create an account and an album with rights that will allow this problem to be seen if absolutely necessary. What debugging info can I give to help diagnose this problem myself? |
|
Posts: 13451
Gallery 1.4.4-pl4 is not compatible with Mambo 4.5.1a - Gallery 1.5 is and is currently under development.
Posts: 18
Thanks... I guess I'll live with the workaround until 1.5 is ready. Or G2 has embedding support
Posts: 18
Just tried Gallery CVS and it's worse at the moment in 4.5.1a (I can view the gallery and look at the images, but I ALWAYS get the "Gallery seems to be inside Mambo, but we couldn't get the necessary info" error now, regardless of if I'm logged in or not when I click on any admin/properties links). I'm just too impatient. I'll be quiet now ;)
Posts: 9
I run Gallery 1.4.4-pl4 with Mambo 4.5.1a and it works?
I get that error occasionally but if I refresh it is fine
I had to change the admin password for the gallery to match that of mambo to get it to work but otherwise (ok I have a session issue see me other post) it works..
Posts: 18
One interesting thing I've just noticed... I only have the problems in Firefox 1.0... if I use IE (which I don't usually) I don't have those problems.
Posts: 2322
Disabled your cookies?
The CVS version is definitely much more compatible with Gallery. I specifically tested every page, in virtually every scenario I could find that would cause problems, and ended up rewriting a good bit of the code that handles passing the Mambo authentication information around.
If you're getting the "inside Mambo" message, it's almost certain that your cookie isn't getting to the server for some reason, especially if it works in IE.
Posts: 18
Nope, I've got it set to allow cookies. The only restriction I have is that "Keep cookies" is set to "Until I quit FireFox". Mambo itself works fine... I can log in and perform whatever front- or back-end functions I need to, and if I view cookies in the Privacy tab of FF, I can see all of my website cookies. The only things that give me problems in FF are the things in Gallery that require pop-ups, and the pop-ups only work once until I refresh the main page. Then they'll work again.
Posts: 18
I added a snippet of code to the 'mambo' case of the embedded switch statement in the CVS version of init.php so I could view all session variables (using print_r($_SESSION) ). Any time that I see the error, there are 2 gallery sessions, one that has the [mambo] key, and one that doesn't. Any time a pop-up WORKS, I only see one gallery session. It looks like session_start() gives the pop-up a new session occasionally rather than the existing one. Just thought I'd share.
Posts: 18
I've been playing more and have gotton nowhere. Obviously, I'm in a minority here. Anyone have any ideas on what the problem might be? Why am I getting duplicate sessions?
Posts: 18
OK, using single window extensions (the Tabbrowsing Extensions extension or the hidden single window mode in Firefox 1.0) causes the problem in 1.4.4pl4. Disabling single window mode by uninstalling TBE or turning off the "Force links that open new windows to open in:" option in Firefox fixes the session problems in 1.4.4pl4, but hopefully this can be fixed in Gallery, or at least in G2. Doing pop-up tests in Mambo (creating a menu item that generates a pop-up window) works fine in single window mode in Firefox, PHP sessions work properly, etc, so it doesn't seem to be a Firefox problem.
However, the current CVS version of Gallery 1 (updated today at ~3:00 MST) doesn't work in Mambo at all in any browser. ALL pop-ups in any browser have the multiple session problems on multiple computers at my job. Changing cookie settings to the least restrictive possible doesn't help, using IE vs Firefox doesn't help.
I'm fully aware that a PHP or server misconfiguration might cause this problem. My research hasn't revealed anything in my configuration that could be causing this, but I'm open to suggestions.
Posts: 18
Finally got CVS gallery working. It was a database problem, had to change the mos_gallery table to reflect a different path to the gallery install. I kinda figured that one was my fault. I'm using the CVS version now with no problems integrated with Mambo. One nice thing: the CVS version seems to work with single-window browsing on! Yippee!
Call me a dummy and close this thread :P
Posts: 2322
YAY!
I was starting to get worried that there was really something serious wrong that I was just unable to see. I use Firefox and TBE *constantly* and I'd never seen a problem...
I'm glad you figured it out, but I'm even more glad that it works.
Posts: 18
I did still see the problem in 1.4.4-pl4 with pop-ups (first one worked, the second pop-up from the same page would have a new session key). As long as it's fixed in CVS (and it seems to be), I'm a happy camper
Posts: 10
OK, I am running the latest gallery 1.5 cvs in mambo 4.5.1a, and whenever I am logged in as a user with editing rights and try to change any properties I get the same popup people were complaining about earlier in this post. As they found, it only seems to happen in firefox, not IE, but I have checked on two different pcs here and it happens on both. Any ideas on how to fix it?
Posts: 10
Problem solved. It turns out this happens when the url entered in the mambo configuration doesn;t match the gallery one because from one you have included the www. bit of the address and the other you haven't.
Posts: 2
Hi, I am quite a newbie and was wondering how you did this.... i.e. match up the url configuration (http and www). I did find that when I entered the http url I didn't come up with the error message, however if I put in my url with www it did. The url I use is the www one.
Any help would be appreciated.
Thanks!
Using Gallery v1.4.4-pl6 w/ Mambo v4.5.2
Posts: 2
Nevermind. I figured it out. I just used the configuration wizard.
Thanks.
Posts: 7
Okay, I'm completely lost. I have it set up correctly as far as I can tell and I'm getting the same popup error. Here's my setup:
Mambo:
Absolute Path: /home/MYHOMEDIR/public_html
Live Site: http://www.MYSITE.com
Gallery config:
$gallery->app->photoAlbumURL = "/components/com_gallery";
$gallery->app->albumDirURL = "/albums";
Now, I know there's no matching problem because I'm using relative URLs. I tried replacing them with static URLs (using www.MYSITE.com); no dice. What else can I try?
One thing I noticed was that if I go to:
http://www.MYSITE.com/components/com_gallery
directly, it actually redirects to:
http://MYSITE.com/components/com_gallery
This could be an .htaccess problem, right? Any idea how I could fix that?
Thanks,
Zephyr
Posts: 7
Oh yeah, forgot to add. If I go to:
http://www.MYSITE.com/components/com_gallery
I get the redirect problem
BUT if I go to:
http://www.MYSITE.com/components/com_gallery/
it stays www.MYSITE.com!!
Posts: 1
I'm stuck with the error message too. I ended up hard-coding the globals in the mambo case in init.php. Then most of the things seemed to work, except adding pictures, then I switched to Gallery Remote to do that. Also, when I add comments, using the above hack, another user is used as author for the comment.
I'm sure it's a session problem, and I'm just so close to a final working version that I really want it to work. However, reading all the posts from people with the same problem, gives me the impression it may be harder to solve than I thought.
I'm using:
Gallery 1.5.1
Mambo 4.5.2
Posts: 16
I'm having the same problem, except that it only affects Mac users.