Mambo 4.5.2.1 and Gallery 1.5 - popups do not work

Brat

Joined: 2003-08-03
Posts: 50
Posted: Mon, 2005-05-02 06:26

Hello all.

I've double checked my configuration, pathways, site URL, etc. I cannot figure out why Gallery 1.5's popups are not working.

When I log in, the appropriate administration/user functions come up, and the ones that do not require a separate popup window work just fine.

As for the ones that do require popup? I get the dreaded message from init.php (init.php: Gallery seems to be inside Mambo, but we couldn't get the necessary info.)

When I did some digging, I noticed the following:

In both my native Gallery (meaning accessed from the browser) and embedded (within Mambo), popups share the same URL structure. In the following example, I accessed the ALBUM-->REORDER admin command from Gallery's front page. Both native and embedded had the following URL:

http://www.mysite.com/gallery/index.php?set_albumName=comp&index=1&reorder=0&gallery_popup=true&option=com_gallery&Itemid=55&include=move_album.php

Now, here's the strange thing: that URL works PERFECTLY in native Gallery. However, embedded Gallery generates the init.php error message I posted above.

As I said at the beginning, I've checked URL, etc., and I'm stumped. Is this a bug? What should I do now?

Thanks in advance for the help.

Regards,
Brat.

EDIT: Sorry, forgot the server information and such.

Mambo 4.5.2.1
Gallery 1.5
Apache Server
LINUX OS
PHP Version 4.3.10

 
eldo21

Joined: 2005-05-07
Posts: 1
Posted: Sat, 2005-05-07 09:20

same issue for me. Save versions as above.

Chad

 
tenjin

Joined: 2005-05-09
Posts: 9
Posted: Mon, 2005-05-09 22:45

Hi,

Me too.

Any ideas?

Cheers

D.

 
tenjin

Joined: 2005-05-09
Posts: 9
Posted: Tue, 2005-05-10 22:29

Hi,

Can anyone shed any light on this problem?

I'm desperate for a fix as this is the only thing preventing my site from going live.

Thanks

D.

 
tenjin

Joined: 2005-05-09
Posts: 9
Posted: Thu, 2005-05-12 12:29

* bump *

It seems that a lot of us have this problem but no-one seems to have an answer.

If any of the Gallery developers are reading this would you mind having a look at it and see if you can make any suggestions please?

Thanks

D.

 
Brat

Joined: 2003-08-03
Posts: 50
Posted: Fri, 2005-05-20 04:46

I don't know if this means anything, but on a hunch, I logged into Mambo administration and took a look at the Gallery component configuration.

Mambo forces a final slash at the end of the absolute pathway.

Now, I do remember that you are NOT supposed to include that final slash in Gallery's configuration.

To all the Gallery experts out there: Is there any possibility that Mambo forcing in a final slash could be the culprit?

 
daestrom

Joined: 2005-06-14
Posts: 1
Posted: Tue, 2005-06-14 20:59

You don't need the "/gallery".

Either edit your config.php file and change line 51

$gallery->app->photoAlbumURL = "http://www.website.com/gallery";

to:

$gallery->app->photoAlbumURL = "http://www.website.com";

or when you're configuring Gallery

 
bikeboerny
bikeboerny's picture

Joined: 2005-06-19
Posts: 1
Posted: Sat, 2005-06-25 14:15
daestrom wrote:
You don't need the "/gallery".

Either edit your config.php file and change line 51

$gallery->app->photoAlbumURL = "http://www.website.com/gallery";

to:

$gallery->app->photoAlbumURL = "http://www.website.com";

or when you're configuring Gallery

I also do have this problem, and tried the changes above:
With additional final "/" on the URL - wich causes an error becaus of double // from inside Mambo - and -
without "/gallery" wich doesn't change anything in my installation.

The path for gallery not inside Mambo an is accessed by a subdomain. Could one of these facts be a problem for Mambo integration?

 
[MaxX]

Joined: 2005-07-01
Posts: 4
Posted: Fri, 2005-07-01 09:36

I have the exact same problem with the same configuration, it is very frustrating, I tried installing it 3 times and the problem persists, everything is checked, domain is correct, everything...

Would using gallery2 be a better idea? Does it integrate well with mambo? Or any other gallery?

 
[MaxX]

Joined: 2005-07-01
Posts: 4
Posted: Fri, 2005-07-01 09:38
daestrom wrote:
You don't need the "/gallery".

Either edit your config.php file and change line 51

$gallery->app->photoAlbumURL = "http://www.website.com/gallery";

to:

$gallery->app->photoAlbumURL = "http://www.website.com";

or when you're configuring Gallery

dont give such wrong advice, I tried that and galery itself stopped working, because the index.php of gallery is in the gallery folder and not in root!

 
notgoddess
notgoddess's picture

Joined: 2005-04-03
Posts: 178
Posted: Sat, 2005-07-02 00:27

This might help-in trying to get my mod to work I had to use Gallery's makeGalleryUrl function so it would have the right link for Mambo (directing to Mambo's index page instead of direct to Gallery).

The function is in gallery/lib/url.php. If you know where the problem link is generated maybe you can hack it to use that function to create the proper link if embedded.

NotGoddess

 
drax

Joined: 2005-07-13
Posts: 3
Posted: Wed, 2005-07-13 02:01

Had the same Problem:

Quote:
As for the ones that do require popup? I get the dreaded message from init.php
(init.php: Gallery seems to be inside Mambo, but we couldn't get the necessary info.)

What solved it was to correct the Gallery-url in the Gallery configuration:

-log into native Gallery and run the configuration wizard
-after next step, go to the "Locations and URLs" tab
-check if "Gallery URL" is right: The full URL to the Gallery web application. (e.g. "http://www.example.com/gallery") Gallery can operate with relative URLs, however some features, such as printing, may not function correctly.
I changed my url from "http://mydomain.rr" to "http://www.mydomain.rr"
-then save the config.

This worked for me! :P
I don't know if this solves your problems, but I could reproduce the problem so it seems to be really this url thingy.

 
speedweed2000

Joined: 2005-07-17
Posts: 1
Posted: Mon, 2005-07-18 12:19

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

if you have a mambo site on www.somesite.com/mymambosite/ which has a gallery component, your gallery component must also be on www.somesite.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.somesite.com/mambosite/ WITH www.somesite.com/gallery

this will not work :cry:

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

that will work sweet!

you're all welcome.
Mike