Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Trying to use a hypehnation tex file with Views PDf, I get the following fatal arror (& WSOD):
PHP Fatal error: Call to undefined method PdfTemplate::getHyphenPatternsFromTEX()
The offending code is at line 428 of views_pdf_template.php:
$hyphen_patterns = $this->getHyphenPatternsFromTEX($patternFile);
A little research found this: http://sourceforge.net/p/tcpdf/bugs/782/
It appears TCPDF has recently changed the way to call the method getHyphenPatternsFromTEX(). I will attach a patch to update the method call.
H.
Comment | File | Size | Author |
---|---|---|---|
#7 | call-to-undefined-method-1999562-7.patch | 817 bytes | killua99 |
#1 | fixed_call_to_TCPDF_method_getHyphenPatternsFromTEX-1999562-1.patch | 625 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedAttach patch.
Comment #2
Simon Georges CreditAttribution: Simon Georges commentedWe would then be forced to up the requirements to TCPDF version 6.0.001 or greater.
This bugs me a little, since a lot of current Views PDF users are using TCPDF version 5.
Maybe we should detect the version in the code to adapt the function call?
Comment #3
killua99 CreditAttribution: killua99 commentedExist a patch to handle this issues and others. Please see #2032189: Multiple issue fixing in a single patch and review others issues patch.
This is RTBC, and ready to apply.
Comment #4
Simon Georges CreditAttribution: Simon Georges commentedI'd still like to address the concerns of the comment in #2.
Comment #5
killua99 CreditAttribution: killua99 commentedFor the next "stable" you can say the version 6 > it's required. Or do a patch to handle the diff. We can think about it.
Comment #6
killua99 CreditAttribution: killua99 commentedChange status issue filter option
Comment #7
killua99 CreditAttribution: killua99 commentedThis could be the solution. I tested and seens like works.
Comment #8
killua99 CreditAttribution: killua99 commentedAnd directly committed reopen in case.