Zen Cart Logo
Forums / Upgrading from 1.2 to 1.3.x / Fatal error: Cannot redeclare zen_date_raw

Fatal error: Cannot redeclare zen_date_raw

Sticky Locked

Views: 15,394

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
13 Jun 2006, 11:00 AM
#1
kalachnikov avatar

kalachnikov

New Zenner

Join Date:
Feb 2006
Posts:
26
Plugin Contributions:
0

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

13 Jun 2006, 12:01 PM
#2
kalachnikov avatar

kalachnikov

New Zenner

Join Date:
Feb 2006
Posts:
26
Plugin Contributions:
0

Re: Fatal error: Cannot redeclare zen_date_raw

Humm, now this message has disappeared but I have other error messages.
Am still on it.

13 Jun 2006, 9:22 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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 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
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);
}
}
}

14 Jun 2006, 1:52 PM
#4
kalachnikov avatar

kalachnikov

New Zenner

Join Date:
Feb 2006
Posts:
26
Plugin Contributions:
0

Re: Fatal error: Cannot redeclare zen_date_raw

Thank you,
I am making the necessary corrections now.
Pierre

15 Aug 2006, 1:44 PM
#5
ecobebe avatar

ecobebe

New Zenner

Join Date:
May 2006
Posts:
18
Plugin Contributions:
0

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: