osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-18-2005, 01:37 AM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 124
Thanks: 10
Thanked 0 Times in 0 Posts
Rep Power: 6
ozstar is on a distinguished road
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,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 04-18-2005, 08:41 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,481
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-18-2005, 04:35 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 124
Thanks: 10
Thanked 0 Times in 0 Posts
Rep Power: 6
ozstar is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 07:36 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax