osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

SQL syntax error from a fresh installation

This is a discussion on SQL syntax error from a fresh installation within the osCMax v1.7 Installation forums, part of the osCMax v1.7 Forums category; I have just installed AABox.com osCMax V1.7 (September 2004) and am getting the following error when using the admin panel ...


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

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-04-2004, 05:44 PM
Lurker
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
BrentonV
Default SQL syntax error from a fresh installation

I have just installed AABox.com osCMax V1.7 (September 2004) and am getting the following error when using the admin panel with an empty database.

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 '-10, 10' at line 1

select manufacturers_id, manufacturers_name, manufacturers_image, date_added, last_modified from manufacturers order by manufacturers_name limit -10, 10


This error is being reported from:

Catalog -> Manufacturers
Catalog -> Reviews
Catalog -> Specials
Catalog -> Products Expected

From memory it is also apprearing in a few other places.

This is occurring on a fresh install of Apache, PHP, MySQL and osCMax.
All install files were downloaded in the last 24-hours and should be the latest available. I am not sure if I’ve got everything “tweaked” just right although it does seem to work with the exception of this error. This install is on Win-XP and in-house.

This is my first install of all of these programs so I'm a little confused.
Can anyone offer any suggestion as to where I should start looking?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 12-04-2004, 10:31 PM
Lurker
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
BrentonV
Default

A little more playing and I have worked out that both osC and oscMAX do this when there is no record in a table.

Is this normal ?
Is there something I can or should modify in the code to stop this occuring ?

Sorry if this sounds like a dumb question.
Yes, I'm a newbie :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-07-2004, 02:30 AM
Lurker
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
BrentonV
Default

I found the problem. It is an old bug in osCommerce which will hit people who attempt a clean install on the latest versions of MySQL. There was also a bug in versions of MySQL prior to 4.0 which allowed the bug in osCommerce to work sorta-kinda This glitch also exists in oscMAX

The fix can be found HERE

Can I suggest that the Mods make this thread sticky as new people like myself with current versions of everything will keep getting hit by this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 12-07-2004, 12:07 PM
Active Member
 
Join Date: Oct 2004
Posts: 215
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 5
groggory
Default

Just put it in the wiki

http://www.oscdox.com/modules.php?op...name=Ms2MaxFAQ
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
Fresh installation problem bbhs osCMax v2 Installation issues 8 06-17-2005 05:44 AM
Fresh Install Ms2-Max Installation Error edwardbob osCMax v1.7 Installation 4 05-28-2005 02:35 PM
complete fresh installation but errors thatsme osCommerce 2.2 Installation Help 4 04-27-2005 11:07 AM
Errors after fresh installation Christy osCMax v1.7 Discussion 21 03-16-2005 07:55 AM
Error after osCMax fresh installation. Can't open admin juanlopez4691 osCMax v1.7 Installation 6 02-28-2005 11:17 PM


All times are GMT -8. The time now is 09:28 PM.


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