Results 1 to 4 of 4

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

      
  1. #1
    Lurker
    Join Date
    Dec 2004
    Posts
    3
    Rep Power
    0


    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?

  2. #2
    Lurker
    Join Date
    Dec 2004
    Posts
    3
    Rep Power
    0


    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

  3. #3
    Lurker
    Join Date
    Dec 2004
    Posts
    3
    Rep Power
    0


    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.

  4. #4
    Active Member
    Join Date
    Oct 2004
    Posts
    215
    Rep Power
    8

Similar Threads

  1. Fresh installation problem
    By bbhs in forum osCmax v2 Installation issues
    Replies: 8
    Last Post: 06-17-2005, 06:44 AM
  2. Fresh Install Ms2-Max Installation Error
    By edwardbob in forum osCMax v1.7 Installation
    Replies: 4
    Last Post: 05-28-2005, 03:35 PM
  3. complete fresh installation but errors
    By thatsme in forum osCommerce 2.2 Installation Help
    Replies: 4
    Last Post: 04-27-2005, 12:07 PM
  4. Errors after fresh installation
    By Christy in forum osCmax v1.7 Discussion
    Replies: 21
    Last Post: 03-16-2005, 08:55 AM
  5. Error after osCMax fresh installation. Can't open admin
    By juanlopez4691 in forum osCMax v1.7 Installation
    Replies: 6
    Last Post: 03-01-2005, 12:17 AM

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
  •