Gallery 1.4.4 in Mambo 4.5 -- cannot view albums

bworley61

Joined: 2003-11-05
Posts: 17
Posted: Tue, 2004-08-03 20:28

Okay, I just upgraded my live gallery from 1.4.2_pl2 to 1.4.4, and then embedded gallery into my Mambo application.. and things are just getting worse...

Along with the ever-present "Gallery seems to be inside Mambo, but we couldnt get necessary infos." message in every popup window, I now cannot view album contents. In gallery debug mode, I get the following:

Notice: Undefined offset: -14 in /big/dom/mysite/www/gallery/view_album.php on line 688
  
Notice: Undefined offset: -13 in /big/dom/mysite/www/gallery/view_album.php on line 701
  
Notice: Undefined offset: -12 in /big/dom/mysite/www/gallery/view_album.php on line 701
  
Notice: Undefined offset: -11 in /big/dom/mysite/www/gallery/view_album.php on line 701

Notice: Undefined offset: -14 in /big/dom/mysite/www/gallery/view_album.php on line 709
 Error: Requested index [0] out of bounds [10] 
Fatal error: Call to a member function on a non-object in /big/dom/mysite/www/gallery/classes/Album.php on line 1600 

The site can be viewed at www.worley-world.com/index.php -- select "Photo Gallery" from the menu.

FYI - Gallery work just fine standalone, at www.worley-world.com/gallery/

Any clues?!?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2004-08-03 20:59

That is absolutely bizarre. Is there any way I could get site access to play with it?

Somehow, your starting image index is becoming negative, which should be impossible.

 
bworley61

Joined: 2003-11-05
Posts: 17
Posted: Tue, 2004-08-03 21:03
signe wrote:
That is absolutely bizarre. Is there any way I could get site access to play with it?

Somehow, your starting image index is becoming negative, which should be impossible.

absolutely -- send me an email with the access requirements you need.

thanks much!

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2004-08-03 21:13

Easiest thing would be to drop me a PM here.

Things that would make debugging easiest:

An admin login to Gallery (standalone)
A gallery-admin level Mambo account (not sysadmin, but whatever level you have defined as Gallery administrator in the component control panel) [I'm not seeing a signup link on your index]
FTP or SSH access so I can add debugging statements to files if necessary.

 
bworley61

Joined: 2003-11-05
Posts: 17
Posted: Wed, 2004-08-04 15:07

signe: I provided the requested information in a PM --- let me know what you find! thanks,

 
bworley61

Joined: 2003-11-05
Posts: 17
Posted: Thu, 2004-08-05 18:30

Hello signe,

Have you had a chance to login and debug yet ???

thx

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-08-05 18:58

No, sorry.. I'll do that this afternoon.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-08-06 06:25

Ok.. I just looked at it, and I've identified the issue.

It's phpShop.

phpShop is overwriting some of Gallery's variables (most notably the 'page' variable) which is causing the miscalculations that you're seeing. There's little to nothing that I can do about it except recommend that you remove phpShop.

 
bworley61

Joined: 2003-11-05
Posts: 17
Posted: Mon, 2004-08-09 16:12
signe wrote:
Ok.. I just looked at it, and I've identified the issue.

It's phpShop.

phpShop is overwriting some of Gallery's variables (most notably the 'page' variable) which is causing the miscalculations that you're seeing. There's little to nothing that I can do about it except recommend that you remove phpShop.

I removed phpShop and voila! The albums are back! Thanks much. Can you give me the variable names that are being overwritten, so I can either try to hack up phpShop, or --

find another shopping cart component.

Also - the ol' "... we couldnt get necessary infos." is still present.

thanks again!
Bob

 
pwheat

Joined: 2004-09-03
Posts: 19
Posted: Mon, 2004-10-11 20:40

OLD post, but did you find a way to get gallery and phpshop to coexist?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-10-11 20:42

Make sure that phpShop isn't loaded on any Gallery pages. That's it.

 
pwheat

Joined: 2004-09-03
Posts: 19
Posted: Mon, 2004-10-11 20:45

Groovy!! Thanks for the quick reply.
Ever used Mambo and Random Photos from Gallery?
I've been trying to get multiple random blocks on pages of a Mambo site
without success.