osCmax v2.5 User Manual
Results 1 to 3 of 3

Strange message in Admin at Coupons area

This is a discussion on Strange message in Admin at Coupons area within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Hi, I have the latest OSCdox. For some reason I am now getting these messages when accessing Coupons in Admin ...

      
  1. #1
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default Strange message in Admin at Coupons area

    Hi, I have the latest OSCdox.

    For some reason I am now getting these messages when accessing Coupons in Admin and am not sure why.

    Any ideas please?

    I was actually trying to turn off the coupon facility.

    Thanks

    Oz


    Discount Coupons
    Status :
    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 '-12, 12' at line 1

    select coupon_id, coupon_code, coupon_amount, coupon_type, coupon_start_date,coupon_expire_date,uses_per_user ,uses_per_coupon,restrict_to_products, restrict_to_categories, date_created,date_modified from coupons where coupon_active='Y' and coupon_type != 'G' limit -12, 12

    ------------

    Gift Voucher Release Queue
    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 '-12, 12' at line 1

    select c.customers_firstname, c.customers_lastname, gv.unique_id, gv.date_created, gv.amount, gv.order_id from customers c, coupon_gv_queue gv where (gv.customer_id = c.customers_id and gv.release_flag = 'N') limit -12, 12Hi,

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default RE: Strange message in Admin at Coupons area

    This is because your server is now running MySQL 4.1.x . The problem is the 4.1 fixes a bug in earlier versions that used to allow negative values. No longer. So, you need to check against this and set it to zero if negative.

    Here is the solution:

    http://oscdox.com/PNphpBB2-viewtopic...ght-mysql.html
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default RE: Strange message in Admin at Coupons area

    Thanks - It worked...of course!

    BTW the catalog/includes/classes/split_page_results.php code was actually this before I changed it..

    $offset = ($this->number_of_rows_per_page * ($this->current_page_number - 1));

    $this->sql_query .= " limit " . $offset . ", " . $this->number_of_rows_per_page;


    The admin version was as stated in the fix.

    Thanks

    Oz

Similar Threads

  1. Cookie error message loading /catalog/admin/
    By Captain Chaos in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 01-01-2007, 07:21 AM
  2. HELP with STRANGE Fedex error message
    By torweb in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 05-12-2006, 08:51 PM
  3. MS2-MAX v1.5 installed! Some error message on Admin... Help.
    By hanool in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 09-24-2003, 09:18 PM
  4. Strange error message
    By killermonkey in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-05-2003, 08:42 PM
  5. Leaving admin to shopfront - Forbidden message
    By Anonymous in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 11-27-2002, 12:43 PM

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
  •