• Hi,

    I am using the latest versions of WordPress, Woocommerce, and PDF Invoices,
    unfortunately since the recent updates I have been getting PHP warnings in my errorlog.
    PDFs are created and sent, but these warnings are filling up my errorlog.
    Love the plugin, very clean, friendly and easy to use!

    Full list of warnings generated on a single purchase:

    [10-Jan-2017 14:32:38 UTC] PHP Warning:  A non-numeric value encountered in /home/.../wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php on line 501
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1302
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1307
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'ID' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    [10-Jan-2017 14:32:40 UTC] PHP Warning:  Illegal string offset 'LANG' in /home/.../wp-content/plugins/woocommerce-pdf-invoices/lib/mpdf/classes/cssmgr.php on line 1355
    
Viewing 1 replies (of 1 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    These are mPDF warnings, because mPDF’s stable release isn’t compatible with PHP 7.1 as stated here.

    I have two choices.
    1. Use the development branch and probably get a lot more trouble, because the branch requires gd module and PHP 5.6+.
    2. Stick to version mPDF 6.x and wait until the development branch has a stable release and hoping that WordPress doesn’t support PHP version 5.5 and older any more.

    Created an issue and am following the development of mPDF 7.x very closely.

    • This reply was modified 8 years, 2 months ago by Bas Elbers.
    • This reply was modified 8 years, 2 months ago by Bas Elbers.
Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warning “Illegal string offset”’ is closed to new replies.