Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Posts
    45
    Plugin Contributions
    0

    Default error message when clicking 'admin/product types'

    Hi,
    Brand new to Zen Cart, and pretty new to php/sql etc.
    I'm still setting up my cart and I wanted to get rid of the product count on the main product page. I learned in the forums that this is done thru admin/product types.... but when I click 'product types' in the drop down menu it takes me to the correct page but this error message is waiting for me.
    -------------------------------------------------------------------------------------
    Warning: Division by zero in ../public_html/printstore/admin/includes/classes/split_page_results.php on line 39

    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
    in:
    [select * from zen_product_types limit -0, 0]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    --------------------------------------------------------------------------------------

    I'm stumped because I haven't altered the split_page_results.php file in any way, and frankly I don't know what "..the right syntax to use near '-0, 0' at line 1 in: [select * from zen_product_types limit -0, 0]" means.

    any help would be appreciated.
    thanks

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: error message when clicking 'admin/product types'

    Probably a corrupted file.

    Try re-uploading the whole 'admin' folder.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: error message when clicking 'admin/product types'

    That's caused by having a "0" set in Admin->Configuration->Maximum Values->Search Results Per Page
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v151 Getting Error message when clicking All Products
    By bubbadan in forum Basic Configuration
    Replies: 5
    Last Post: 1 Mar 2013, 07:56 PM
  2. error message when clicking "new products"
    By tarynhipp in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 Dec 2007, 06:33 AM
  3. Strange Error in shipping admin when clicking on UPS & USPS
    By theVR in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 3 Jul 2007, 01:47 PM
  4. Cart hangs when clicking on go to check out...get this error message
    By Ken Joy in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 14 Mar 2007, 07:16 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR