• Resolved alainmelsens

    (@alainmelsens)


    Hello,

    After filling in a Forminator form, since I switched from PHP 7.4.33 to PHP 8.2.1, I get an Unexpected server response. PDF.js v2.6.347 (build: 3be9c65f) error and no PDF file is generated. See screencapture: https://ibb.co/ZVXph4f
    With PHP 7.4.33 and the PHP 7 versions before it worked without problems. It is identically the same website and all other functions work as before. I can switch from PHP 7 to PHP 8 with the same website. I get the same problems on all existing PHP 8. x versions.
    What could be the cause of the PDF viewer not working now?
    I am working with the latest WordPress version and all Plugins are updated to the latest version. I am using an E2PDF with paid licence. I’m working on Windows Servers with IIS version 10.
    I am currently testing on a localhost environment so users are not disturbed. Since PHP 7.4.x is no longer further supported, it is necessary to switch to PHP 8.x soon. But given the current problem, I cannot switch completely.
    Thanks in advance for any useful hints and/or solutions.

    • This topic was modified 2 years, 1 month ago by alainmelsens.
    • This topic was modified 2 years, 1 month ago by alainmelsens.
    • This topic was modified 2 years, 1 month ago by alainmelsens.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author E2Pdf

    (@oleksandrz)

    Hi,

    Are you able to check your website error.log for Fatal Errors as usually it must be logged there?

    It can be caused by some missing PHP extension or by some function incompatibility.

    P.S. E2Pdf was successfully tested with PHP 8.1 but not yet with 8.2.

    • This reply was modified 2 years, 1 month ago by E2Pdf.
    Thread Starter alainmelsens

    (@alainmelsens)

    Hi,

    Thanks to your reports via your private support departement that apparently PHP libraries or PHP extensions were out of order, I investigated and it was correct.
    I might not have paid enough attention when I copied and pasted an ini file from PHP 7.x to PHP 8.x. In it were old and therefore wrong assignments that had caused these problems.
    Now I have properly compared and improved all PHP extensions where necessary and the problems are solved.
    Problems are solved now. The pdf file is now properly constructed and displayed without any error message.

    Thank you very much for your fast support. ??

    • This reply was modified 2 years, 1 month ago by alainmelsens.
    • This reply was modified 2 years, 1 month ago by alainmelsens.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unexpected server response. PDF.js on PHP 8.x’ is closed to new replies.