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?
Posts: 794
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.
Posts: 13
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).
Posts: 794
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?
Posts: 13
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
Posts: 794
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?
Posts: 13
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.
Posts: 794
This is easily fixed by adjusting the
$GALLERY_EMBEDDED_INSIDE = "nuke";
line to say
$GALLERY_EMBEDDED_INSIDE = "postnuke";
Posts: 13
in which file? i can't find it in database.php ...
Posts: 13
sorry, found it in gallery_random.php ...
Posts: 13
*yessssssss* it works!
Thank you, Warren!