Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2006
    Posts
    47
    Plugin Contributions
    0

    Default Cannot redeclare class ot_coupon in

    Does anyone know what this means?

    I have just installed paypal and was in the shipping section to make sure i had all set ok and it give me the following

    Fatal error: Cannot redeclare class ot_coupon in /home/vixenza/public_html/shop/includes/modules/order_total/ot_coupon.php on line 10


    line 10 as you may see on yours is

    class ot_coupon {

    Any ideas guys?

    Cheers

    Rob

  2. #2
    Join Date
    Aug 2006
    Posts
    47
    Plugin Contributions
    0

    Default Re: Cannot redeclare class ot_coupon in

    I was wondering if something needs initializing somewhere else beforehand?

    Ta

    Rob

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Cannot redeclare class ot_coupon in

    Look in the directories for:
    /include/modules/order_total
    /includes/modules/shipping
    /includes/modules/payment

    Compare them to the ones in the Full Zen Cart v1.3.0.2 ...

    Do you have the right files in the right directories?

    Are all the files in these directories the code?


    Look in the directories for:
    /include/languages/english/modules/order_total
    /includes/languages/english/modules/shipping
    /includes/languages/english/modules/payment

    Compare them to the ones in the Full Zen Cart v1.3.0.2 ...

    Do you have the right files in the right directories?

    Are all of the files in these directories the language defines?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Aug 2006
    Posts
    47
    Plugin Contributions
    0

    Default ah ha!

    Ive looked at the files and

    ot_coupon.php and 0t_gvphp in includes/modules/oder_total are copies
    of the ones in includes/languages/english/order_total so the class
    is attempting to register in both places

    Can i replace the ones which are wrong or do I need to do anything specific to change them?

    Bit baffled how they are duplicates....

    Cheers

    Rob

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Cannot redeclare class ot_coupon in

    You can rename the incorrect files in the languages folder to *.bad

    Then re-upload the proper language files from the original ZIP.
    .

    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.

  6. #6
    Join Date
    Aug 2006
    Posts
    47
    Plugin Contributions
    0

    Default Re: Cannot redeclare class ot_coupon in

    excellent, thanks very much..phew!

 

 

Similar Threads

  1. v153 Cannot redeclare class QueryCache ... on line 16
    By rtfulk in forum Upgrading to 1.5.x
    Replies: 19
    Last Post: 1 Aug 2014, 07:55 PM
  2. Checkout :Cannot redeclare class order
    By fcegarra in forum General Questions
    Replies: 11
    Last Post: 13 Aug 2010, 09:31 PM
  3. Replies: 3
    Last Post: 3 Aug 2009, 06:13 AM
  4. cannot redeclare class base...
    By awhitley2 in forum General Questions
    Replies: 3
    Last Post: 23 Jun 2009, 02:02 PM
  5. Cannot redeclare class
    By (Deus) in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 2 Feb 2007, 06:31 AM

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