Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jul 2007
    Posts
    6
    Plugin Contributions
    0

    Default Warning: Cannot modify header information

    Hi, just installed Zen Cart and loving everything about it - an amazing package.

    I've noticed that once I place a product in a category and click category link, for example 'DVD' I get this:

    Warning: Cannot modify header information - headers already sent by (output started at /data02/public_html/site/store/includes/languages/english/index.php:117) in /data02/public_html/site/store/includes/functions/functions_general.php on line 44

    Many thanks for your help and for such a radical shop

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Warning: Cannot modify header information

    .

    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
    Jul 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information

    Thanks, I had a look but no joy, everthing looks ok in both files. I also switched templates just to test, but the problem remains.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Warning: Cannot modify header information

    store/includes/languages/english/index.php:117
    What's on line 117 of that file?
    .

    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.

  5. #5
    Join Date
    Jul 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information

    Man the help here is faaaast, thank you

    Line 117: define('TEXT_GV_REDEEM','Redemption Code');

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Warning: Cannot modify header information

    Is that from the file on your PC, or the file on the server?

    Is that the last line of the file? or how many lines are there?
    Did you make any customizations to that file on earlier lines ?

    Some FTP programs convert line-endings to double-space the file. Zen Cart doesn't distribute the files in double-spaced format. So if yours are double-spaced, that could be causing you some grief.
    .

    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.

  7. #7
    Join Date
    Jul 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information

    Is that from the file on your PC, or the file on the server?
    Downloaded from the server and opened in Dreamweaver.

    Is that the last line of the file? or how many lines are there?
    1385 lines of code

    Did you make any customizations to that file on earlier lines ?
    I did but followed the Zen Cart FAQ to the letter

    Some FTP programs convert line-endings to double-space the file. Zen Cart doesn't distribute the files in double-spaced format. So if yours are double-spaced, that could be causing you some grief.
    Ooer, Core FTP is what I use, is there anyway I can find out if this is happening?

    I used Fantastico to install Zen, could this be the source of the problem?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Warning: Cannot modify header information

    Quote Originally Posted by Microdot View Post
    Core FTP is what I use, is there anyway I can find out if this is happening?

    I used Fantastico to install Zen, could this be the source of the problem?
    I've often seen fantastico-installed sites end up with double-spaced files.
    I usually re-install with a good set of files via FTP

    A second cause of double-spaced files can *sometimes* be the accidental treatment of PHP files as binary instead of ascii (text) files. Be sure your FTP program is set to treat PHP files as "ascii" and not binary.

    I also usually use FileZilla, as several other FTP programs often experience timeouts and fail to properly upload all files.

    The english.php file in v1.3.7.1 is only 693 lines long. The 1385 you quoted would be double that ...


    If you undo your customizations and replace your english.php file with the original ... does the error go away? If so, then perhaps your edits ended up with mismatched quotation marks somewhere ?
    .

    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.

  9. #9
    Join Date
    Jul 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information

    Whoa.

    Didn't realise I was using an outdated version. Thanks for that, will download and get cracking on it



    I don't have the original because of the fantastico, and closed dreamweaver before i noticed the problem.

    Still, if there's a newer one around I'll give that go with the FTP software you suggest. Thanks a lot for your help.

  10. #10
    Join Date
    Jul 2007
    Posts
    63
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information

    I got the same problem

    Warning: Cannot modify header information - headers already sent by (output started at /home/nutricio/public_html/shop/includes/languages/english/index.php:117) in /home/nutricio/public_html/shop/includes/functions/functions_general.php on line 44

    my english.php has 1835 lines, and I installed zencart from fantastico, my version is 1.3.7. what do I do?

    should I delete everything and install something else?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 12 Dec 2008, 07:00 AM
  2. Warning: Cannot modify header information
    By nnitin in forum Addon Language Packs
    Replies: 3
    Last Post: 21 Oct 2008, 04:43 PM
  3. Warning: Cannot modify header information
    By dbessinger in forum General Questions
    Replies: 3
    Last Post: 1 Jun 2007, 06:15 AM

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