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

Getteing error msg.

This is a discussion on Getteing error msg. within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Iam getting this error on 2 sites when trying to view the specials on the web site any help would ...

      
  1. #1
    Active Member
    Join Date
    Apr 2007
    Posts
    207
    Rep Power
    6


    Default Getteing error msg.


    Iam getting this error on 2 sites when trying to view the specials on the web site any help would be great.



    Warning
    : Division by zero




    in /home/motorspo/public_html/catalog/includes/classes/split_page_results.php on line 59

    Warning: Division by zero in /home/motorspo/public_html/catalog/includes/classes/split_page_results.php on line 59

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

    select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from products p, products_description pd, specials s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and s.status = '1' and s.customers_group_id = 0 order by s.specials_date_added DESC limit -0, 0


  2. #2
    Active Member
    Join Date
    Apr 2007
    Posts
    207
    Rep Power
    6


    Default Re: Getteing error msg.

    i have Specils in max settings set to 0 and when i click on the specils box on the left side of the web site that is set up in the info box admin i get the error. Now if i enable the specials to show in the middle of the web sites home page the error goes away but if i set it to 0 cause i do not want it in the middle of the Home page just in the info box the error comes up .

    So any Help on how i can fix this so i can just have the info box that is in info box admin enable and not have the specils in the middle of the home page would be great thank you

    Cujo

  3. #3
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Getteing error msg.

    Quote Originally Posted by cujo View Post
    i have Specils in max settings set to 0....
    That is why.... MAX setting should be more than 0.... This is the MAX specials to show..... if you want unlimited - them put maybe 100 or 1000 or 1000000 ......
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  4. #4
    Active Member
    Join Date
    Apr 2007
    Posts
    207
    Rep Power
    6


    Default Re: Getteing error msg.

    all i want is to have no specils in the middle of my home page and to use the specils info box for my specilas but when i set the specils in max settings to 0 then when someone clicks on the specials info box arrow i get the error message you can se the specilas in the info box but when you click on ther arrow to see all specails the error comes up you can take a look at www.motorsports-nascar.com

    Thank you
    Cujo

Similar Threads

  1. Error on admin page, no error message....
    By ryoyin in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 08-21-2008, 12:31 AM
  2. Parse error: parse error, unexpected T_NEW, expecting ')'
    By oscnoob in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 04-02-2005, 01:27 PM
  3. SEO URLS -> error 500: Internal server error ...
    By Moritz100 in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 03-18-2005, 12:11 AM
  4. Newsletter!?, ERROR: 1064 - You have an error in your SQL...
    By calle in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 12-14-2004, 02:40 AM
  5. New Installation Parse error: parse error, unexpected T_STRI
    By Anonymous in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 07-09-2004, 06:06 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
  •