I am generating 2 PDFs (Print PDF) from Contracts module. Have Contact, Account, Opportunities Fields filled in Contracts module. One of the PDF is returning blank page. The other PDF is just printing the field names and not the parsed result i.e. ($billing_account_billing_address_city, $billing_account_billing_address_state)
I need help on this, I am really deep trouble.
Using SuiteCRM Version 7.8.3 (Sugar Version 6.5.24 (Build 509))
If you can, please consider an upgrade to the latest 7.8.10, there have been tons of bug fixes (and security fixes!). Make sure you backup first, as always before an upgrade.
Other than that, check your logs for any clues at the moment of generating the PDF.
I upgraded to 7.8.10. Still no luck. In the Suitecrm Log, all i see is below repeated multiple times
Sun Jan 14 23:40:45 2018 [2241][-none-][FATAL] Configuration variable date.timezone is not set, guessed timezone UTC. Please set date.timezone=âUTCâ in php.ini!
Sun Jan 14 23:41:45 2018 [1542][-none-][FATAL] Configuration variable date.timezone is not set, guessed timezone UTC. Please set date.timezone=âUTCâ in php.ini!
Sun Jan 14 23:42:46 2018 [2038][-none-][FATAL] Configuration variable date.timezone is not set, guessed timezone UTC. Please set date.timezone=âUTCâ in php.ini!
If the errors come every minute, theyâre probably from the cron jobs (if you have them running!). In that case you might need to configure a second php.ini (for the CLI).
I have set the date.timezone setting on php.ini file in etc/php/7.0/apache2
I am still getting the errors, so like you said it could be from the cronjobs. Can you please elaborate on âIn that case you might need to configure a second php.ini (for the CLI).â
In the suitecrm.log, the PHP time zone error has stopped. Apparently I had to restart the server after making the changes. Duh!!
You are right, it is a self hosted server on cloud.
I tried creating the PDF again, as my original post was. the page generated is blank, through I have selected the variables to display while designing the PDF template. There is no error spitted in suitecrm.log file on the same.
Can you get access to the web serverâs logs? Normally theyâre in php_errors.log, and they show relevant information especially when thereâs a white screen, which is usually caused by a PHP fatal error.
Itâs hard to fix it if we donât know whatâs happeningâŚ
In version Version 7.11.13
Sugar Version 6.5.25 (Build 344)
on ubuntu i made the following changes to fix the blank screen.
I commented out the following code line from @mb_regex_encoding(âUTF-8â);
from the file
modules/AOS_PDF_Templates/PDF_lib/mpdf.php