Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m having the same issue (still). Any updates on fixing the bug? The shortcodes I use typically involve [ccie] from CodeColorer, and $latex from WordPress itself…

    Here’s an example where it all comes together (or not as of yet):
    https://gerfficient.com/2017/07/10/ibm-to-the-rescue/?print=print

    So, I modified the plugin to simply hide all errors and warnings by inserting error_reporting(0); at the beginning of the pdf-print.php file. I suppose error_reporting(E_ERROR); would also work, because that still enables error messages, but hides all warnings.

    PS: this is merely a quick fix and not a solution to the bug in the long term…

    Hi, I have the same issue as it seems:

    I am using Version 2.0.2 and have PHP 7.2 (hosted on 1&1) when I got this error. I had to downgrade to PHP 7.0 to no longer get the messages (and a properly formatted PDF). The warnings I see in the generated PDF file when using PHP 7.2 are:

    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/mpdf.php</b> on line <b>30649</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/mpdf.php</b> on line <b>30649</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/Tag.php</b> on line <b>1889</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/Tag.php</b> on line <b>1889</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/Tag.php</b> on line <b>1889</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/Tag.php</b> on line <b>1889</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/Tag.php</b> on line <b>2006</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/Tag.php</b> on line <b>2006</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/mpdf.php</b> on line <b>6387</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/Tag.php</b> on line <b>2003</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/mpdf.php</b> on line <b>6387</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/Tag.php</b> on line <b>2003</b><br />
    <br />
    <b>Warning</b>:  A non-numeric value encountered in <b>/xxx/wordpress/wp-content/plugins/pdf-print/mpdf/mpdf.php</b> on line <b>6387</b><br />

    We are also inclined to buy a license for this plugin for our website, but if this bug cannot be fixed by 12/2018 (which is when the 1&1 support for PHP 7.0 expires) then I’d hesitate to do so.

    PS: The print function seems to work fine in PHP 7.2 (no visible warnings at least). So I’d guess the bug is somewhere in the PDF-related code.

    Moved this post here.

    • This reply was modified 6 years, 2 months ago by Muxelmann.
    • This reply was modified 6 years, 2 months ago by Muxelmann.
    • This reply was modified 6 years, 2 months ago by Muxelmann.
Viewing 4 replies - 1 through 4 (of 4 total)