Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2005
    Location
    ATX
    Posts
    111
    Plugin Contributions
    0

    Default Cannot modify header information - headers already sent

    Similar problem here.

    I just moved the site from an apache2/php4/mysql4 server to an apache2/php5.2.9/mysql5.0.77 server. Zen version.php files says 1.3.8.

    I've checked the paths and permissions (corrected cache paths), restarted apache, and installed the debug tool. I'm seeing debug messages like:

    [20-Oct-2009 17:30:34] PHP Warning: Cannot modify header information - headers already sent by (output started at /opt/local/apache2/htdocs/Faye/AfricaBound/store/includes/languages/english.php:1401) in /opt/local/apache2/htdocs/Faye/AfricaBound/store/includes/init_includes/init_templates.php on line 78
    [20-Oct-2009 17:30:34] PHP Warning: Cannot modify header information - headers already sent by (output started at /opt/local/apache2/htdocs/Faye/AfricaBound/store/includes/languages/english.php:1401) in /opt/local/apache2/htdocs/Faye/AfricaBound/store/includes/functions/functions_general.php on line 44

    I was still able to work in Admin from one computer as long as it didn't time out, but now I can't get back in. I also get a blank page when trying to put anything into the shopping cart.
    Member since 4/05.

  2. #2
    Join Date
    Apr 2005
    Location
    ATX
    Posts
    111
    Plugin Contributions
    0

    Default Re: Strange Error

    Correction: that's ZenCart 1.3.8a

    Meantime, I've redirected dns to the original server until I get this squared away. Everything's working fine in that install. It's definitely something with php/apache or files/permissions, because both sets of files were running off the same MySQL db. I've now cloned the db just in case.

    The files were manually moved using an external firewire drive from one server to the other, so I suspect something in how php5 handles certain things differently than php4 is at the bottom of this.
    Last edited by billc108; 21 Oct 2009 at 12:16 AM. Reason: added more detail
    Member since 4/05.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Cannot modify header information - headers already sent

    Quote Originally Posted by billc108 View Post
    [20-Oct-2009 17:30:34] PHP Warning: Cannot modify header information - headers already sent by (output started at /opt/local/apache2/htdocs/Faye/AfricaBound/store/includes/languages/english.php:1401) in ...
    https://www.zen-cart.com/tutorials/index.php?article=87
    Quote Originally Posted by billc108 View Post
    I also get a blank page when trying to put anything into the shopping cart.
    https://www.zen-cart.com/tutorials/index.php?article=82
    .

    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.

  4. #4
    Join Date
    Apr 2005
    Location
    ATX
    Posts
    111
    Plugin Contributions
    0

    Default Re: Cannot modify header information - headers already sent

    Thanks for the quick fix. It was spaces at the end of the file.
    Member since 4/05.

 

 

Similar Threads

  1. v151 Cannot modify header information - headers already sent by ,,,
    By mespe in forum General Questions
    Replies: 9
    Last Post: 2 Oct 2015, 08:27 PM
  2. Cannot modify header information - headers already sent
    By Fred5550 in forum General Questions
    Replies: 2
    Last Post: 12 Feb 2009, 04:38 PM
  3. Cannot modify header information - headers already sent by
    By laserayaneh in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 6 Sep 2006, 12:14 PM
  4. Replies: 7
    Last Post: 31 Jul 2006, 06:36 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