Support » Plugin: WooCommerce PDF Invoices » Plugin Not working completely

  • I have installed this plugin in my network site. I tried creating pdf from backend but it shows me blank page.
    While checking debug log I found below piece of error code.

    Stack trace:
    #0 /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php(16211): otl->applyOTL(‘test2’, 255)
    #1 /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php(15104): mPDF->WriteHTML(‘??<table cellpa…’, 4)
    #2 /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php(14970): mPDF->_getHtmlHeight(‘??<table cellpa…’)
    #3 /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-document.php(183): mPDF->SetHTMLHeader(‘??<table cellpa…’)
    #4 /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoice in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/otl.php on line 297
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensed.GSUBGPOStables.dat): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 1264
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensed.GDEFdata.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 1282
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensed.GSUBdata.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 1512
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.DFLT.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 2318
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.KUR .php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 2318
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.SND .php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 2318
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensed.GSUB.arab.URD .php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 2318
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensed.GSUB.nko .DFLT.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 2318
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensed.GPOSdata.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 3447
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GSUBGPOStables.dat): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 1264
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GDEFdata.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 1282
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GSUBdata.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 1512
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.DFLT.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 2318
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.KUR .php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 2318
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.SND .php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 2318
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GSUB.arab.URD .php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 2318
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GSUB.nko .DFLT.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 2318
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_put_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GPOSdata.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php on line 3447
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: include(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GDEFdata.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/otl.php on line 101
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: include(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GDEFdata.php): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/otl.php on line 101
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: include(): Failed opening ‘/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GDEFdata.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/otl.php on line 101
    [24-Aug-2017 11:32:55 Europe/London] PHP Warning: file_get_contents(/var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GSUBGPOStables.dat): failed to open stream: No such file or directory in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/otl.php on line 295
    [24-Aug-2017 11:32:55 Europe/London] PHP Fatal error: Uncaught exception ‘MpdfException’ with message ‘Can’t open file /var/www/team12/team5/test-wps/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GSUBGPOStables.dat’ in /var/www/team12/team5/test-wps/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/otl.php:297

    Can you please tell me what is the issue? I checked with disabling all other plugins. It still shows the same blank page and same stack trace.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    Hi,

    Can you try the latest version? I think that something went wrong downloading the plugin. Maybe you could try to delete complete plugin and download and install again.

    Shwet

    (@sasha1)

    Ok. Let me try that .

    Shwet

    (@sasha1)

    I tried this in fresh wordpress and latest plugin version.
    Let me list my scenarios.
    Simple Site – It works.
    Network Site – It works for the default site.
    For other site it does not create directory of woocommerce-pdf-invoices in wp-content\uploads\sites\site_number .
    If I copy that folder from default than it does work properly.
    If not copied it shows me this type of error.

    
    Fatal error: Uncaught MpdfException: Can't open file D:\Projects\xampp\htdocs\pdf-test/wp-content/uploads/sites/2/woocommerce-pdf-invoices/mpdf/ttfontdata/dejavusanscondensedB.GSUBGPOStables.dat in D:\Projects\xampp\htdocs\pdf-test\wp-content\plugins\woocommerce-pdf-invoices\vendor\mpdf\mpdf\classes\otl.php:297
     Stack trace: #0 D:\Projects\xampp\htdocs\pdf-test\wp-content\plugins\woocommerce-pdf-invoices\vendor\mpdf\mpdf\mpdf.php(16211): otl->applyOTL('Shwet', 255) 
    #1 D:\Projects\xampp\htdocs\pdf-test\wp-content\plugins\woocommerce-pdf-invoices\vendor\mpdf\mpdf\mpdf.php(15104): mPDF->WriteHTML(' <table cellpad...', 4) 
    #2 D:\Projects\xampp\htdocs\pdf-test\wp-content\plugins\woocommerce-pdf-invoices\vendor\mpdf\mpdf\mpdf.php(14970): mPDF->_getHtmlHeight('\r\n<table cellpa...') #3 D:\Projects\xampp\htdocs\pdf-test\wp-content\plugins\woocommerce-pdf-invoices\includes\abstracts\abstract-document.php(183): mPDF->SetHTMLHeader('\r\n<table cellpa...') 
    #4 D:\Projects\xampp\htdocs\pdf-test\wp-content\plugins\woocommerce-pdf-invoices in D:\Projects\xampp\htdocs\pdf-test\wp-content\plugins\woocommerce-pdf-invoices\vendor\mpdf\mpdf\classes\otl.php on line 297
    

    There is no permission issue as well. Otherwise it would have not created folder for default site.

    • This reply was modified 10 months ago by  Shwet.
    Shwet

    (@sasha1)

    Can you please reply on this asap?
    I am stuck in situation where my store is in production and I can’t create invoices.

    Plugin Author Bas Elbers

    (@baaaaas)

    Hi,

    Unfortunately we did not find the time to test our plugin against multisite configurations. Therefore I’ve created an Issue where you can track development.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin Not working completely’ is closed to new replies.