Random Block issue

Ateo

Joined: 2004-01-02
Posts: 3
Posted: Fri, 2004-01-02 01:14

Hello,

I just added the gallery block to my site (block-random.php using Gallery v1.4-pl2). The block works only once and then outputs the following error:

Warning: rand() expects parameter 2 to be long, string given in /usr/local/www/virtual3/66/175/34/159/html/modules/Gallery/block-random.php on line 138
ERROR: requested index [] out of bounds [17]
Fatal error: Call to a member function on a non-object in /usr/local/www/virtual3/66/175/34/159/html/modules/Gallery/classes/Album.php on line 675

If I delete block-cache inside the albums/ directory and refresh, the block works, but only once. Once refreshed again, it displays the same error.

The directions for installing are pretty straight forward so I'm positive that I did not overlook any of the required edits to the files that required editing.

Any help would be much appreciated.

Juan

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Fri, 2004-01-02 15:45

Can I assume you are using one of the nukes? Be sure you are using the latest blocks: for PostNuke see http://www.holzapfel-online.de/modules.php?op=modload&name=Downloads&file=index&req=viewsdownload&sid=4 and for PHP-Nuke see http://nukedgallery.net.

 
Ateo

Joined: 2004-01-02
Posts: 3
Posted: Fri, 2004-01-02 20:01

I'm using a PHPNuke clone and the block attained from nukedgallery.net gave me more headaches than the one I got from here. My clone uses a different sql_layer, among other scripts. However, nuke blocks/modules can be adapted quite easy.

However, I do have an out of the package PHPNuke 6.9 dev site and neither of the blocks work.

 
Ateo

Joined: 2004-01-02
Posts: 3
Posted: Fri, 2004-01-02 22:14

** UPDATE **

No worries. I ended up making my own block file and modifying block-random.php copied from this site. I ended up deleting use of the cache file.

Thanks