Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Nov 2007
    Posts
    4
    Plugin Contributions
    0

    Default Warning: Cannot modify header information - headers already sent by (using Worldpay)

    Hi,

    Home :: WorldPay

    Warning: Cannot modify header information - headers already sent by (output started at /home/golfgym/public_html/store/includes/templates/template_default/common/html_header.php:22) in /home/golfgym/public_html/store/includes/functions/functions_general.php on line 44


    Above is the warning message I am getting, does anyone have any idea on this ??

    Please help, this is creating problems for us...

    the above is the error when the payment is processed:
    https://select.worldpay.com/aequitas/card

    is this to to do something with the redirect back to the website ?

    html_header.php line 22 has the below code:

    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>


    functions_general.php line 44 contains:
    header('Location: ' . $url);



    Any help is appreciated..

    Thank you

  2. #2
    Join Date
    Nov 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information - headers already sent by

    Hi,

    This is really a urgent issue, please help...

    Moderators, members, administartors help.................

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

    Default Re: Warning: Cannot modify header information - headers already sent by

    Quote Originally Posted by dfltech View Post
    Warning: Cannot modify header information - headers already sent by (output started at /home/golfgym/public_html/store/includes/templates/template_default/common/html_header.php:22)
    Typing "headers already sent" into the search field in the FAQ area brings up a couple articles. The first one is this:
    https://www.zen-cart.com/tutorials/index.php?article=87
    .

    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
    Nov 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information - headers already sent by

    Thanks for that, but i have tired to get a fresh file by downloading the zen cart and then uploading that file, but still the same error....

    any other thoughts on this ????

    Thank you

  5. #5
    Join Date
    Nov 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information - headers already sent by

    I am sorry to say, but the error seems to be beyond the support of the zen cart vendor itself.....

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Warning: Cannot modify header information - headers already sent by

    If you're not happy with the script you can always ask for your money back.

    Otherwise, were edits done to the files in question? That specific error msg. is common when syntax has been incorrectly changed. This can include spaces after the ?> at the page bottom.

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

    Default Re: Warning: Cannot modify header information - headers already sent by

    It would seem that you have something running in a template file which is trying to do a redirect *after* the page has started drawing ... hence the "headers already sent" message appearing when the redirect header-change function gets called.

    You made mention of "Worldpay". What happens if you turn off the worldpay module and enable the Check/MoneyOrder module instead? Does the error go away? If so, then logic would suggest that the problem is somewhere in the Worldpay module you're using.
    .

    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.

  8. #8
    Join Date
    Oct 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information - headers already sent by

    Quote Originally Posted by DrByte View Post
    It would seem that you have something running in a template file which is trying to do a redirect *after* the page has started drawing ... hence the "headers already sent" message appearing when the redirect header-change function gets called.

    You made mention of "Worldpay". What happens if you turn off the worldpay module and enable the Check/MoneyOrder module instead? Does the error go away? If so, then logic would suggest that the problem is somewhere in the Worldpay module you're using.
    Hi all

    I have the same problem.
    I believe nothing to do with the additional space problem.
    If I don't select worldpay and use paypal or COD, then everythinng works fine.

  9. #9
    Join Date
    Aug 2006
    Location
    London
    Posts
    53
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information - headers already sent by

    Quote Originally Posted by Website Rob View Post
    If you're not happy with the script you can always ask for your money back.

    Otherwise, were edits done to the files in question? That specific error msg. is common when syntax has been incorrectly changed. This can include spaces after the ?> at the page bottom.
    That worked for me... Thanks

  10. #10
    Join Date
    Oct 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: Warning: Cannot modify header information - headers already sent by (using Worldp

    Hi Guys,

    Hope you can help.
    I have the same issue as described in one of the above posts:
    Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/includes/templates/ZC03C00094/common/html_header.php:22) in /home/*****/public_html/includes/functions/functions_general.php on line 44

    I have tried everything suggested in this post and others and am still getting this error.

    The error is appearing when Worldpay calls back to the Zen Cart site so the order doesn't complete as the callback is incomplete.

    I have tried reinstalling worldpay, changing templates, all the suggestions that have been made in this thread so far and still no luck.

    The site is Zen Cart version 1.3.7 and the server is running PHP 5.2.5
    Any help with this issue would be much appreaciated.

    Cheers
    Brian

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Warning: Cannot modify header information - headers already sent by
    By Jacket in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 12 Oct 2010, 08:15 AM
  2. 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
  3. Replies: 7
    Last Post: 31 Jul 2006, 06:36 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