Results 1 to 5 of 5
  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
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    Donate to: DrByte directly or to the Zen Cart team as a whole

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

 

 

Similar Threads

  1. v151 Fatal error Cannot redeclare class
    By sasha21 in forum General Questions
    Replies: 5
    Last Post: 21 Jul 2013, 03:21 AM
  2. v151 Fatal error: Cannot redeclare zen_create_random_value()
    By IKZAGHET in forum General Questions
    Replies: 1
    Last Post: 17 Jan 2013, 07:43 PM
  3. v150 Fatal error: Cannot redeclare date_diff()
    By gfdesigns in forum Upgrading to 1.5.x
    Replies: 7
    Last Post: 31 Aug 2012, 08:26 PM
  4. Fatal error: Cannot redeclare process_product_name
    By nishajh in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 1 Nov 2009, 08:44 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR