Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    2
    Plugin Contributions
    0

    Default Warning: Cannot modify header information

    Hello!

    When I click on two (of four) particular categories in the "Categories" layout box, I get this error:

    Warning: Cannot modify header information - headers already sent by (output started at ../includes/languages/english/index.php:117) in ../includes/functions/functions_general.php on line 44
    Things seemed to work just fine until I added an item under the category, then the error message started. I have four categories set up. Two work fine, two give me this same error message.

    I'm using v1.3.7. I believe that this is a bug as I can't imagine it's expected behavior (I've manipulated data only through the Admin interfaces), and I have no idea what this could be as I'm not a programmer.

    Any advice? Thanks!

    Don

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Warning: Cannot modify header information

    This is a real common error in php ...

    If you do a search in the tutorials/FAQs on the error message:
    Cannot modify header information

    You would find a really simple fix for this scary looking php error ...

    Take a peek and drop back by with what it tells you to do ... I know, I am so mean ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    May 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information

    Hahahaha. I see that I have been humbled by some e x t r a s p a c e s. For the next person who comes along with this issue, here's what Ajeh knew.

    This error is usually caused by extra spaces at the beginning or end of a PHP file. Break out your handy text editor and get rid of all the extra spaces before the opening "<?php" mark and after the closing "?>" mark (this is where my problem was - extra carriage returns).

    Two things to note about this fix. First, the file you need to fix is the first file listed in the error message (there should be two - see my original cry for help two posts ago). Second, if there are any other error messages that precede the "Header not sent" error message, fix those errors first as fixing them will likely simply make the "Header not sent" message go away.

    Finally, I learned that the Zencart FAQs are pretty darned comprehensive, and doing a search on the support site before bugging (so to speak) people here can save everyone lots of time. If you don't know where the official FAQs are, they're at:

    https://www.zen-cart.com/tutorials/index.php


    So, in summary, watch those spaces, and don't just poke at the links on the FAQ page, use that little Search box at the top right of the page. If you don't, you risk having a buggy online store as well as incurring the wrath of Ajeh.

    Don

    (Thanks Ajeh - everything works like a champ now!)

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Warning: Cannot modify header information

    Thanks for post such a detailed explanation on how that error could be fixed ...

    It is a common error that looks like you have destroyed your site when it happens ...

    Fortunately, a couple of deletes go a long way ...

    Thanks again for the help in explaining this to all who come across it ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Warning: Cannot modify header information
    By Microdot in forum Installing on a Linux/Unix Server
    Replies: 13
    Last Post: 26 Jul 2009, 12:56 AM
  2. Replies: 1
    Last Post: 12 Dec 2008, 07:00 AM
  3. Warning: Cannot modify header information
    By nnitin in forum Addon Language Packs
    Replies: 3
    Last Post: 21 Oct 2008, 04:43 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