Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Posts
    120
    Plugin Contributions
    0

    help question URGENT: Error Cannot redeclare class ot_quantity_discount

    Help!

    I've just had this error message appear:

    Fatal error: Cannot redeclare class ot_quantity_discount in /home2/myusername/public_html/includes/modules/order_total/ot_quantity_discount.php on line 12

    It has meant the right hand side of my site has disappeared (where the shopping cart is!).

    Does anyone know what I can do to fix it? I've just uploaded new versions of the files again and the problem is still there.

    Any help appreciated.

    Gary

  2. #2
    Join Date
    Feb 2009
    Posts
    120
    Plugin Contributions
    0

    Default Re: URGENT: Error causing site issues

    Silly me. I'd copied the same info to another file which is what was causing the 'class' clash.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: URGENT: Error causing site issues

    Been there and done that - Thanks for letting us know the solution to the error. You may have helped someone else with the same problem.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: URGENT: Error Cannot redeclare class ot_quantity_discount

    If you want to backup a specific copy of (say) ot_quantity_discount.php remember to make the extension something other than .php.

    Good:
    ot_quantity_discount.php.1
    ot_quantity_discount.php.071311
    ot_quantity_discount.php.old

    BAD:
    ot_quantity_discount_old.php
    ot_quantity_discount_071311.php
    etc.

    Do not use the ".php" extension on backup files.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

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. Fatal error: Cannot redeclare class template_func
    By drseuss in forum General Questions
    Replies: 3
    Last Post: 12 Aug 2009, 07:02 PM
  3. Fatal error: Cannot redeclare class paypal
    By lorhan in forum General Questions
    Replies: 4
    Last Post: 29 Jul 2006, 03:57 PM

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