Fatal error: Cannot redeclare zen_date_raw
Hello,
Just upgraded.
Admin is fully accessible.
Site is not. I have the following error message. Can somenone help please ?
Fatal error: Cannot redeclare zen_date_raw() (previously declared in /home/advitam/public_html/advitam/includes/languages/template_custom/french.php:53) in /home/advitam/public_html/advitam/includes/languages/french.php on line 53
Pierre
Re: Fatal error: Cannot redeclare zen_date_raw
Humm, now this message has disappeared but I have other error messages.
Am still on it.
Re: Fatal error: Cannot redeclare zen_date_raw
There was a structural change to primary language files in v1.3, which you need to incorporate into your translation pack:
english.php is an example (but applies equally to french.php, for example):
PHP Code:
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
}
}
should now read:
PHP Code:
if (!function_exists('zen_date_raw')) {
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
}
}
}
Re: Fatal error: Cannot redeclare zen_date_raw
Thank you,
I am making the necessary corrections now.
Pierre
Re: Fatal error: Cannot redeclare zen_date_raw
Just made the code change in spanish.php and it worked! Now I have to go fix my style sheet, I don't know what happened there! :lamo: