Xaraya random block not working after move

kmccann

Joined: 2005-04-14
Posts: 6
Posted: Thu, 2005-08-25 15:03

Hi,

I have gallery2 integrated into my Xaraya site. The gallery itself appears to work fine. I also have a gallery/image block that shows random photos. When I try to access the site via a virtual host address the block shows the title instead of the photo.

When visiting the site here, it works fine:

http://open.bellanet.org/km4dev

When vi\siting it here, it does not:

http://www.km4dev.org

Scroll down to the bottom left to see the random photo block.

A couple of things to note:

1) I saw that there was a config.php file in gallery2/ dir and I editied the last directive to:

$gallery->setConfig('galleryId', 'www.km4dev.org/gallery2');

2) I tried to run this script, but I get:

Fatal error: Call to a member function on a non-object in /home/httpd/html/km4dev/gallery2/config.php on line 35

So ... do I need to even fiddle with this file? What else might I have to do to get the block to show photos when visiting via the virtual host address?

Thanks,
Kevin

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 31964
Posted: Thu, 2005-08-25 23:12

who said it would work with virtual hosts? i'm sorry, but it doesn't.
there are plans to support this, but don't count on it anytime soonish.

Login or register to post comments
kmccann

Joined: 2005-04-14
Posts: 6
Posted: Fri, 2005-08-26 12:30

Hmmm. I think ytou're reading more into "virtual hosts" than need be. Maybe I've clouded the issue by using that term. I don't need for the site to be accessible from open.bellanet.org/km4dev at all. I need it to be availlable from only www.km4dev.org. I just happened to set it up at the other address to get the site ready before putting it into production.

So, what I need to know is: how do I tell gallery2 that it lives within a Xaraya site at www.km4dev.org now, not anywhere else?

Thanks,
Kevin

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 31964
Posted: Fri, 2005-08-26 17:14

during configuration, access the xaraya admin menu -> gallery2 -> config from the URL that you will use in production.

btw: g2 on a different subdomain than the CMS isn't yet supported either.

Login or register to post comments
kmccann

Joined: 2005-04-14
Posts: 6
Posted: Fri, 2005-08-26 19:13

No, that's the first thing I did. It's configured properly:

Status of the Gallery2 module: The current configuration seems to be ok!

Relattive URL to G2: gallery2/

G2 Include path (optional): /home/httpd/html/km4dev/gallery2/

That's the thing, the gallery itself works just fine. It's just that random picture block that is running into problems. very weird. Anyway, I'll dig a bit more and if I solve it I'll post something here ...

- Kevin

Login or register to post comments