I got these error messages after I enabled pdf with dompdf 0.5.1. I followed the installation instructions to the letter and triple-checked.

* warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/nfsn/content/flaglerama:/nfsn/apps/php5/lib/php:/nfsn/apps/php/lib/php:/nfsn/content/content/nfsn) in /nfsn/content/flaglerama/public/modules/print/dompdf/include/image_cache.cls.php on line 105.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /nfsn/content/flaglerama/public/modules/print/dompdf/include/abstract_renderer.cls.php on line 668.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /nfsn/content/flaglerama/public/modules/print/dompdf/include/abstract_renderer.cls.php on line 674.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /nfsn/content/flaglerama/public/modules/print/dompdf/include/abstract_renderer.cls.php on line 674.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /nfsn/content/flaglerama/public/modules/print/dompdf/include/abstract_renderer.cls.php on line 668.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /nfsn/content/flaglerama/public/modules/print/dompdf/include/abstract_renderer.cls.php on line 668.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /nfsn/content/flaglerama/public/modules/print/dompdf/include/abstract_renderer.cls.php on line 674.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /nfsn/content/flaglerama/public/modules/print/dompdf/include/abstract_renderer.cls.php on line 674.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /nfsn/content/flaglerama/public/modules/print/dompdf/include/abstract_renderer.cls.php on line 668.
* warning: unlink() [function.unlink]: Unable to access in /nfsn/content/flaglerama/public/modules/print/dompdf/include/image_cache.cls.php on line 153.

My host is NearlyFreeSpeech; I'm using them because they're cheap but I've been having unrelated problems so I'm going to switch soon. They have PHP5 in safe_mode, could that cause these errors?

Comments

jcnventura’s picture

Status: Active » Fixed

The array_map warnings are a know error in the dompdf tool.

The first and last warning are new to me and may indeed be related to the safe mode of your host. I don't know the image_cache class well, but it seems to be trying to create a file in /tmp and then delete it.

João

Anonymous’s picture

Status: Fixed » Closed (fixed)

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