fopen("/block-random.cache", "w") - Perm

Norrin
Norrin's picture

Joined: 2003-06-20
Posts: 6
Posted: Sun, 2003-06-22 12:30

Hi,

i'm running an eNvolution-Site. eNvolution is a fork to PostNuke and therefor pretty much the same ... . I would like to integrate the 'Random Picture Block'.

Gallery 1.3.4 is installed, initiallized as module 'Gallery' only once and running perfect.

Making my first steps using the 'random picture block' I ran into the following errors:

Fatal error: Cannot redeclare fs_copy() (previously declared in /www/mydomain/com/modules/Gallery/platform/fs_unix.php:22) in /www/mydomain/com/modules/Gallery/platform/fs_unix.php on line 22

So I tried a hint I read here in the forum concerning a double installation of 'Gallery 1.3.4', even though I installed it only once:

require($GALLERY_BASEDIR . "init.php");

changed into

require_once($GALLERY_BASEDIR . "init.php");

After that the above mentioned errors were gone. The 'picture block' also seemed to work allright showing the desired picture/album.

BUT on top of the block I get the following error ever since

Warning: fopen("/block-random.cache", "w") - Permission denied in /www/mydomain/com/modules/Gallery/platform/fs_unix.php on line 53

as soon as I clicked on the picture/album link and the new page is fully loaded.

I suppose the solution is quite easy, but I'm really stuck. Can anybody help me out, please?

TIA
Norrin

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Mon, 2003-06-23 04:13

looks like maybe the fopen wrappers in the php.ini are disabled.

please provide us a link to your phpinfo.php file so we may see if everything is in order

 
Norrin
Norrin's picture

Joined: 2003-06-20
Posts: 6
Posted: Mon, 2003-06-23 08:41

php.ini says:

'zlib:' fopen wrapper -> enabled

Norrin

 
Norrin
Norrin's picture

Joined: 2003-06-20
Posts: 6
Posted: Mon, 2003-06-23 09:50

Solved the prob:

There is a newer version of the 'random picture block' that i use, which works perfectly fine.

http://www.hillen-spoerl.de/modules.php?op=modload&name=UpDownload&file=index&req=viewsdownload&sid=2

Norrin