Mambo Question

Grayson

Joined: 2004-10-26
Posts: 3
Posted: Mon, 2005-05-02 15:05

I run several Mambo sites and have set up Gallery 1.4.4 on most of them. I used the Mambo component to incorporate these sites with Mambo and all worked just fine .... until recently.

I go to the Gallery link (inside Mambo). It shows that I'm logged in correctly (also as an administrator). I can create an album. But now, it will not allow me to add photos, delete, hardly anythinmg else! I get the follow error message in a pop-up:


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

Duh? What info. is it looking for? I'm already logged in! I've already created an album!

This is happening in Mambo versions 4.5.1 & 4.5.2. Does anyone else have this problem? Is there a solution? Is this a config problem, or what?

Hours have been sent on setting these sites up correctly, then adding a huge amount of images. All sites worked excellently for a time but seemed to all "blow up" at the same time! Bummer!

Any help the community can give me would be appreciated.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Mon, 2005-05-02 23:01

This really belongs in the "Gallery in other applications" forum. Moving.

 
Brat

Joined: 2003-08-03
Posts: 50
Posted: Tue, 2005-05-03 20:20

I already posted about this problem a day or so ago. I, too, am getting the same error with Mambo and Gallery. I had thought my situation was a fluke, but now I know differently.

Something is fundamentally *wrong* with the Gallery Mambo component, pure and simple. :evil:

Is anyone else having this issue? Please speak up and let it be known. Also, if you have found a solution (or at least a workaround), post that too. 8)

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2005-05-03 20:33

Gallery 1.4.4 has several known issues with Mambo (particularly with popups).

Gallery 1.5 resolves virtually every issue with Mambo.

 
Brat

Joined: 2003-08-03
Posts: 50
Posted: Wed, 2005-05-04 01:47
signe wrote:
Gallery 1.4.4 has several known issues with Mambo (particularly with popups).

Gallery 1.5 resolves virtually every issue with Mambo.

The key word being "virtually." :roll:

