Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.10
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 May 2010 at 09:42 UTC
Updated:
28 Jul 2010 at 11:10 UTC
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
Comment #1
jcnventuraThat 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