Text at top of "Thank You" page before the DOCTYPE

General ShopSite user discussion
Post Reply
Gorgeous537
Posts: 9
Joined: Tue Nov 08, 2011 11:10 am

Text at top of "Thank You" page before the DOCTYPE

Post by Gorgeous537 »

I can't seem to figure out why the text "Content-type: text/html" appears at the top of my "Thank You" page before the DOCTYPE. I cannot find the text anywhere in my templates or anywhere on the rendered page (except at the very top). Where could this be coming from? Could this be an error from one of the templates tags like [-- DEFINE ThankYou --]?
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Re: Text at top of "Thank You" page before the DOCTYPE

Post by loren_d_c »

Do you have ShopSite Pro? If so, are you using a custom Order API script (configured under Merchandising -> Order API) to process order information when the orders are placed? If you are, then this may happen if the Order API has to output content to the browser, in which case it has to output its own Content-Type headers, causing any subsequent ones to just be rendered as text.

-Loren
Gorgeous537
Posts: 9
Joined: Tue Nov 08, 2011 11:10 am

Re: Text at top of "Thank You" page before the DOCTYPE

Post by Gorgeous537 »

Loren you are brilliant! Thank you!
Post Reply