Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Fatal error: Cannot redeclare fs_copy()
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 1 Integration View previous topicPrinter friendly versionView next topic
Author Message
fallscrape

Beginner
Beginner


Joined: Aug 20, 2003
Posts: 12

PostPosted: Wed Aug 20, 2003 6:54 am    Post subject: Fatal error: Cannot redeclare fs_copy() Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Fatal error: Cannot redeclare fs_copy()  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 20, 2003 7:15 am    Post subject: Reply with quote

what block? what's the URL? please answer the questions in the forum posting block (OS, server info, etc)....
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
fallscrape

Beginner
Beginner


Joined: Aug 20, 2003
Posts: 12

PostPosted: Wed Aug 20, 2003 7:24 am    Post subject: Reply with quote

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
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Wed Aug 20, 2003 7:42 am    Post subject: Reply with quote

Try moving the block to the RIGHT - to see if its the block thats causing the error
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
fallscrape

Beginner
Beginner


Joined: Aug 20, 2003
Posts: 12

PostPosted: Wed Aug 20, 2003 8:04 am    Post subject: Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 20, 2003 8:10 am    Post subject: Reply with quote

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
Offline View user's profile Send private message Visit poster's website
fallscrape

Beginner
Beginner


Joined: Aug 20, 2003
Posts: 12

PostPosted: Wed Aug 20, 2003 8:42 am    Post subject: Reply with quote

(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
Offline View user's profile Send private message
fallscrape

Beginner
Beginner


Joined: Aug 20, 2003
Posts: 12

PostPosted: Wed Aug 20, 2003 8:46 am    Post subject: Reply with quote

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
Offline View user's profile Send private message
fallscrape

Beginner
Beginner


Joined: Aug 20, 2003
Posts: 12

PostPosted: Wed Aug 20, 2003 8:49 am    Post subject: Reply with quote

sorry, forgot the link

http://www.neobard.info/modules.php?name=gallery

does screw the page up somewhat... :- ) also knocks off the survey block
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Wed Aug 20, 2003 9:01 am    Post subject: Reply with quote

Try putting:

global $gallery;

at the top of random_support.php after

require_once($GALLERY_BASEDIR . "init.php");
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
fallscrape

Beginner
Beginner


Joined: Aug 20, 2003
Posts: 12

PostPosted: Wed Aug 20, 2003 9:09 am    Post subject: Reply with quote

worked fine :- ) anything that might affect? plus the right bar has still gone AWOL (survey) But I can cope without that :- )
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Wed Aug 20, 2003 9:09 am    Post subject: Reply with quote

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
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Wed Aug 20, 2003 9:14 am    Post subject: Reply with quote

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
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
fallscrape

Beginner
Beginner


Joined: Aug 20, 2003
Posts: 12

PostPosted: Wed Aug 20, 2003 9:29 am    Post subject: Reply with quote

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! Rolling Eyes
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Wed Aug 20, 2003 9:33 am    Post subject: Reply with quote

Very Happy 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
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 1 Integration View previous topicPrinter friendly versionView next topic
Goto page 1, 2  Next

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

6th year online! 2003-2009
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia