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:
PHP Code:
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