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
Posts: 794
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.
Posts: 3
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.
Posts: 3
** 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