>>  Site Map >>  Forums >>  Installation 6x

Forum module - topics in forum:



Installation 6x - Discussions regarding PHP-Nuke Installation and Configuration.



[Resolved] lang-english.php error

When I try to go to admin.php I get this error
Code: :
Fatal error: Cannot redeclare translate() (previously declared in /home/zeppie/public_html/index/language/lang-english.php:185) in /home/zeppie/public_html/index/admin/language/lang-english.php on line 182


If I delete the
Code: :
/*****************************************************/
/* Function to translate Datestrings                 */
/*****************************************************/

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;
from the bottom of the lang-english.php file I can login to admin but its buggy.


Does anyone know what this means?
I am using phpnuke 6.8. I had deleted lang-english.php file from cpanel and the uploaded a copy of it that I had on my computer.

Thanks






Remove the function translate as you have above from the following file:
Code: :
admin/language/lang-english.php

I have checked my own admin language file and the main language file and I only have the function in the main language file not the admin language file.

Check the original admin language file and see does it have the function translate in it becasue mine doesnt. If it does, it possible you got a hacked / changed version of PHP-Nuke. Where did you download it from?






I figured it out. I had put index/language/lang-english.php in the index/admin/language/lang-english.php.

Thanks anyway!




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS