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.
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…
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
@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
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.
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.
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