Random Block works only if gallery module is displayed

emeff
emeff's picture

Joined: 2003-11-10
Posts: 13
Posted: Tue, 2003-12-09 14:25

Hi,

hope you have an idea to solve this issue:

Joergs Random Photo Block 0.41 shows only a random picture when I switch to my gallery (1.4.1) of my PostNuke site (0.726).

In all other cases (e.g. homepage) there is a message that I need to reconfig my gallery (but this makes no changes).

Any idea?

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Tue, 2003-12-09 16:46

Have you done the following?

chmod 644 .htaccess
chmod 644 config.php
chmod 400 setup

Or simply run the secure.sh or .bat from command line.

 
emeff
emeff's picture

Joined: 2003-11-10
Posts: 13
Posted: Wed, 2003-12-10 06:14
Warren wrote:
Have you done the following?

chmod 644 .htaccess
chmod 644 config.php
chmod 400 setup

Sure, 8) my gallery is working. It's just the random block which displays the message (but only if the gallery in the main section is *not* displayed).

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Wed, 2003-12-10 16:50
MarcoF wrote:
Sure, 8) my gallery is working. It's just the random block which displays the message (but only if the gallery in the main section is *not* displayed).

So if you have Gallery as your start up main page it gives you the error but not when going into the Gallery? When does it not give you the error?

 
emeff
emeff's picture

Joined: 2003-11-10
Posts: 13
Posted: Thu, 2003-12-11 06:59

I will have (family) news on the homepage and in the right block where the random block should be displayed there is the error message.

When I switch to my gallery I see the gallery (it works) and in the right block the random block displays a random photo correctly!

You can check this @ http:/www.frediani.de/index.php (this is a review of our homepage which I want to launch in a couple of weeks; till now there is less content; my gallery is called 'Bildergalerie' the German name for it, the random block on the right side is called 'Bild des Tages' = 'Picture of the day'; in the moment everything is in German but I think you will understand the vital things :)

Beside that: With the active random block I can't enter the block, permissions and modules section of my administration area in PostNuke. When I try this the whole window contains the hint to reconfig my gallery. I need to deactivate the random block on database level. I don't know if you are familiar in PostNuke but perhaps it helps (or confused more???) :o

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Thu, 2003-12-11 23:17

This sure is screwey! For your problems with administering the block... I have had to just move the file to a different directory and listen to the errors until removing the block. This was with my newest photos block rather, but you seem to have the same experience. Then possibly just reinstall this and delete your cache file from albums/.

BTW, who's block are you using? Joerg's?

 
emeff
emeff's picture

Joined: 2003-11-10
Posts: 13
Posted: Fri, 2003-12-12 23:30

I have used Joergs version 0.41

In the meantime I have installed his 0.5x beta from Oct 16th.

It works better (the random photo is displayed), but *not* without an error message:

'Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/www/web131/html/modules/gallery/classes/database/mysql/Database.php on line 37'

This message is displayed above of the block only when I am logged in (as an admin or an registred user) and not in my gallery (e.g. on my homepage or somewhere else).
When I'm on my gallery within PostNuke or if an anonymous user enters my homepage or gallery the random block works fine.

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Fri, 2003-12-12 23:53

This is easily fixed by adjusting the
$GALLERY_EMBEDDED_INSIDE = "nuke";
line to say
$GALLERY_EMBEDDED_INSIDE = "postnuke";

 
emeff
emeff's picture

Joined: 2003-11-10
Posts: 13
Posted: Sat, 2003-12-13 00:18

in which file? i can't find it in database.php ...

 
emeff
emeff's picture

Joined: 2003-11-10
Posts: 13
Posted: Sat, 2003-12-13 00:19

sorry, found it in gallery_random.php ...

 
emeff
emeff's picture

Joined: 2003-11-10
Posts: 13
Posted: Sat, 2003-12-13 00:32

*yessssssss* it works!

Thank you, Warren!