Forum


Replies: 1   Views: 53
Using __autoload() in php 8 with phpdocx-corporate-5.5

Posted by davelavinsky  · 07-08-2025 - 07:55

One of our old sites is using phpdocx-corporate-5.5 - the server recently got upgraded to Ubuntu 22.04 with PHP 8.3.

Now for DOCX conversion we're getting an error :

"Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in phpdocx-corporate-5.5/lib/pdf/dompdf_config.inc.php on line 431"

How do I fix this without upgrading the license ph PHPDOCX ?

Posted by admin  · 07-08-2025 - 08:28

Hello,

phpdocx 5.5 (released more than nine years ago) is not compatible with PHP 8.3.

Please upgrade your license to use phpdocx with PHP 8.3.
phpdocx 16 is compatible with all PHP versions from PHP 5.6 to PHP 8.4.

Please note that since phpdocx 4, new releases have introduced new features, methods, and options, while maintaining API compatibility with older versions (though minor adjustments may be required). Upgrading to the latest release is straightforward.

Regards.