Forums / General Questions / blank page when there is only one product in a category

blank page when there is only one product in a category

Locked

Views: 737

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 May 2010, 12:03 PM
#1
rajoo_sharma avatar

rajoo_sharma

Zen Follower

Join Date:
Aug 2009
Posts:
137
Plugin Contributions:
0

blank page when there is only one product in a category

Hi,

We build our own theme and added many custom features, everything was working fine and suddenly we noticed that the categories that have single product display a blank page. We added:

define('STRICT_ERROR_REPORTING',true);
``` in includes/application_top.php

and the following error appeared:

Warning: Cannot modify header information - headers already sent by (output started at /home/we/public_html/royal/includes/languages/english/email_extras.php:52) in /home/we/public_html/royal/includes/functions/functions_general.php  on line 44

Notice: Object of class queryFactoryResult could not be converted to int in /home/we/public_html/royal/includes/functions/functions_general.php on line 19

since we customized many things added new functions as well, I'm yet not sure what is causing the problem. Please suggest a fix.

For the time being we did:
Admin->Configuration->Layout Settings->Skip 1-prod Categories ... turn this off.

I found this was suggested by Dr. Bytes on one of the posts.

This is great, but I want a proper fix so that the products_info.php page should be loaded if there is only one product in a category.

Please suggest a fix.

Thanks and Regards
27 May 2010, 2:05 PM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: blank page when there is only one product in a category

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 May 2010, 4:34 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: blank page when there is only one product in a category

rajoo.sharma:

Warning: Cannot modify header information - headers already sent by (output started at /home/we/public_html/royal/includes/languages/english/email_extras.php:52) in ...That message is telling you exactly where the problem is: in your email_extras file.
Ref: https://www.zen-cart.com/tutorials/index.php?article=87

.
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.