My environment: MAMP, php 5.2.6, TCPDF 4.5.017.
No problem when using the printer-friendly version.
When I try to download the pdf version, I get this error: Cannot re-assign $this in /Applications/MAMP/htdocs/mysite/sites/all/modules/print/print_pdf/print_pdf.class_php4.inc on line 22. Commenting this line the problem is solved.
What I can't understand it's: should it take a php4 class even if I'm running a php5 version?
Thanks a lot, your module is great!

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Try to install the PHP5 version of TCPDF next time, and you won't get that problem, the class inclusion depends on the installed version of TCPDF.

As to the reason for the error, it's weird, and I am assigning it to a problem in the PHP implementation for the Mac, until proven otherwise.

João

upupax’s picture

Status: Postponed (maintainer needs more info) » Fixed

ohps.... my distraction... sorry..

Status: Fixed » Closed (fixed)

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

dugh’s picture

I see the same error