My Random Image Block for Gallery was working fine and suddenly quit today. Please help if you know how.
Warning: rand() expects parameter 2 to be long, string given in /home/.dacia/docrock/funk/block-random.php on line 70
ERROR: requested index [] out of bounds [3]
Fatal error: Call to a member function on a non-object in /home/.dacia/docrock/funk/gallery/classes/Album.php on line 642
------
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://www.funkmunkeyz.com/gallery/
Gallery version: latest 1.3.3
Apache version: Apache/1.3.27 (Unix) mod_gzip/1.3.19.1a
PHP version (don't just say PHP 4, please): PHP/4.2.3
Operating system: Linux gaia 2.2.20 #1 Mon Dec 31 07:05:08 EST 2001 i686
Web browser/version (if applicable): ie5, ie6
Posts: 3474
First, delete the albums/block-random.cache file. It only updates once a day, and if you've made changes (deleting, moving, renaming, etc.), it might not have registered.
If you still have the problem, please tell us what's changed on your site that might have made it stop working. Things rarely if ever just "stop" for no reason. :smile:
-Beckett (
)
Posts: 3
same sitch here. the included stand-along randomblock i had was working a charm for a long time, and then *ka-put*.
i also got the same error, and deleted the block-random.cache file... no joy
-- it works once, then i get the same error again.
-- if i access the file directly at:
http://kidsown.ie/showcase/block-random.php (note: i had to take down this file, because of the unsightly error massage. but this is what it said
I get this error:
when i try to include it i get this error below, which says I need to configure. so i went through set-up to configure *twice*.... no joy.
i am using Gallery v1.3.1, on a linux/apache server, PHP Version 4.3.0
http://kidsown.ie/showcase/