Jump to content

Can not Download Pdf quote


mbarb

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated