Default Download PDF in Quotes is not working in 10.2 SugarCRM Instance

Hi Everyone,

We have installed Sugar 10.2 Developer builds on our server. We are facing issues while downloading the download PDF in the Quotes module.

Not able to download on any 10.2 Sugar Instance installed on our servers.

While trying to download getting an error in Sugarcrm.log file like TCPDF error  - Some data has been already Output,cant sent data file.

Attaching the screenshots for more information.

I am just wondering is this expected behavior in Sugar 10.2 or any Bug.

Would be great and helpful, if any of the team or SugarTeam has some solution for this. Many Thanks in Advance.

  • Hi Pooljitha,   I am not sure about the error in the log but I have encountered PDF's not downloading and the cause in my case has been literally if one comma has been out of place - I think that was in a IF statement.    Maybe try with a really basic PDF template?  Like just text only to test it?   

  • The error here is that tcpdf is using a deprecated each function in line 11060 (as seen in the screenshot).

    And looks like you're printing HTML errors and your error_reporting flag is either E_ALL or not excluding E_DEPRECATED in your php.ini.

    One quick solution is to ignore E_DEPRECATED:

    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT


    Of course - this is just a temporary solution :), the permanent solution is for Sugar Dev team to upgrade tcpdf version.

  • Hi Neeraja,

    Thank you. I tried this. But no luck. Still, we are not able to download the Quote.

    ,  or someone from Sugar Team, please suggest how can we fix this issue. Many Thanks

  • Hi ,

    You can expect this kind of behavior from developer builds as they are not client-ready. I even once encounter the problem of not able to delete records in one of the developer builds.

    So I think this is an issue related to this particular developer build and will be working find once released for clients.

    Kind Regards,

    Junaid

  • Hi Everyone,

    Just would like to update all that we are able to download the quote from the quotes module now.

    The change we made is setting the display_erorrs = off in the php.ini file and restarting the services.

    Thanks to everyone.