Hi

I have the PHP version 5.0.3 and the following error appears in the log when I generate the pdf using the dompdf library.

PHP Fatal error: Call to undefined function spl_autoload_register() in /srv/www/htdocs/webs/ivoa/sites/all/modules/print/print_pdf/print_pdf.pages.inc on line 124, referer: http://192.168.120.23/?q=es/node/85

I look into the php documentation and the function spl_autoload_register() is defined in version 5.1.2.
So, I don't want to update PHP for the moment, and I want to know in which version of that module you started to use that function.
Another solution would be define that function in the code.

Thanks

Comments

jcnventura’s picture

Status: Active » Fixed

That function call is not strictly necessary, but it is helpful in some configurations which can't register the DOMPDF autoload class.

I've added a check around the spl_autoload_register() so that it only tries to use it when it exists. I've committed this patch to CVS.

João

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.