Random Block problem - PhpNuke6.0 & Gallery 1.3.3

angurio

Joined: 2003-01-27
Posts: 2
Posted: Tue, 2003-01-28 01:40

Used these instructions for random-block & phpnuke6.0:

http://www.netbox.co.uk/html/modules/gallery/block-random.html

All seems to be fine, then when i click on the image....

Fatal error: Cannot redeclare fs_copy() in /home/4580/netbox/www.netbox.co.uk/public_html/html/modules/gallery/platform/fs_unix.php on line 22

try it! http://www.netbox.co.uk/html

If anyone has any ideas... angurio.

 
American
American's picture

Joined: 2003-02-01
Posts: 7
Posted: Sat, 2003-02-01 07:31

Same here.... setup a custom theme using PHPNuke 6.5 Beta 5, was working well with the other themes if I remember correctly:

Fatal error: Cannot redeclare fs_copy() in /home/sites/site3/web/modules/gallery/platform/fs_unix.php on line 22

This only occurs on the Gallery page, you can go to the home page or any other page for that matter http://www.americanintelligence.us/index.php

But when you go to the Gallery page http://www.americanintelligence.us/modules.php?name=gallery you get the error in the random photo block at bottom right.

The offending code is the second line in this block:

<?php
function fs_copy($source, $dest) {
$umask = umask(0113);
$results = copy($source, $dest);
umask($umask);

Not sure how to fix.... function fs_copy($source, $dest) {
This is purely a hobby site so I am always tinkering with it but I'm stumped on this one.