Problems including a random picture on main page of website

joffar

Joined: 2004-04-02
Posts: 6
Posted: Sat, 2004-04-03 20:54

I'm not sure ifthis is the right place to post this but.. First of all I do not know very much about php, but I have installed Gallery 1.4.2 and everything is working fine. I tried to implement random image as well as top x albums on my main page. This is where I run into problems.
I use a session_start() on my main page to track login, as well as language. So when I try to include the block_random.php I receve a message stating that the gallery has not been configured... But if i try to access the gallery everything works fine.
I think(probably shouldnt but...) that it has something to do with me using a session _start at the main page, maybe because Im using $_SESSION variables and the gallery using the $_HTTP_.. _VARS and register _globals. But im not sure. Is there anyone that can point me in the right diretion as to how to solve this issue?

If checking my website, please choose the english languange to see the config error in the picture page.
Much appriciated..
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://imyha.dynu.com/gallery/
Gallery version: 1.4.2
Apache version: 1.3.27
PHP version (don't just say PHP 4, please): 4.2.3
Graphics Toolkit: ImageMagick-5.5.7-Q8
Operating system: Win XP pro
Web browser/version (if applicable): Opera 7.23 & 7.5 Pre2, Firefox 0.8, IE 6.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sat, 2004-04-03 21:17

moving to correct forum.

 
joffar

Joined: 2004-04-02
Posts: 6
Posted: Tue, 2004-04-06 03:40

Problem solved...
I placed the include earlier in the file and set the outpur in the bloxk random to a variable. Then called the variable where I wanted it....