If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / New Products Not displaying

New Products Not displaying

Started by downeygames on 4 May 2022, 2:26 PM · Views: 2,481

Results 1 to 6 of 6
4 May 2022, 2:26 PM
#1
downeygames avatar

downeygames

New Zenner

Join Date:
Apr 2022
Location:
Indiana
Posts:
4
Plugin Contributions:
0

New Products Not displaying

I upgraded to 1.5.7c from 1.5.6 and all went well except that now, when a customer clicks "New Products" nothing is displayed. The number of new products is there, but nothing is shown.

Here is the page on the site: https://www.downeygames.com/index.php?main_page=products_new

As you can see, there are 3996 products, but nothing is displayed. I am using the responsive classic template. The PHP version is 8.0.2

Any ideas on how to make them display again.

4 May 2022, 2:36 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: New Products Not displaying

You are seeing a "partial whitescreen"; check the site's /logs directory for a .log file that identifies the cause.

4 May 2022, 3:52 PM
#3
downeygames avatar

downeygames

New Zenner

Join Date:
Apr 2022
Location:
Indiana
Posts:
4
Plugin Contributions:
0

Re: New Products Not displaying

lat9:

You are seeing a "partial whitescreen"; check the site's /logs directory for a .log file that identifies the cause.

This is what is in the log:

HP Fatal error: Uncaught TypeError: str_repeat(): Argument #2 ($times) must be of type int, string given in /home/.../includes/templates/responsive_classic/templates/tpl_modules_products_new_listing.php:62

This is what is on line 62 of tpl_modules_products_new_listing.php:

$display_products_date_added = '<b>' . TEXT_DATE_ADDED . '</b> ' . zen_date_long($products_new->fields['products_date_added']) . str_repeat('<br />', substr(PRODUCT_NEW_LIST_DATE_ADDED, 3, 1));
} else {
$display_products_date_added = '';

4 May 2022, 5:37 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: New Products Not displaying

What is the site's setting for Configuration :: New Listing :: Display Product Date Added?

4 May 2022, 6:16 PM
#5
downeygames avatar

downeygames

New Zenner

Join Date:
Apr 2022
Location:
Indiana
Posts:
4
Plugin Contributions:
0

Re: New Products Not displaying

lat9:

What is the site's setting for Configuration :: New Listing :: Display Product Date Added?

The setting is 1

4 May 2022, 6:21 PM
#6
downeygames avatar

downeygames

New Zenner

Join Date:
Apr 2022
Location:
Indiana
Posts:
4
Plugin Contributions:
0

Re: New Products Not displaying

lat9:

What is the site's setting for Configuration :: New Listing :: Display Product Date Added?

After changing the setting to 0, it appears to work. Thank you for the help, it is much appreciated!