Known problem (as shown) NO ANSWER

gzack

Joined: 2003-03-23
Posts: 9
Posted: Mon, 2003-03-24 14:07

Hello everybody I run phpnuke 6.0 and I succesfully installed random block. Everything worked fine till last night where a sudden power failure on my pc while I was uploading pictures in the gallery casused the following problem. When I try to access gallery with the random block active I get the right blocks in the middle of my site and a fatal error

Fatal error: Cannot redeclare fs_copy() (previously declared in /home/zack/public_html/portal/modules/gallery/platform/fs_unix.php:22) in /home/zack/public_html/portal/modules/gallery/platform/fs_unix.php on line 22

After a detailed search in the fag and forums I realised that this is quite a known problem as other users have posted the same question in the past but there was no answer!!! I include underneath the problem of other users found on old posts

PLEASE IF ANYONE KNOWS THE SOLUTION I WOULD APPRECIATE THE SOLUTION...

FROM ANGURIO

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.

Reply Reply with quote
American

Visitor
Posts: 3 Posted: Jan 31, 2003 - 07:31 PM
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.
_________________
Brad G American Intelligence

 
gzack

Joined: 2003-03-23
Posts: 9
Posted: Mon, 2003-03-24 15:20

PLEASE HELP!!!!! This is thrird day spent trying to make gallery work I am just minutes away from having a nervous breakdown!!!! :mad:

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Mon, 2003-03-24 16:49

if the block is on the left side of the page, move it to the right. that fixed it for me, don't know why it did, but it did.