mbarb Posted March 11, 2010 Share Posted March 11, 2010 Hi, I am having Version: 4.1.2. I transfered my whole setup to another hosting provider. Everything is working perfectly to the new hosting provider except one very very strange thing. If I will go to quotes and try to download the pdf (pressing the "Download Pdf" button) the browser does not automatically as always prompt me the "save as" dialog box but instead of that it is downloading ( I can assume) the pdf in the browser window and shows unrecognized characters all over the page. This happens only in the admin pages and not in the client pages. I tried different browsers and all do exactly the same. The only recognized characters are at the beginning of the page all the others are unreadable as you can see and this goes on all over the browser page %PDF-1.7 3 0 obj <> endobj 4 0 obj <> stream x??Y[oGi??+?j?h?;{?SU?T???@y??q ??????P........... I talked to my hosting provider and the server is able to interpret pdf documents, but WHMCS is returning this as text/html instead of setting header to pdf properly after the tests they made. Is there a workaround for this..? Regards 0 Quote Link to comment Share on other sites More sharing options...
mbarb Posted March 11, 2010 Author Share Posted March 11, 2010 I add this line on the configuration.php $display_errors = true; to display the errors and when I pressed the Download pdf I saw the message below. Also I am getting the same error when I press Email as pdf. Warning: Cannot modify header information - headers already sent by (output started at /home/earthonw/public_html/hlpdsk/templates/portal/quotepdf.tpl:2) in /home/earthonw/public_html/hlpdsk/crm/quotes.php on line 0 0 Quote Link to comment Share on other sites More sharing options...
mbarb Posted March 11, 2010 Author Share Posted March 11, 2010 Problem Solved by Support Team. I had a blank line in my quotepdf.tpl file above the <?php which would cause this error, Excellent Support Thanks Andrew 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.