PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
portaldo
New Member
New Member


Joined: May 30, 2005
Posts: 1

PostPosted: Mon May 30, 2005 1:32 pm Reply with quote Back to top

hellow my website is
Only registered users can see links on this board!
Get registered or login to the forums!


in web links apears this:

Fatal error: Cannot redeclare translate() (previously declared in /home/portaldo/public_html/portugal/language/lang-portuguese.php:207) in /home/portaldo/public_html/portugal/modules/Web_Links/language/lang-portuguese.php on line 14


what i can do?????

help me please!
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon May 30, 2005 8:52 pm Reply with quote Back to top

In public_html/portugal/language/lang-portuguese.php there is a function towards the bottom called "translate()". You also apparently have public_html/portugal/modules/Web_Links/language/lang-portuguese.php which has it too. You can't have that. The language files that are stored in the modules folder cannot have the translate() function. Remove it and all should be well.

Alternatively you could change your translate function code in you Web_Links/language folder from
Code:
function translate($phrase) {
    switch($phrase) {
   case "xdatestring":   $tmp = "%A, %B %d @ %T %Z"; break;
   case "linksdatestring":   $tmp = "%d-%b-%Y"; break;
   case "xdatestring2":   $tmp = "%A, %B %d"; break;
   default:      $tmp = "$phrase"; break;
    }
    return $tmp;
}
to
Code:
if (!function_exists("translate")) {
   function translate($phrase) {
       switch($phrase) {
      case "xdatestring":   $tmp = "%A, %B %d @ %T %Z"; break;
      case "linksdatestring":   $tmp = "%d-%b-%Y"; break;
      case "xdatestring2":   $tmp = "%A, %B %d"; break;
      default:      $tmp = "$phrase"; break;
       }
       return $tmp;
   }
}
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum