Hi, has anyone else had this issue. Upgraded to PHP 8.1 and now my “Print to PDF” action is not working. I get a 500 error on the following:
/index.php?entryPoint=formLetter
Regards,
Chris.
Hi, has anyone else had this issue. Upgraded to PHP 8.1 and now my “Print to PDF” action is not working. I get a 500 error on the following:
/index.php?entryPoint=formLetter
Regards,
Chris.
Hi @cgwhite
Please check the server and SuiteCRM logs to pinpoint the exact error. It’s possible some PDF-related files are using deprecated functions or have issues with PHP 8.1’s stricter typing. I’d recommend running a Quick Repair and Rebuild from the Admin panel, clearing the cache, and ensuring proper file permissions. If the issue still occurs, consider either downgrading to PHP 7.4 or upgrading SuiteCRM to a version that’s fully compatible with PHP 8.1. Let me know how it goes.
I am using the latest version of CRM. It works fine with php 7.4 it is only when I change to 8.1 that the error occurs.
Do you have same issue with the PHP8.2?
Thanks for the update @cgwhite . Since it works with PHP 7.4 but not 8.1, it’s likely a compatibility issue—possibly in the PDF generation files or libraries that aren’t fully updated for PHP 8.1.
I’d suggest enabling full error reporting and checking the suitecrm.log
and php_error.log
right after the error occurs. That should give us more clues.
If you can share the specific error message, I’ll be happy to take a closer look.
Urvi, sorry to have taken so long to get back to you… Busy! But here is the Debug Log file. I deleted the main one so as to just capture what is going on. I then went to an “Applicant” (Client) and used the “Actions” dropdown to “Print as PDF” on a pdf template that works in 7.4 but not 8.1.
If you can see what is going on it would be great. I get a 500 error when trying to run it.
Regards, Chris.
Be better if I attached the log file
suitecrm (2).zip (59.2 KB)
There doesn’t seem to be a FATAL error in your log - so far so good.
If it’s a 500 error, could you check your PHP / web server log file? Maybe there are some more obvious hints inside.