Urls, popups, etc., are acting strangely, and for no reason that seems readily apparent (though I'm no expert).

The albums, etc., render well enough (though for some reason Firefox doesn't seem to like some of the layout as well as IE does - browser idiosynchracies are not surprising). The real issue is with URL/popup behavior, or why Gallery can't find the info it needs to function correctly where this is concerned.

Any ideas or places to look would be helpful, and appreciated. In all honesty, statements that allude to Gallery 1.5 being the near-panacea for Mambo don't help much. ;)

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2005-05-04 02:20

Well, until someone says that they've tried it, which nobody here has yet, I have nothing to go on.

As far as I can see, this thread is about Gallery 1.4.4, and nobody has said any different.

You also need to give some examples if you expect results. "It doesn't work right" simply doesn't help any of us.

 
tenjin

Joined: 2005-05-09
Posts: 9
Posted: Mon, 2005-05-09 23:00

Hi,

I have the same problem. When I click on "add comment" or "add album" or "abb photo" links I get the "init.php: gallery seems to be inside Mambo but we can't get the necessary info." error.

I am using:

- Mambo 4.5.2 running via MSAS for development, but a standalone installation of 4.5.2 on live.

- Gallery 1.5

- Browser: Firefox 1.02 and I.E. 6.0 (same problem in both browsers)

- It works fine when running Gallery standalone

Any ideas? I need to get this fixed ASAP or switch to another gallery component as I have a delivery to make.

Thanks in advance for any help you can give.

Cheers

D.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2005-05-09 23:03

MSAS?

 
tenjin

Joined: 2005-05-09
Posts: 9
Posted: Mon, 2005-05-09 23:12

Hi,

It's the Mambo StandAlone Server - a bundled copy of Mambo, PHP, Apache and MySQL in one EXE for ease of use.

Have a look at: http://mamboforge.net/projects/msas/

Cheers

D.

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Tue, 2005-05-10 06:18

Hi,

maybe your mambo url doesn't match the url that is in your gallery config file.
For example, the url you are visiting is http://www.yoursite.com and the url in your gallery config file is http://yoursite.com/gallery (without www)
Adding a www to the Gallery url should solve that problem.

Or did you try to call the Gallery on your webserver from your local MSAS?

Kai

 
tenjin

Joined: 2005-05-09
Posts: 9
Posted: Tue, 2005-05-10 11:36

Hi,

I've checked that in both MSAS and live but looks fine to me.

I have the same problem in MSAS and live, in both IE and Firefox.

Any ideas? It looks to me like Gallery can't get access to Mambo user / session information.

Any ideas?

Cheers

D.

 
tenjin

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

Hi,

Anyone have any ideas about this?

I'm completely stuck, and this is the only thing that is stopping my site going live.

Cheers

D.

 
gsbe
gsbe's picture

Joined: 2004-01-27
Posts: 33
Posted: Wed, 2005-05-11 03:50
kai_tom wrote:
maybe your mambo url doesn't match the url that is in your gallery config file.
For example, the url you are visiting is http://www.yoursite.com and the url in your gallery config file is http://yoursite.com/gallery (without www)
Adding a www to the Gallery url should solve that problem.

This was the problem for me. When I accessed Mambo without the www it worked like a charm. In my Gallery's config.php I changed photoAlbumURL and albumDirURL to have the www. in front of the URL and everything works again like a charm. Thanks, Kai!

 
tenjin

Joined: 2005-05-09
Posts: 9
Posted: Wed, 2005-05-11 07:03

Hi,

That doesn't fix my problem I'm afraid.

I read somewhere else that it might be related to the ID for the mambo components getting confused when one installs, removes, then reinstalls Galley.

Any ideas?

If any of the Gallery developers are out there can you suggest anything?

Cheers

D.

 
gsbe
gsbe's picture

Joined: 2004-01-27
Posts: 33
Posted: Wed, 2005-05-11 07:44

tenjin- what are the values of photoAlbumURL and albumDirURL in your gallery's config.php?

 
tenjin

Joined: 2005-05-09
Posts: 9
Posted: Wed, 2005-05-11 12:07

Hi,

Here they are (and a couple of others in case they are relevant):

$gallery->app->photoAlbumURL = "http://localhost:85/mambo452/gallery";
$gallery->app->albumDirURL = "http://localhost:85/mambo452/gallery/albums";
$gallery->app->userDir = "Z:/www/Mambo452/gallery/albums/.users";
$gallery->app->feature["rewrite"] = 1;

Gallery is installed inside mambo, and the album inside Gallery. That shouldn't make any difference should it?

Any ideas?

Thanks

D.

 
gsbe
gsbe's picture

Joined: 2004-01-27
Posts: 33
Posted: Thu, 2005-05-12 20:24

tenjin- you must be trying this on your local windows machine. sorry, I'm using Gallery on a remote linux machine...don't know much about those settings.

 
d3vlabs

Joined: 2005-05-10
Posts: 100
Posted: Tue, 2005-05-24 04:16

Try updating to latest Mambo component from CVS. Sounds like a path issue to me. Did you ever resolve this? Please let us know.

 
k_at_work
k_at_work's picture

Joined: 2003-04-01
Posts: 17
Posted: Thu, 2005-05-26 01:05

I've been fighting the same problem all day. I just installed Mambo for the first time today and installed Gallery 1.5 and the SMF forum. Everything was working fine till I saw a post somewhere and decided to move my album dir under mambo/images/stories so what it showed up in the Media Manager. After that the Gallery popups no longer worked from inside Mambo. Or that might have been when I first noticed the problem. It's possible the forum installation caused the problem too.

I tried removing and reinstalling Gallery (and the Gallery/Mambo integration) several times in different locations and nothing worked. I made sure my paths matched between Mambo and Gallery. I finally tried uninstalling the SMF forum and the Gallery popups worked again. I reinstalled SMF and everything is still fine. I have no clue why this would fix the problem but it might help others to try removing some other components.

Windows XP Pro SP1
Apache 2
PHP 4.3.5
Mambo 4.5.2 (SEO is off)
Gallery 1.5

 
k_at_work
k_at_work's picture

Joined: 2003-04-01
Posts: 17
Posted: Fri, 2005-05-27 01:53

Stopped working again today. :( I uninstalled the SMF forum again and it is working again. I'm going to leave the forum disabled and see if the popups still work tomorrow...

 
woof

Joined: 2005-06-01
Posts: 2
Posted: Wed, 2005-06-01 21:14

I am getting the same message.

here is the relevant portion of my config file for gallery.

/* Constants */
$gallery->app->galleryTitle = "Gallery";
$gallery->app->skinname = "none";
$gallery->app->uploadMode = "form";
$gallery->app->albumDir = "/home/XXXX/public_html/images/stories/albums";
$gallery->app->tmpDir = "/tmp";
$gallery->app->photoAlbumURL = "http://www.XXXXX.com/gallery";
$gallery->app->albumDirURL = "http://www.XXXXX.com/images/stories/albums";
// optional <i>watermarkDir</i> missing
$gallery->app->movieThumbnail = "/home/XXXXX/public_html/gallery/images/movie.thumb.jpg";
// optional <i>mirrorSites</i> missing
$gallery->app->embedded_inside_type = "";

If anyone can point out a problem please let me know.

It would be nice if this could be made to work.

 
woof

Joined: 2005-06-01
Posts: 2
Posted: Thu, 2005-06-02 04:12
signe wrote:
Gallery 1.4.4 has several known issues with Mambo (particularly with popups).

Gallery 1.5 resolves virtually every issue with Mambo.

Well I just upgraded to 1.5 and I still get the "init.php: gallery seems to be inside Mambo but we can't get the necessary info."

So what next?

Edit: I just went back in and now it works fine. Weird. I guess 1.5 is the fix.

 
patternscribe

Joined: 2005-05-30
Posts: 2
Posted: Thu, 2005-06-09 03:52

Alright, I've been doing a bit of investigation, and after talking to different people I have been able to conclude that what is causing the issue is a Mambo/SMF bridge component. When we have it installed, the pop-ups do not work. Once you uninstall it, it works fine. And it's not a permanent thing - you can install and uninstall and it will not work and then work accordingly.

I'm starting a thread over at Mambohacks so they can help out with this as well.

It would seem that however Gallery is accessing the info for the pop-ups, it gets confused when the bridge is in place. Hopefully we can get this figured out.

OH - another thing that may help find the problem : when the bridge is installed, gallery doesn't pull the skin/theme info either - it's just white with no buttons. When you uninstall the bridge, the skin/theme and buttons return.

Thanks in advance ...

----
EDIT
----

And yes, I did try installing v1.5 before I made this post :D