Jump to content

whmcs 8.7 - BX invoicepdf integration errors


evcz

Recommended Posts

Hi

reporting an error related to this code:

 

if(file_exists(ROOTDIR . '/modules/addons/BillingExtension/core/autoload.php'))
{
    require_once(ROOTDIR . '/modules/addons/BillingExtension/core/autoload.php');
    $hook = new BillingExtension\BillingExtension_Admin\Hook;
    $hook = $hook->Integration($tplvars, 'pdf');
    foreach($hook as $k=>$v) $$k = $v;
}

when put in invoicepdf.tpl

 

this is the error stack:

 

Error: Unsupported operand types in /var/www/vhosts/contoso.com/public_html/vendor/tecnickcom/tcpdf/tcpdf.php:8843
Stack trace:
#0 /var/www/vhosts/contoso.com/public_html/vendor/tecnickcom/tcpdf/tcpdf.php(9466): TCPDF->_putfonts()
#1 /var/www/vhosts/contoso.com/public_html/vendor/tecnickcom/tcpdf/tcpdf.php(9983): TCPDF->_putresources()
#2 /var/www/vhosts/contoso.com/public_html/vendor/tecnickcom/tcpdf/tcpdf.php(3005): TCPDF->_enddoc()
#3 /var/www/vhosts/contoso.com/public_html/vendor/tecnickcom/tcpdf/tcpdf.php(7574): TCPDF->Close()
#4 /var/www/vhosts/contoso.com/public_html/vendor/whmcs/whmcs-foundation/lib/Invoice.php(0): TCPDF->Output()
#5 /var/www/vhosts/contoso.com/public_html/includes/invoicefunctions.php(0): WHMCS\Invoice->pdfOutput()
#6 /var/www/vhosts/contoso.com/public_html/dl.php(0): pdfInvoice()
#7 /var/www/vhosts/contoso.com/public_html/dl.php(0): dlActionInvoice()
#8 {main}

 

started happening after upgrade to 8.7, is anybody else having issues with the BX integration in invoicepdf after 8.7 upgrade?

 

kind regards

Link to comment
Share on other sites

  • 7 months later...

following up as this is still happening with latest BX extension (2.2.192)

php error log from a whmcs 8.7.3-release.1 on php8:

 

AH01071: Got error 'PHP message: [WHMCS Application] ERROR: TypeError: html_entity_decode(): Argument #1 ($string) must be of type string, array given in /var/www/vhosts/contoso.com/public_html/modules/addons/BillingExtension/core/BillingExtension_Admin/Hook.php:3691 Stack trace: #0 /var/www/vhosts/contoso.com/public_html/modules/addons/BillingExtension/core/BillingExtension_Admin/Hook.php(3691): html_entity_decode() #1 [internal function]: BillingExtension\\BillingExtension_Admin\\Hook->IntegrationPDFEncoding() #2 /var/www/vhosts/contoso.com/public_html/modules/addons/BillingExtension/core/BillingExtension_Admin/Hook.php(3668): array_map() #3 /var/www/vhosts/contoso.com/public_html/templates/lagom2/core/pages/invoicepdf/contoso/invoicepdf.tpl(10): BillingExtension\\BillingExtension_Admin\\Hook->Integration() #4 /var/www/vhosts/contoso.com/public_html/templates/lagom2/invoicepdf.tpl(16): require('...') #5 /var/www/vhosts/contoso.com/public_html/vendor/whmcs/whmcs-foundation/lib/Invoice.php(0): unknown() #6 /var/www/vhosts/contoso.com/public_html/vendor/whmc...', referer: https://www.contoso.com/admin/invoices.php?action=edit&id=42

 

Edited by evcz
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated