Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Posts
    137
    Plugin Contributions
    0

    Default 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:
    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

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

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


  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    Quote Originally Posted by rajoo.sharma View Post
    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.

 

 

Similar Threads

  1. When only one product in a category, it goes right to product -
    By linnx in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Feb 2010, 03:21 PM
  2. spanish -blank page in category when only one product
    By susaw in forum Addon Language Packs
    Replies: 6
    Last Post: 12 Aug 2009, 04:25 PM
  3. Error when category has only one product
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Feb 2009, 12:25 AM
  4. Blank page when category has only one product.
    By arrow in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 23 Nov 2007, 08:19 PM
  5. No category image when only one product
    By budfox in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 21 Feb 2007, 10:19 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