Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    New York, USA
    Posts
    5
    Plugin Contributions
    0

    Default Error : Division by zero.....

    Very interesting thing happened with my Zen cart install. My first install was without any problem except that I had not opted for Demo Data(sample stores), and could not find a way to re-install just the demo data. Therefore, I wiped out all my dabase for Zen and started with clean install again. At the end of install, Zen cart congratulated me for successful install but when I went to admin area I had following errors on the top of the admin page.

    Error: There is currently no default currency set. Please set one at: Administration Tools->Localization->Currencies
    Error ERROR_NO_DEFAULT_LANGUAGE_DEFINED

    So under localisation, I went to set for currencies, languages and orde status and I get following erro. I am new at this so I would appreciate if anyone can help me resolve this.

    Currencies

    Warning: Division by zero in /home/artistic/public_html/mystor_name/admin/includes/classes/split_page_results.php on line 48
    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 'MAX_DISPLAY_SEARCH_RESULTS' at line 1
    in:
    [select currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, last_updated, value from artleaf_currencies order by title limit -0, MAX_DISPLAY_SEARCH_RESULTS]
    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.

    Languages

    Warning: Division by zero in /home/artistic/public_html/mystor_name/admin/includes/classes/split_page_results.php on line 48
    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 'MAX_DISPLAY_SEARCH_RESULTS' at line 1
    in:
    [select languages_id, name, code, image, directory, sort_order from artleaf_languages order by sort_order limit -0, MAX_DISPLAY_SEARCH_RESULTS]
    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.

    My server Data:

    Server OS: FreeBSD 4.11-STABLE
    Database: MySQL 4.0.16
    PHP Version: 4.4.1 (Zend: 1.3.0)

    Thanks,

    Artistic Leaf

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Error : Division by zero.....

    Under Admin->Configuration->Maximum values, what do you have for Search results ?
    .

    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.

  3. #3
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Error : Division by zero.....

    Sounds to me like you are not finding a lot of files with defaults in them, which to me points to some file path problems in your config files, or missing files.

  4. #4
    Join Date
    Aug 2007
    Location
    New York, USA
    Posts
    5
    Plugin Contributions
    0

    Default Re: Error : Division by zero.....

    DR Byte and Chuck,
    Thank you for your reply.
    Under Admin->Configuration->Maximum values, wI have for Search results 20 pages.

    If I had any missing files or problem with default config file. nothing showed in flight check before install started. According to Zen software my install was successful.

    Something interesting I noted today. if I run sql query on most of the table in my database on my sever, I get the same mysql error 1064. Version on my server for mysql has not changed. In my admin, most of pull downs gives me the same error # 1064 as I have noted in the beginning of my post.

    Artistic Leaf

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Error : Division by zero.....

    # 1064 simply means a syntax error in the SQL query you're running.
    .

    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Error : Division by zero.....

    I think this might be the solution you need:
    http://www.zen-cart.com/forum/showpo...57&postcount=3
    .

    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. Division by Zero error
    By sinecurea in forum General Questions
    Replies: 4
    Last Post: 11 Sep 2007, 05:23 PM
  2. Division by zero error
    By simetra in forum General Questions
    Replies: 2
    Last Post: 6 Jul 2007, 08:44 AM

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