Posted on: 07/12/03 11:45pm
By: etegration
Hi All, i have gallery 1.3.4 install and integrated with Geeklog with no prob but when i install Blaine\'s random photo block, i get the following error:
Warning: fopen(/home/itcow/public_html/gallery/block-random.cache) [function.fopen]: failed to create stream: Permission denied in /home/itcow/public_html/gallery/platform/fs_unix.php on line 53
Why? I\'ve checked, there is no block-random.cache so i created a blank file with that name, upload it, the error changes to the following
Warning: Invalid argument supplied for foreach() in /home/itcow/public_html/block-random.php on line 97
Then i tried CHMOD that file to 777, and it\'s the same error:
Warning: Invalid argument supplied for foreach() in /home/itcow/public_html/block-random.php on line 97
So i delete that file, the first error message comes back but the random photos does appear on the block. Please take a look @ http://www.itcow.com I\'ve left it as it is for the moment.
Posted on: 07/17/03 06:13am
By: etegration
Posted on: 07/19/03 05:11pm
By: jadiepoo
define(CACHE_FILE, \"/tmp/block-random.cache\");
and replaced
$choose = rand(1, $count);
to
$choose = rand(1, intval($count));
in block-random.php
I also emptied out block-random.cache just to make sure and chmodded the files back to 777
Posted on: 07/19/03 05:16pm
By: jadiepoo
Posted on: 07/21/03 11:29am
By: etegration
Posted on: 10/09/04 06:07pm
By: Anonymous (BDUB)
Posted on: 10/13/04 04:18pm
By: ppmnt