Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Error: Cannot modify header information

    This is weird... the store was working fine, but somehow I must have changed something. Some products show up just fine, while other products give me this error :


    HTML Code:
    Warning: Cannot modify header information - headers already sent by (output started at /home/vhosts/rickrushart.com/public_html/includes/languages/english/extra_definitions/CustomFeatured_sidebox_defines.php:31) in /home/vhosts/rickrushart.com/public_html/includes/functions/functions_general.php on line 44

    Now, I recognize the "CustomFeatured_sidebox" as the "Rick's Recent Works" table, which I added a graphic to in replace of text in the box header, but I didn't notice any errors until after I moved a product from it's own category to a new one.

    Can anyone help out?

    The website is, www.RickRushArt.com
    The Hockey product works fine, but the products in the Racing category do not.
    Last edited by Kim; 26 Mar 2008 at 05:46 PM.
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  2. #2
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Error: Cannot modify header information

    Okay, I removed the...

    /public_html/includes/languages/english/extra_definitions/CustomFeatured_sidebox_defines.php


    ...and now the pages seem to work okay, except the 'Custom Sidebox' header says, "
    BOX_HEADING_CUSTOMFEATURED_SIDEBOX"...
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  3. #3
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Error: Cannot modify header information

    Somehow there's a communication breakdown, whenever I add the defines PHP back into the folder...

    <?php
    //
    // CustomFeatured Sidebox Mod
    // includes/modules/sideboxes/CustomFeatured_sidebox_defines.php

    define('BOX_HEADING_CUSTOMFEATURED_SIDEBOX', 'Recent works');

    ?>


    Nothing looks wrong, here, though... so why would adding this file to the location suddenly cause specific products not to work, but other specific products still work perfectly fine?
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

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

    Default Re: Error: Cannot modify header information

    Your first error sounds like you have space(s) or blank line(s) at the end of the file below the closing php tag ?> which sends the error message about:
    Warning: Cannot modify header information - headers already sent by
    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!

  5. #5
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Error: Cannot modify header information

    ...wow... I went into the file and deleted a single space, uploaded it back, and now it appears to be working.

    It was literally a SINGLE space. Not even interrupting anything.
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  6. #6
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Error: Cannot modify header information

    Well, I just put the img line back to the header spot, and it works perfectly fine. I cannot believe that tiny space totally fried half of the products. Thanks a million and a million.
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

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

    Default Re: Error: Cannot modify header information

    Amazing things what a single typo or space can do to a program, eh?
    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!

  8. #8
    Join Date
    Sep 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error: Cannot modify header information

    Quote Originally Posted by Ajeh View Post
    Your first error sounds like you have space(s) or blank line(s) at the end of the file below the closing php tag ?> which sends the error message about:
    Warning: Cannot modify header information - headers already sent by
    So simple, yet such a mind boggler to us php newbies...

  9. #9
    Join Date
    Mar 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: Error: Cannot modify header information

    Quote Originally Posted by Ajeh View Post
    Your first error sounds like you have space(s) or blank line(s) at the end of the file below the closing php tag ?> which sends the error message about:
    Warning: Cannot modify header information - headers already sent by
    Sorry for repeat the same problem, but I can firuge out how to solve it now.
    I met the same problem decribed above before, anh some time I solve it successfully by this guidline , but right now the same problem occur ( with another file ) and I do the same, check this file carefully on local , upload it to server and it still..not working . I don't know why ?

  10. #10
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Error: Cannot modify header information

    What are you using to edit and then upload your files?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Error log : Cannot modify header information
    By gingabox in forum General Questions
    Replies: 6
    Last Post: 24 Apr 2009, 08:42 AM
  2. Cannot Modify Header Information Error
    By acmc40 in forum General Questions
    Replies: 5
    Last Post: 14 Dec 2008, 06:28 PM
  3. Replies: 13
    Last Post: 20 May 2008, 05:32 AM
  4. Installation Error - Cannot Modify Header Information
    By jwbaker in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 19 May 2006, 06:59 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