Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Already Sent? No whitespace?


ollyno1uk2

Recommended Posts

Hi

 

I am getting an error on my site when I look in the error log it states that the headers have already been sent.

 

This has come about after trying to install the PDF Invoice contrib as it will not allow the PDF file to work correctly.

 

The rest of the store seems to work fine.

 

Now this error is refferring to a line number that just contains an image with a mouse over section of javascript within it. Above and below are the same. This functions fine on the site as a navigation menu but I think it is stopping this PDF from working.

 

Any ideas?

 

I have checked for white space and there is none - and the line number is bang in the middle of the page.

 

Thanks a lot

Link to comment
Share on other sites

I have found the issue was in some white space in a different file that was not being reported by the error - just in case anyone else has this issue - check all files for whitespace before <?php and after ?>

Link to comment
Share on other sites

Such failures will show up in the error since the code doesn't fail until it is called so any such requests for help should contain the error message.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Sorry, Are you saying that the error log message should state the correct line? In my example the error was pointing to line 93 of header.php - This only had html before and after it.

 

Do line number errors actually count blank lines or commented text?

 

Thanks

Link to comment
Share on other sites

When the code fails due to whitespace in the file, a message is displayed on the page. That is what should be looked at. In such failures, line numbers are usually accurate, as long as the correct file is looked at.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Ah ok - in this instance I was looking in the server error log as the error message provided in this instance on the page was, it would see, a customised error, rather than the actual failure.

 

There were no additional errors in the server error log.

 

Thanks for the clarification

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...