Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    18
    Plugin Contributions
    0

    Default Coupon has 1064 error

    Hi
    I have version 1.3.7
    I have gone to create Coupons and at the top of the page it reads

    Warning: Division by zero in /home/apsorgau/public_html/join/admin/includes/classes/split_page_results.php on line 48
    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-0, 0' at line 1
    in:
    [select coupon_id, coupon_code, coupon_amount, coupon_type, coupon_start_date,coupon_expire_date,uses_per_user,uses_per_coupon,restrict_to_p roducts, restrict_to_categories, date_created,date_modified, coupon_active, coupon_zone_restriction from zen_coupons where coupon_active='Y' and coupon_type != 'G' limit -0, 0]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    The MySQL version is 5.0.27-standard

    I checked that the Maximum Values in Admin/Configuration were all greater than 0.

    Can someone help please?

    Mel

  2. #2
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Coupon has 1064 error

    mySQL v.5.0.x builds used to be problematics in the past. I'd recommend to send a support ticket note to your web hosting service by requesting an upgrade to the latest version of mySQL v5.x.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Coupon has 1064 error

    Mel, the SQL error you reported seems to have been constructed based on a setting of 0 in your admin area. It shouldn't have anything to do with your MySQL version on your server.

    In Admin->Configuration->GV Coupons, what is your setting for "Maximum Discount Coupons Per Page" ?
    It really should be set to something greater than 0. The default is 20.
    .

    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
    May 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Coupon has 1064 error

    Thank you DrByte.

    I did as you suggested and changed it to 1.

    I have now gone up to Gift Certificate/Coupons and the option of Coupon Admin is not there! Mmmm, must be doing something wrong ...

    Mel

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Coupon has 1064 error

    Quote Originally Posted by apster View Post
    I have now gone up to Gift Certificate/Coupons and the option of Coupon Admin is not there!
    That means you've turned off the Coupon system.

    Admin->Modules->Order Total->Discount Coupons ... click Install if it's not already enabled.
    .

    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
    May 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Coupon has 1064 error

    OK, thanks so much.
    PS. My cart is working very nicely. It has been a pleasure to configure compared to other carts.
    A credit to you all.

 

 

Similar Threads

  1. Fatal error: mysql error (1064 error) -- v1.0-alpha
    By Dale Schibbelhut in forum General Questions
    Replies: 9
    Last Post: 18 Nov 2010, 08:08 PM
  2. Coupon Admin - 1064 You have an error in your SQL syntax
    By tobindonal in forum General Questions
    Replies: 2
    Last Post: 2 Nov 2010, 12:28 AM
  3. Error message 1064 you have an error in your sql syntax
    By honrheart in forum General Questions
    Replies: 1
    Last Post: 11 Sep 2009, 02:38 AM
  4. MySQL Error 1064 You have an error in your SQL syntax;
    By dmm2020 in forum General Questions
    Replies: 2
    Last Post: 22 Feb 2009, 05:02 AM
  5. error message 1064 you have an error in your sql syntax
    By ngsl in forum General Questions
    Replies: 0
    Last Post: 22 Aug 2008, 06:44 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