Help please

docrock

Joined: 2003-02-05
Posts: 13
Posted: Thu, 2003-02-06 07:10

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

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2003-02-07 11:14

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 (

)

 
hezair

Joined: 2002-10-03
Posts: 3
Posted: Mon, 2003-03-03 11:06

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:

Quote:
Warning: rand() expects parameter 2 to be long, string given in /path/to/local/kidsown.ie/showcase/block-random.php on line 136
ERROR: requested index [] out of bounds [6]
Fatal error: Call to a member function on a non-object in /path/to/localkidsown.ie/showcase/classes/Album.php on line 570

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.

Quote:
Warning: main(errors/configure_instructions.php) [function.main]: failed to create stream: No such file or directory in /path/to/local/kidsown.ie/showcase/errors/unconfigured.php on line 10

Fatal error: main() [function.main]: Failed opening required 'errors/configure_instructions.php' (include_path='.:/usr/local/lib/php') in /path/to/local/kidsown.ie/showcase/errors/unconfigured.php on line 10

i am using Gallery v1.3.1, on a linux/apache server, PHP Version 4.3.0
http://kidsown.ie/showcase/