| Author |
Message |
fallscrape
Beginner


Joined: Aug 20, 2003 Posts: 12
|
Posted: Wed Aug 20, 2003 6:54 am Post subject: Fatal error: Cannot redeclare fs_copy() |
|
|
Any ideas why this is trying to declare fs_copy() twice?
Fatal error: Cannot redeclare fs_copy() (previously declared in /home/neobard/htdocs/modules/gallery/platform/fs_unix.php:22) in /home/neobard/htdocs/modules/gallery/platform/fs_unix.php on line 22 |
|
| Back to top |
|
|
AdBot
|
| Post subject: Fatal error: Cannot redeclare fs_copy() |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 20, 2003 7:15 am Post subject: |
|
|
what block? what's the URL? please answer the questions in the forum posting block (OS, server info, etc).... _________________
 |
|
| Back to top |
|
|
fallscrape
Beginner


Joined: Aug 20, 2003 Posts: 12
|
Posted: Wed Aug 20, 2003 7:24 am Post subject: |
|
|
k - sorry :- )
This is on the interface on the "modules" section of www.neobard.info. When you click "Gallery" it does the fatal error.
I am using upto versions of PHPnuke & gallery. It is running on Apache on a Gentoo Linux box. Not sure what version apache is - but I'm not sure that's relevant atm. Gallery works OK if accessed by http://www.neobard.info/modules/gallery/, as does the random image block. |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Aug 20, 2003 7:42 am Post subject: |
|
|
| Try moving the block to the RIGHT - to see if its the block thats causing the error |
|
| Back to top |
|
|
fallscrape
Beginner


Joined: Aug 20, 2003 Posts: 12
|
Posted: Wed Aug 20, 2003 8:04 am Post subject: |
|
|
lol - misunderstood (moved "modules" block (aka menu)), then thought about it and moved "random picture". Yep, that was the problem.
Since you don't really need to use random picture when browsing the gallery, it's not a problem. I'd like to fix it if poss... should I pose the question in "blocks"? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 20, 2003 8:10 am Post subject: |
|
|
this should be fixed already. open the block file and make sure that at the top the line reads: require_once($GALLERY_BASEDIR."/init.php"); and not just require(....).. _________________
 |
|
| Back to top |
|
|
fallscrape
Beginner


Joined: Aug 20, 2003 Posts: 12
|
Posted: Wed Aug 20, 2003 8:42 am Post subject: |
|
|
(not quite the first line...) it read "require(...)" not "require_once($...)" (in the random_block) so I changed that and moved it back to the left. Instantly the problem came back. Does this simply mean I can only have the block on the right?
-------------------
(it's not a problem, it's a feature) |
|
| Back to top |
|
|
fallscrape
Beginner


Joined: Aug 20, 2003 Posts: 12
|
Posted: Wed Aug 20, 2003 8:46 am Post subject: |
|
|
hang on - it didn't upload right...
you were correct in your assumptions though!
Unfortunately it outputs this now!
Warning: fopen(/block-random.cache) [function.fopen]: failed to create stream: Permission denied in /home/neobard/htdocs/modules/gallery/platform/fs_unix.php on line 53 |
|
| Back to top |
|
|
fallscrape
Beginner


Joined: Aug 20, 2003 Posts: 12
|
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Aug 20, 2003 9:01 am Post subject: |
|
|
Try putting:
global $gallery;
at the top of random_support.php after
require_once($GALLERY_BASEDIR . "init.php"); |
|
| Back to top |
|
|
fallscrape
Beginner


Joined: Aug 20, 2003 Posts: 12
|
Posted: Wed Aug 20, 2003 9:09 am Post subject: |
|
|
| worked fine :- ) anything that might affect? plus the right bar has still gone AWOL (survey) But I can cope without that :- ) |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Aug 20, 2003 9:09 am Post subject: |
|
|
You also have the SID error on your homepage and maybe in your admin.php?:
To fix, try this:
modules/News/index.php:
$s_sid = $row[sid];
to
$s_sid = "$row[sid]";
admin.php:
$sid = $row[sid];
to
$sid = "$row[sid]"; |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Aug 20, 2003 9:14 am Post subject: |
|
|
RIGHT BLOCKS won't appear under GALLERY and in NUKE unless you put:
$index = 1;
near the top of the index.php file (/modules/gallery/index.php) |
|
| Back to top |
|
|
fallscrape
Beginner


Joined: Aug 20, 2003 Posts: 12
|
Posted: Wed Aug 20, 2003 9:29 am Post subject: |
|
|
The SID error was going beyond the call of duty! :- ) I was sitting there checking permissions etc...
I think it's probably best to leave survey off in that case - there's barely enough room for gallery as it is!
Thank you for all your help - it was almost emotional!  |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Aug 20, 2003 9:33 am Post subject: |
|
|
No problem!
You may want to consider either reducing your THUMBNAIL size or amend the random_support.php code as it's breaking your BLOCK width on some photos!
BTW on your story on your home page, it's nukedgallery.net not nukegallery.net (I know 'picky') |
|
| Back to top |
|
|
|
|
|
|
|