PDF Templates no longer working

I recently updated from 7.9.1 to 7.9.5, and now when I go to PDF Templates and select a template, if I press “edit” the WYSIWYG window shows HTML. If I click into the HTML, select all, click the HTML button in the top left, and paste, and then select “update”, it appears fine. I save it, press edit again, and again it’s back to HTML.
Addtionally, when in invoices, I cannot create a PDF invoice, email an invoice, or email a PDF of an invoice. The rendering of the invoice just isn’t working.

I’ve already redone permissions as well as ran the “repair” tools in Admin settings.

Any suggestions?

Same issue here.

Does anyone have an update to this? I really need to print PDF invoices. Any help would be greatly appreciated.

I also have the same issue and cannot create new quotes

I have the same porblem

Please. SuiteCRM folk… I really need help here. My PDF invoices don’t work. Therefore the job notes can’t be included if I just “print” the invoice (screen shots). I really need this fixed. I realize it’s free software, but this is an LOB app for me…

Same issue here

I also have this issue on 7.9.5 When you edit a template you don’t get the WYSYWYG editor, you just get the HTML.

I tried changing the editor preference in my user preferences but it didn’t help. Anyone solve this issue?

Yes, i,m on this Same issue right here, there is someone help case!

This might help, https://github.com/salesagility/SuiteCRM/issues/4223.

I tried to apply this fix:
This might help, github.com/salesagility/SuiteCRM/issues/4223.

And while it DOES address the HTML issue (when editing and saving the Invoice PDF template) it does not address the “Print as PDF” issue when trying to export an invoice.

Does anyone else have a solution for “Print as PDF” to function correctly (not show a blank page)?

I tried the fix and the PDF template body still shows as HTML instead of the editor.

However, I’m not getting the white screen on printing one. A white screen is typically a PHP error. Turn error reporting back on and see what the error is when you try and print one. That should help you track it down.

@npwomack: blank page ? --> your html code insert to body wrong - you must compression to a single line by using “minify-html.com” tool :: What I know from forums is to create a table with “table tag” and compress it into a single line, it works right. try below for example this shared by @jcgwatt

<table style=width:100% align=center border=0 cellpadding=1><tr><td><h1><span style=font-size:xx-large>JCG & Watt<br><span style=font-size:x-small>+61 3 9088 3101 -client@jcgwatt.com - www.jcgwatt.com</span><br></span></h1><td><td><td><td align=right><p style=text-align:right>ABN 8760 7240 049<br>330 Lygon Street<br>Brunswick East<br>Vic, 305<tr><td align=left valign=bottom><p><p><p>$aos_quotes_billing_contact<br>$aos_quotes_billing_address_street<br>$aos_quotes_billing_address_city<br>$aos_quotes_billing_address_state, $aos_quotes_billing_address_postalcode<p><p><span style=font-size:small>Quote # $aos_quotes_number</span><td><td><td><td align=center valign=middle><p style=text-align:center><span style=font-size:xx-large><span style=font-size:x-large>Quote<br></span><span style=font-size:small>$aos_quotes_status</span><br><br></span><tr style=background-color:#5383ac><td style=text-align:center align=center valign=middle><h3><span style=color:#fff>Quote Date</span><br><span style=color:#fff>$aos_invoices_date_entered</span></h3><td colspan=2 align=center valign=middle><h3><span style=color:#fff>Valid Until</span><br><span style=color:#fff>$aos_quotes_expiration</span></h3><td style=text-align:center colspan=2 align=center valign=middle><h3><span style=color:#fff>Amount</span><br><span style=color:#fff>$aos_quotes_total_amount</span></h3><tr><td></table><h2>Quote Details</h2><hr><p><table style="width:100%;border:0 none;border-spacing:0"><tr><td style="border-style:solid;background-color:#5383ac;border-width:.5px;padding:2px 6px;font-weight:700;text-align:center"><h3><span style=color:#fff>Type</span></h3><td style="border-style:solid;background-color:#5383ac;border-width:.5px;padding:2px 6px;font-weight:700;text-align:center"colspan=3><h3><span style=color:#fff>Service</span></h3><td style="border-style:solid;background-color:#5383ac;border-width:.5px;padding:2px 6px;font-weight:700;text-align:center"colspan=3><h3><span style=color:#fff>Discount</span></h3><td style="border-style:solid;background-color:#5383ac;border-width:.5px;padding:2px 6px;font-weight:700;text-align:center"><h3><span style=color:#fff>Total</span></h3><tr><td style="border-style:solid;border-width:.5px;padding:2px 6px;text-align:left">$aos_line_item_groups_name<td style="border-style:solid;border-width:.5px;padding:2px 6px">$aos_products_quotes_name<td style="border-style:solid;border-width:.5px;padding:2px 6px"colspan=2>$aos_products_description<td style="border-style:solid;border-width:.5px;padding:2px 6px"colspan=3>$aos_products_quotes_product_discount<td style="border-style:solid;border-width:.5px;padding:2px 6px">$aos_products_quotes_product_total_price<tr><td style="border-style:solid;border-width:.5px;padding:2px 6px">$aos_line_item_groups_name<td style="border-style:solid;border-width:.5px;padding:2px 6px"colspan=3>$aos_services_quotes_name<td style="border-style:solid;border-width:.5px;padding:2px 6px"colspan=3>$aos_services_quotes_service_discount<td style="border-style:solid;border-width:.5px;padding:2px 6px">$aos_services_quotes_service_total_price<tr><td colspan=6><td style="border-style:solid;border-width:.5px;padding:2px 6px;font-weight:700;text-align:right"rowspan=2><br>Price<td style="border-style:solid;border-width:.5px;padding:2px 6px"rowspan=2><br>$total_amt<tr><td colspan=6><tr><td colspan=6><td style="border-style:solid;border-width:.5px;padding:2px 6px;font-weight:700;text-align:right">Discount<td style="border-style:solid;border-width:.5px;padding:2px 6px">$discount_amount<tr><td colspan=6><td style="border-style:solid;border-width:.5px;padding:2px 6px;font-weight:700;text-align:right">Subtotal<td style="border-style:solid;border-width:.5px;padding:2px 6px">$subtotal_amount<tr><td colspan=6><td style="border-style:solid;border-width:.5px;padding:2px 6px;font-weight:700;text-align:right">GST<td style="border-style:solid;border-width:.5px;padding:2px 6px">$tax_amount<tr><td colspan=6><td style="border-style:solid;border-width:.5px;padding:2px 6px;font-weight:700;text-align:right">Total<td style="border-style:solid;border-width:.5px;padding:2px 6px">$total_amount</table><h2>Terms</h2><hr><p>$aos_quotes_terms_c<p>$aos_quotes_term<h2>your footer here</h2>

