Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    28
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: Fatal error: Cannot redeclare zen_date_raw

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

  3. #3
    Join Date
    Jan 2004
    Posts
    59,803
    Blog Entries
    4
    Plugin Contributions
    133

    Default 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($date32) . substr($date02) . substr($date64);
          } else {
            return 
    substr($date64) . substr($date02) . substr($date32);
          }
        } 
    should now read:
    PHP Code:
      if (!function_exists('zen_date_raw')) {
        function 
    zen_date_raw($date$reverse false) {
          if (
    $reverse) {
            return 
    substr($date32) . substr($date02) . substr($date64);
          } else {
            return 
    substr($date64) . substr($date02) . substr($date32);
          }
        }
      } 
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Feb 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: Fatal error: Cannot redeclare zen_date_raw

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

  5. #5
    Join Date
    May 2006
    Posts
    21
    Plugin Contributions
    0

    Default 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!

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •