Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
rebelt
Worker
Worker



Joined: May 07, 2006
Posts: 172

PostPosted: Sun May 08, 2011 6:12 pm Reply with quote

I have two sites using a file.

Now one site is OK like this [ Only registered users can see links on this board! Get registered or login! ]
But the other now gives a blank page (used to work too) [ Only registered users can see links on this board! Get registered or login! ]

Both using RN 2.40.01 and fisubice theme.
Turned on error reporting and it said

Fatal error: Cannot redeclare getusername() (previously declared in /homepages/**/d*********/htdocs/sitefiles/maintenance.php:1223) in /homepages/**/d*********/htdocs/sitefiles/modules/GCalendar/common.inc.php on line 656

Line 1223 to 1229 is
Code:
function getusername($user)

{
 $user2 = base64_decode($user);
 $user2 = addslashes($user2);
 $user2 = explode(":", $user2);
 return $user2[1];
}


Anyone have an idea why something used to work on both but now only works on one please? Shocked

_________________
I wish I knew what I was doing LOL 
View user's profile Send private message Visit poster's website
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sun May 08, 2011 9:35 pm Reply with quote

rebelt, it would appear that the GCalendar module also has a function called "getusername". You need to rename your function and make the necessary changes.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
rebelt







PostPosted: Mon May 09, 2011 4:22 am Reply with quote

Thank you for the fix.

Out of curiosity, does anyone know why it would work on one site but not another. I should be getting the same error surely. Shocked
 
Palbin







PostPosted: Mon May 09, 2011 7:13 am Reply with quote

If I had to guess does one site have the GCalendar or block active and the other not?
 
rebelt







PostPosted: Thu May 12, 2011 9:54 am Reply with quote

Yes. Must be a clash somewhere in the block.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©