osCmax v2.5 User Manual
Results 1 to 7 of 7

Warning: Cannot modify header information - headers (...)

This is a discussion on Warning: Cannot modify header information - headers (...) within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Ok, here is my first posting on the forum. I have tried almost anything that could come up to mind ...

      
  1. #1
    Lurker
    Join Date
    Jun 2003
    Posts
    2
    Rep Power
    0


    Default Warning: Cannot modify header information - headers (...)

    Ok, here is my first posting on the forum. I have tried almost anything that could come up to mind and I can't figure this one.

    My website seems to be working fine except that when I do a few specific features it displays me a warning message like the following:

    Warning: Cannot modify header information - headers already sent by (output started at /home/alpaca-w/public_html/includes/languages/english.php:316) in /home/alpaca-w/public_html/includes/functions/general.php on line 29


    My first guess was that one of the configure.php would have a blank line at the end, nada! Then I check the two php files mentionned above, same result.

    Anyone has any idea ? Please help, I am eager to go live
    P.S. No Gremlins theory this time !
    javascript:emoticon('')
    Evil or Very Mad

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    You mention specific features. What are the settings that cause this?

    Also, check application_top.php and header.php for the dreaded blank line

    Line 319 of english.php is near the end. Check that too.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Lurker
    Join Date
    Jun 2003
    Posts
    2
    Rep Power
    0


    Default

    Ok you are my new god ! Actually this was not my problem but your comment did ring a bell. I was trusting cpanel for editing the file. The truth was that EVEN THOUGH the Cpanel editor would show me nothing after the > there was 2 extra lines. I have ftp'ed the file, edited it and it works just fine now!

    I know, I should really start a new thread but I still have one bug left with USPS. I have got an account with them, filled the info in the admin page and tried both product and test mode and get the following when I check out:

    "An error occured with the USPS shipping calculations.
    If you prefer to use USPS as your shipping method, please contact the store owner." Would you have any idea of what I could be doing wrong ? Does it take some time before we can use their api after they issue our account ?

    I am a software engineer and would like to sort of bring my contribution to this project. Any idea of some features I could work on ?

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    The USPS error is probably caused by you not having your zone set up completely. You need to have the zip set in the shipping section for calculating costs. That is where I would look first.

    Next - ACK! How could you use the cpanel editor?!? It is SO bad. You should always use a quality text editor with line numbering when working with your php files. There are tons out there, some free, some not. I use ultra edit and dreamweaver.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Aug 2003
    Posts
    17
    Rep Power
    0


    Default

    I have the same error, but have not used any editor..

    This is what I get when clikking on to my account or checkout:


    Warning: Cannot modify header information - headers already sent by (output started at /home/coolkidz/public_html/shop/includes/languages/norwegian.php:785) in /home/coolkidz/public_html/shop/includes/functions/general.php on line 29

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    ChanBe, norwegian.php: line 785.

    Delete the blank lines after the closing php tag. The error message tells you exactly where to look.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    Lurker
    Join Date
    Feb 2005
    Posts
    1
    Rep Power
    0


    Default

    Thank you

    I was intended to ask questions in this item.
    As you said, a dreaded blank line in the end of the file

    catalog/includes/languages/svenska/modules/shipping/flat.php:18

    I think this was the easy one and I´m coming back

Similar Threads

  1. Warning: Cannot modify header information - Pls Help!!
    By mightymidget in forum osCMax v1.7 Installation
    Replies: 7
    Last Post: 05-22-2005, 12:38 PM
  2. 2 headers UGH!
    By AnnieChrist in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-24-2005, 04:06 AM
  3. Headers
    By lem in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 02-17-2005, 11:07 PM
  4. paypal ipn can't modify header information
    By battleaxe in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 06-06-2004, 11:58 AM
  5. Warning: Cannot add header information
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 11-28-2003, 03:33 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
  •