<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Unexpected server response. PDF.js on PHP 8.x

Replies: 2


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 hours, 57 minutes ago by alainmelsens.
  • This topic was modified 2 hours, 56 minutes ago by alainmelsens.
  • This topic was modified 2 hours, 52 minutes ago by alainmelsens.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer