commenting out the code brings another error which might be why this is happening in the first place: Warning: sys_get_temp_dir() has been disabled for security reasons on the following line: def("DOMPDF_TEMP_DIR", sys_get_temp_dir()); i've just commented that and away we go... cheers!