Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    57
    Plugin Contributions
    0

    Default blank pages with some categories and when in cart

    My zencart install is running 1.5.1.

    I have a site that has been running smoothly for some time. No issues, pages load fast enough and the checkout system works great. The site is hosted on a VPS server and shares spaces with several other sites. None are notorious bandwith hogs, again no problems. Some are Joomla, some Magento, some simple HTML.

    About 2 weeks ago the time arrived to upgrade PHP from 5.2 to 5.3 as 5.3 is now required for the latest Joomla. This seemed to be fine. Now I am seeing some weird things with the shop rendering it unusable. Visiting specific categories will render a "blank" page, this one being an example:

    http://192.254.209.56/~dgodod/index....th=113_114_116

    Moving along, if you find a product and add it to the cart, all pages in the cart are blank. So, click to add any item to the cart and you get the blank page. If you return to the home page then click on the "shopping cart" button you also draw blanks.

    I don't remember changing anything around that time period that would have led to the problem and the only major thing has been the PHP upgrade. The other day I asked the s/a staff to reinstall 5.2 but leave 5.3 as the default. To force it to read 5.2 I add the following line into the .htaccess:

    AddType application/x-httpd-php52 .php

    Of course this made no difference. I have access to make the account read a custom php.ini if necessary. Ideas?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: blank pages with some categories and when in cart

    .

    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.

  3. #3
    Join Date
    Jan 2006
    Posts
    57
    Plugin Contributions
    0

    Default Re: blank pages with some categories and when in cart

    I think I have this fixed but I don't see why it occurred in the first place. The site was up, running smoothly for several months, before I discovered the problem quite by accident.

    As the other thread suggested I took a look in ~/www/logs and found a slew of error files, the contents like:

    [25-Aug-2013 00:42:46] PHP Warning: Cannot modify header information - headers
    already sent by (output started at /home/$account/public_html/includes/languages/e
    nglish/extra_definitions/theme684/internet_reviews_defines.php:5) in /home/$account/public_html/includes/functions/functions_general.php on line 45

    I had not made any recent changes that I knew of with the sidebox but I went into zencart admin / Layout Boxes Controller and found a .swp version of internet reviews, also this and some other boxes were highlighted in bold red. The reviews box was not something I was using so I deleted all the relevant files normal and .swp) from the filesystem. To remove it from the Layout Boxes Controller I removed the entry from the database table:

    mysql> delete from layout_boxes where layout_id = 129;

    I went back to the public website and checked, and the problem still existed and was pointing to one of the other highlighted boxes in Layout Boxes Controller. I repeated the process, checked again, still broken and the latest log error was pointing to:

    [02-Sep-2013 00:11:51] PHP Warning: Cannot modify header information - headers already sent by (out
    put started at /home/$account/public_html/includes/languages/english/extra_definitions/theme684/social
    _media_sidebox_defines.php:5) in /home/$account/public_html/includes/functions/functions_general.php o
    n line 45

    Repeating the process a third time resolved the logs/errors and the problems on the public frontend. So, no I do not know when or how this got started, but it is now working.

 

 

Similar Threads

  1. Replies: 8
    Last Post: 24 Feb 2013, 04:52 AM
  2. Replies: 1
    Last Post: 16 Mar 2011, 12:12 AM
  3. Blank Pages when adding items or going to cart?
    By Nordy in forum General Questions
    Replies: 12
    Last Post: 13 Apr 2009, 08:02 PM
  4. Blank pages when adding tot he cart and checkout?
    By Dimascus in forum General Questions
    Replies: 8
    Last Post: 7 Jan 2009, 10:26 PM
  5. Blank pages when adding items to cart?
    By uberwench in forum General Questions
    Replies: 2
    Last Post: 13 Sep 2008, 03:08 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR