Thread: PHP warnings

Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2006
    Location
    Menlo Park, CA
    Posts
    46
    Plugin Contributions
    0

    Default PHP warnings

    Hi all --

    My site seems to be running fine, with no apparent or reported errors.

    But I happened to check my error log, and found the following messages:

    [Fri Jun 2 17:09:02 2006] [error] PHP Warning: Division by zero in /home/evesteve/public_html/zen-cart/includes/classes/split_page_results.php on line 76
    [Fri Jun 2 17:09:01 2006] [error] PHP Warning: Division by zero in /home/evesteve/public_html/zen-cart/includes/classes/split_page_results.php on line 76
    [Fri Jun 2 17:08:44 2006] [error] PHP Warning: Variable passed to each() is not an array or object in /home/evesteve/public_html/zen-cart/includes/classes/shopping_cart.php on line 1658
    [Fri Jun 2 17:08:24 2006] [error] PHP Warning: Variable passed to each() is not an array or object in /home/evesteve/public_html/zen-cart/includes/classes/shopping_cart.php on line 1658
    The first error seems to refer to the line:

    $this->number_of_pages = ceil($this->number_of_rows / $this->number_of_rows_per_page);
    where, apparently, 'number_of_rows_per_page' is not getting properly set higher up in the page (it's not referenced in any other file in the site).

    The other error refers to the line:

    while ( list( $key, $val ) = each($_POST['products_id']) ) {
    ... which I'm at a loss to interpret; it's all geek to me.

    As stated, though, the site seems to be working. Any ideas what's going on?

    -- Larry

    [edit: spelling & tense correction]
    Last edited by LEP; 3 Jun 2006 at 02:59 AM.

  2. #2
    Join Date
    Jan 2004
    Posts
    65,400
    Blog Entries
    7
    Plugin Contributions
    232

    Default Re: PHP warnings

    What version of Zen Cart are you 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.

  3. #3
    Join Date
    Apr 2006
    Location
    Menlo Park, CA
    Posts
    46
    Plugin Contributions
    0

    Default Re: PHP warnings

    DrByte --

    Latest & greatest; 1.3.0.1.

    Mods installed include LinkPoint, GoogleSitemapAdmin, Master Password, Time Zone Offset (1.3.0.1) & User Tracking. Using a template based on 'future Zen' with all changes done in the override system.

    Bugfixes all applied per 'http://www.zen-cart.com/forum/forumdisplay.php?f=140.'

    -- Larry

  4. #4
    Join Date
    Jan 2004
    Posts
    65,400
    Blog Entries
    7
    Plugin Contributions
    232

    Default Re: PHP warnings

    will keep this in mind during next round of testing related to system internals. But at present, I can't duplicate this. I'm inclined to think it's related to certain data in your database, but unable to pinpoint just what, since those portions of the code are triggered by various other sources, and never run on their own directly..... it could be coming from any number of places.
    .

    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.

  5. #5
    Join Date
    Apr 2006
    Location
    Menlo Park, CA
    Posts
    46
    Plugin Contributions
    0

    Default Re: PHP warnings

    DrByte --

    Well, apparently I can't duplicate it either -- at least, there are no more PHP warnings since those. So if there is a bug somewhere, either in the code or in my set-up, it seems to be rare.

    I'll keep an eye out & see if either happens again. If so, I'll gather as much detail as I can & re-post.

    Thanks for your help! Like I said, the cart seems to be running fine in any case.

    -- Larry

 

 

Similar Threads

  1. v151 PHP warnings and fatal errors
    By hillbillyanns in forum General Questions
    Replies: 3
    Last Post: 25 Nov 2015, 11:46 AM
  2. v139h PHP Warnings keep piling after migration
    By HAL-9000 in forum General Questions
    Replies: 3
    Last Post: 2 Mar 2013, 05:10 AM
  3. Writeable configure.php warnings
    By gmahler5th in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 5 Aug 2008, 03:32 AM
  4. configure.php warnings in my 1.3.8 install
    By alhakeem2001 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 19
    Last Post: 14 Dec 2007, 09:40 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