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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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, |
| Sponsored Links | ||
| ||
| |
|
#2
| ||||
| ||||
| 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
|
|
#3
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cookie error message loading /catalog/admin/ | Captain Chaos | osCMax v2 Installation issues | 7 | 01-01-2007 07:21 AM |
| HELP with STRANGE Fedex error message | torweb | osCMax v2 Features Discussion | 2 | 05-12-2006 08:51 PM |
| MS2-MAX v1.5 installed! Some error message on Admin... Help. | hanool | osCommerce 2.2 Modification Help | 2 | 09-24-2003 09:18 PM |
| Strange error message | killermonkey | osCommerce 2.2 Modification Help | 1 | 02-05-2003 08:42 PM |
| Leaving admin to shopfront - Forbidden message | Anonymous | osCommerce 2.2 Installation Help | 1 | 11-27-2002 12:43 PM |