Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Location
    Kentucky
    Posts
    38
    Plugin Contributions
    0

    Default Products missing from one category

    HELP! All of a sudden today, one of my categories is showing no products. You can see the category at:
    http://grandpas-toys.com/retailstore...index&cPath=73
    It has worked fine until today. I have made no changes, at least that I am aware of, to cause this behavior.
    How do I get them to display again?
    Thanks,
    Grandpa

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Products missing from one category

    I'm not sure why your page output cuts off suddenly after the
    "So, what has lead us to this decision? ...</a></td>
    </tr></table>
    </body>
    </div></div>

    <br class="clearBoth" />

    There is likely some PHP error that is causing processing to terminate. Is it possible that your host has changed something about your server environment?
    Answer the "posting tips" giving full details about your Zen Cart installation and your server so we don't have to guess.
    Post the latest "myDebugxxx" file from your /cache/ folder in the root of your Zen Cart (or /logs/ if you are on v1.5.1).

    Aside from that, you have pasted a complete word processor document into your category description, including the <head> and <body> tags, which is a major no-no. Zen Cart already provides those, and repeating them will cause issues (though browsers may be smart enough to understand and bypass the erroneous tags).

  3. #3
    Join Date
    Jul 2012
    Location
    Kentucky
    Posts
    38
    Plugin Contributions
    0

    Default Re: Products missing from one category

    Quote Originally Posted by gjh42 View Post
    I'm not sure why your page output cuts off suddenly after the
    "So, what has lead us to this decision? ...</a></td>
    </tr></table>
    </body>
    </div></div>

    <br class="clearBoth" />

    There is likely some PHP error that is causing processing to terminate. Is it possible that your host has changed something about your server environment?
    Answer the "posting tips" giving full details about your Zen Cart installation and your server so we don't have to guess.
    Post the latest "myDebugxxx" file from your /cache/ folder in the root of your Zen Cart (or /logs/ if you are on v1.5.1).

    Aside from that, you have pasted a complete word processor document into your category description, including the <head> and <body> tags, which is a major no-no. Zen Cart already provides those, and repeating them will cause issues (though browsers may be smart enough to understand and bypass the erroneous tags).
    Thanks so much for your speedy reply and your willingness to help. I stripped out all the html, to see if that was the problem. It did not help.
    My ZC is 1.5.1 It has been working great except for this new problem. You can see that the products are showing okay in the other categories.

    Here are some of the last debug logs:
    PHP Warning: Division by zero in /hsphere/xxxxxxx/xxxxxx/xxxxxx/xxxxxx/xxxxxx/xxxxxx/includes/modules/category_product_listing.php on line 290
    PHP Warning: Division by zero in /hsphere/xxxxxx/xxxxxx/xxxxxx/xxxxxx/xxxxxx/xxxxxx/includes/functions/general.php on line 3249

    Hope this tells you something. It is above my expertise.
    Thanks,
    Grandpa

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Products missing from one category

    /includes/modules/category_product_listing.php does not exist in my v1.5.1 test site. Have you installed a mod that uses this file?


    Also, /includes/functions/functions_general.php has only 1554 lines, so I don't know what line your error could be referring to (even if you used an inappropriate text editor that doubled the line spacing - a common occurrence with editors not designed for code files).
    Last edited by gjh42; 8 Jan 2013 at 02:46 AM.

  5. #5
    Join Date
    Jul 2012
    Location
    Kentucky
    Posts
    38
    Plugin Contributions
    0

    Default Re: Products missing from one category

    Quote Originally Posted by gjh42 View Post
    /includes/modules/category_product_listing.php does not exist in my v1.5.1 test site. Have you installed a mod that uses this file?


    Also, /includes/functions/functions_general.php has only 1554 lines, so I don't know what line your error could be referring to (even if you used an inappropriate text editor that doubled the line spacing - a common occurrence with editors not designed for code files).
    The mod that may be using this file could be Image Handler. I do have it installed, but it appears to work fine on all other category pages.

    The lines starting at 290 in category_product_listing.php are:

    $_GET['page'] = round((($check_count/MAX_DISPLAY_RESULTS_CATEGORIES)+(fmod_round($check_count,MAX_DISPLAY_RESULTS_CAT EGORIES) !=0 ? .5 : 0)),0);
    $page = $_GET['page'];
    if ($old_page != $_GET['page']) {
    // zen_redirect(zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&pID=' . $_GET['pID'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')));
    }

    Also, there is no functions_general.php file in the functions folder. It is functions/general.php. I will look into that file as well.

    Thanks for your help. Please do not give up on me.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Products missing from one category

    PHP Code:
    ($check_count/MAX_DISPLAY_RESULTS_CATEGORIES
    This is the only division in the posted code, so MAX_DISPLAY_RESULTS_CATEGORIES is presumably evaluating to 0 here. The constant is supposed to be set in Configuration > Maximum Values:
    Lookup CONSTANT Definitions
    Key: MAX_DISPLAY_RESULTS_CATEGORIES
    Title: Maximum Categories Products Display List
    Description: Number of products to list per screen
    Value: 10
    Group: ID#3 Maximum Values
    (from my test site)

 

 

Similar Threads

  1. v151 Duplicate all products from one Category to another
    By shags38 in forum General Questions
    Replies: 8
    Last Post: 21 Jan 2016, 07:48 PM
  2. v139h missing products from category listing
    By Pepperfire in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Feb 2013, 07:07 PM
  3. Replies: 4
    Last Post: 18 Mar 2009, 02:43 AM
  4. New Products Sidebox Show Products from one category?
    By flirt4 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 Jul 2007, 07:54 PM
  5. Copying Products from one category to another ?
    By Alik in forum Setting Up Categories, Products, Attributes
    Replies: 19
    Last Post: 22 Sep 2006, 03:43 PM

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