PHP Fatal error: Access level to W2PDF::$header_logo must be public (as in class TCPDF) in /sites/all/modules/webform2pdf/webform2pdf.class.inc on line 11

The error comes up when trying to generate a PDF on the results page of a Webform. Of course this results in a WSOD. This error only comes up on our live site, but on our localhost it is running fine.

Any ideas what could be causing this? Thanks.

Comments

shafter’s picture

Can you please tell, which PHP, and TCPD version do you have on live site? Is it differs from the ones on localhost? We couldn't reproduce this behavior.

peps’s picture

Nevermind my post, it was on our end. The TCPDF uploaded was a wrong version. Sorry abou that.

shafter’s picture

Status: Active » Closed (works as designed)
pixelsmooth’s picture

How were you able to resolve this? Where did you get the right TCPDF file?

grapes777’s picture

in the webform2pdf.class.inc changing all instances of "protected" to "public" worked for me...