Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: PHP Fatal error: Cannot declare class ot_coupon, because the name is already in

    Try replacing the file /includes/languages/english/modules/order_total/ot_coupon.php with the like-named file from the Zen Cart distribution.
    Last edited by lat9; 6 Dec 2016 at 02:37 PM. Reason: Correct path to file

  2. #12
    Join Date
    Dec 2016
    Location
    Portugal
    Posts
    12
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot declare class ot_coupon, because the name is already in

    is the problem that the language file is the same as the same file that is not in languages. should I get rid of something or rename something

  3. #13
    Join Date
    Dec 2016
    Location
    Portugal
    Posts
    12
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot declare class ot_coupon, because the name is already in

    do you mean the original one that comes with the download?

  4. #14
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: PHP Fatal error: Cannot declare class ot_coupon, because the name is already in

    The problem appears to be that the ot_coupon's "processing file" (the one that defines that class) has been copied to the (also required) language directory.

  5. #15
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: PHP Fatal error: Cannot declare class ot_coupon, because the name is already in

    Other applicable action has already been identified. The below no longer applies based on the provided information.

    Quote Originally Posted by Edwin ter Haar View Post
    that is the entire error log

    what I had done is overwrote the files from version 1.5.4 to 1.5.5 but that was a while back
    for the rest all I have updated were colours I think but I have not been in the file that it is talking about
    That's why I was surprised at the brevity of the error message. It's not really that there is a problem with that file but the series of code that are called in order to present the current page that is in one way or another trying to include/require that class to be loaded more than once.

    Does the same issue occur if you temporarily use one of the unaltered default templates?

    What other plugins were installed in the 1.5.4 version of the site that didn't get updated/reinstalled? Or what was installed after that which might use ot_totals or ot_coupon?

    May have to follow the path of files loaded when going to that page. But, it is not a problem inherent with a default ZC store. Another suggestion may be to load a complete fresh set of files of the same version/download used for your current site to a sub-directory, do the software upgrade(s) necessary for the site to look/operate as it should then replace that fileset (moving the old site files out of the way). Understanding that right now customers appear to not be able to checkout.
    Last edited by mc12345678; 6 Dec 2016 at 02:42 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #16
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: PHP Fatal error: Cannot declare class ot_coupon, because the name is already in

    Quote Originally Posted by Edwin ter Haar View Post
    do you mean the original one that comes with the download?
    Yes. Just copy that file.

  7. #17
    Join Date
    Dec 2016
    Location
    Portugal
    Posts
    12
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot declare class ot_coupon, because the name is already in

    Genius well done

  8. #18
    Join Date
    Dec 2016
    Location
    Portugal
    Posts
    12
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Cannot declare class ot_coupon, because the name is already in

    And thanks

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. PHP Fatal error: Cannot redeclare class upload
    By cshart in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 7 Dec 2011, 06:33 AM
  2. PHP Fatal error: Cannot redeclare class cache
    By snk429 in forum General Questions
    Replies: 15
    Last Post: 16 Feb 2011, 10:08 PM
  3. PHP Fatal error: Cannot redeclare class order
    By sketchhgal in forum General Questions
    Replies: 7
    Last Post: 25 Jun 2010, 09:32 AM
  4. Replies: 17
    Last Post: 31 Mar 2010, 09:47 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