Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header already sent by


Guest

Recommended Posts

Please Help i have had my web site work but it all went &*(&*^&^%^ I have spoken to my hosting chaps who got it working again!

But now get the following message.

Warning: Cannot modify header information - headers already sent by (output started at /home/plasti12/public_html/cart/includes/modules/payment/paypal_uk_express.php:2) in /home/plasti12/public_html/cart/admin/includes/functions/general.php on line 22

I have not touched any real php codes so i do not know how this happen

Please please Help

Link to comment
Share on other sites

Somebody modified includes/modules/payment/paypal_uk_express.php around line 2, or perhaps it's an error message being output that you're overlooking. Anything sending text or markup to the browser causes the HTTP headers to be sent out, so it's impossible to send them later. Read http://www.oscommerce.com/forums/topic/350012-error-in-all-page-submits/page__gopid__1467801entry1467801 and http://www.catskilltech.com/freeSW/SMF/faqs/index.html#headers . Deal with any error, or remove any hack code added.

Link to comment
Share on other sites

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/plasti12/public_html/cart/ext/modules/payment/paypal/express_uk.php:2) in /home/plasti12/public_html/cart/includes/functions/sessions.php on line 102

Is now the error message

ARRRRRRHHHH

Please help

Link to comment
Share on other sites

On the failing page, view your browser page source (View > Page source, or something similar). Look at the code for the very top of the page -- is there an error message there that you've overlooked? Is there some garbage text (perhaps just a single blank)? The error message tells you that in the vicinity of line 2 of express_uk.php, something is being written to the browser. It could be a stray character, such as a blank (e.g., " <?php" instead of "<?php" in that file's code); it could be an error message (possibly related to the "invalid security header" message you mention in another thread); it could be some output from a hack. If you are unable to figure it out on your own, you've got to bring in somebody who can look at the page source and determine where this stray text is coming from. If you want me to look at it I can, but I charge by the hour to do work for other sites.

Link to comment
Share on other sites

By Gum..... Blanks in nearly all files all done and back up done

New error code now tho....

Error: Payment module configuration error. Please verify the login credentials.

I have gone through all of my setting but still no joy

(Also Thanks Phil. i got there with you help.) i did not think to check all files for blanks takes time but got there.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...