@pstevens: I do not know how to create a PDF form in PHP, because it’s hard to work in the editor and OPS is not sure it works in safe condition, if you have a PDF form created from PHP please share it Give me a chance to practice.

You don’t create PDF forms from PHP. You use the editor in SuiteCRM.

The problem is after you save it from the WYSIWYG editor and then try to re-edit it, all you see is an HTML mess when you should see the WYSIWYG editor. I’ve opened an issue for this in Github.

Regarding the white screen. The PHP I’m talking about is the one running SuiteCRM, usually if there is an error in the code you’ll get the white screen. Turn error reporting back on in you PHP.INI file and you’ll see exactly what the PHP error is. That will help you diagnose what the problem is.

I turned “error reporting” on, and now when I go into an invoice, at the bottom, I get the following:

Warning: Declaration of SugarWidgetSubPanelDetailViewLink::displayList(&$layout_def) should be compatible with SugarWidgetField::displayList($layout_def) in /home/crmlocally/public_html/include/generic/SugarWidgets/SugarWidgetSubPanelDetailViewLink.php on line 0

Any ideas?

Hmm, That’s just a “warning” so it shouldn’t be the cause of the error. What does your SuiteCRM error log say? You can find it in Admin, general settings.

When I go to Admin -> System Settings, scroll down, and click “View Log” the page loads but there is no data.

Just to be clear after yo clicked on “view log” did you click on the “all” button?

You should see some errors here.

If there really is nothing here. Then my only other thought is a memory issue. How much PHP memory do you have allocated in your Cpanel to PHP? Usually, 256MB works. You can add this to your PHP.ini as well.

lots and lots (and lots) of

Tue Oct 10 16:59:11 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
Tue Oct 10 16:59:14 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Accounts
Tue Oct 10 16:59:14 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Users
Tue Oct 10 16:59:14 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Accounts
Tue Oct 10 16:59:14 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Users
Tue Oct 10 16:59:16 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Accounts
Tue Oct 10 16:59:16 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Users
Tue Oct 10 16:59:16 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Accounts
Tue Oct 10 16:59:16 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Users
Tue Oct 10 16:59:16 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Accounts
Tue Oct 10 16:59:16 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Users
Tue Oct 10 16:59:16 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Accounts
Tue Oct 10 16:59:16 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Users
Tue Oct 10 16:59:16 2017 [28708][9ba401f5-7fd5-e018-ddad-53383caa171c][ERROR] Warning: Multiple links found for relationship accounts_users_2 within module Accounts

This is the only one that’s FATAL so would cause a white screen. Check your file permissions for that folder it references.

53383caa171c][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.