Menu

#1027 TCPDF_STATIC::serializeTCPDFtagParameters() appears undefined in version 6.2.6

v1.0_(example)
closed
4
2015-02-11
2015-02-10
No

Hi. I have some code that creates content from HTML. I was previously using:

Version: 6.0.075
Release date: 2014-05-05
PHP Version 5.5.9-1ubuntu4.5
Build Linux HOST 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 

...and this morning I upgraded TCPDF to...

Version: 6.2.6
Release date: 2015-01-28
PHP Version 5.5.9-1ubuntu4.5
Build Linux HOST 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 

I am now experiencing problems when trying to invoke the TCPDF_STATIC::serializeTCPDFtagParameters() method. The error message says it's undefined but it's definitely there!!

This is what the successful output looks like on old version 6.0.075

I have attached a script which demonstrates the problem. This script works fine with 6.0.075 but it fails using 6.2.6 with the error message:

Fatal error: Call to undefined method TCPDF_STATIC::serializeTCPDFtagParameters() in /home/user/www/hidden/tcpdftest.php on line 31

I'm sorry for my ugly PHP. I hope you have some idea what's causing this. Please let me know if I can do anything else to help.

Thanks! :)

1 Attachments

Discussion

  • pyShowRename

    pyShowRename - 2015-02-10

    Update #1

    Using
    $pdf->serializeTCPDFtagParameters($table_open_params) instead of...
    TCPDF_STATIC::serializeTCPDFtagParameters($table_open_params);

    Seems to work, so I guess the method really is there.

    Why is the TCPDF_STATIC instance failing in that case?

     
  • pyShowRename

    pyShowRename - 2015-02-10

    Update #2

    tcpdf/include/tcpdf_static.php no longer includes the serializeTCPDFtagParameters function for some reason? How else would one reference it statically?

     
  • Nicola Asuni

    Nicola Asuni - 2015-02-10

    Please check the example n. 49 on how to use the serializeTCPDFtagParameters() method:

    http://www.tcpdf.org/examples/example_049.phps

     
  • Nicola Asuni

    Nicola Asuni - 2015-02-10
    • status: open --> closed
     
  • pyShowRename

    pyShowRename - 2015-02-10

    I see that now, thank you Nicola.

     

Log in to post a comment.