J-B Posted June 22, 2023 Share Posted June 22, 2023 Hello, i updated from WHMCS 8.4.1 to WHMCS 8.7.3. Now I cant download or create invoices. I get this error: [WHMCS Application] ERROR: TypeError: Unsupported operand types: string * float in /html/whmcs/vendor/tecnickcom/tcpdf/tcpdf.php:6995 Stack trace: #0 /html/whmcs/templates/templv87/invoicepdfheader.tpl(12): TCPDF->Image() #1 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/PDF.php(0): unknown() #2 /html/whmcs/vendor/tecnickcom/tcpdf/tcpdf.php(3560): WHMCS\PDF->Header() #3 /html/whmcs/vendor/tecnickcom/tcpdf/tcpdf.php(3227): TCPDF->setHeader() #4 /html/whmcs/vendor/tecnickcom/tcpdf/tcpdf.php(3139): TCPDF->startPage() #5 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Invoice.php(0): TCPDF->AddPage() #6 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Invoice.php(0): WHMCS\Invoice->pdfAddPage() #7 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Mail/Entity/Invoice.php(0): WHMCS\Invoice->pdfInvoicePage() #8 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Mail/Emailer.php(0): WHMCS\Mail\Entity\Invoice->getEntitySpecificMergeData() #9 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Mail/Emailer.php(0): WHMCS\Mail\Emailer->prepare() #10 /html/whmcs/includes/functions.php(0): WHMCS\Mail\Emailer->send() #11 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Cron/Task/InvoiceReminders.php(0): sendMessage() #12 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Cron/Task/InvoiceReminders.php(0): WHMCS\Cron\Task\InvoiceReminders->sendOverdueInvoiceReminders() #13 [internal function]: WHMCS\Cron\Task\InvoiceReminders->__invoke() #14 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): call_user_func_array() #15 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Scheduling\Task\AbstractTask->execute() #16 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Scheduling\Task\AbstractTask->run() #17 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Cron\Console\Command\AbstractCronCommand->executeCollection() #18 /html/whmcs/vendor/symfony/console/Command/Command.php(298): WHMCS\Cron\Console\Command\AbstractCronCommand->execute() #19 /html/whmcs/vendor/symfony/console/Application.php(1028): Symfony\Component\Console\Command\Command->run() #20 /html/whmcs/vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand() #21 /html/whmcs/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun() #22 /html/whmcs/crons/cron.php(0): Symfony\Component\Console\Application->run() #23 {main} {"exception":"[object] (TypeError(code: 0): Unsupported operand types: string * float at /html/whmcs/vendor/tecnickcom/tcpdf/tcpdf.php:6995)"} [] TypeError: Unsupported operand types: string * float in /html/whmcs/vendor/tecnickcom/tcpdf/tcpdf.php:6995 #0 /html/whmcs/templates/templv87/invoicepdfheader.tpl(12): TCPDF->Image() #1 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/PDF.php(0): unknown() #2 /html/whmcs/vendor/tecnickcom/tcpdf/tcpdf.php(3560): WHMCS\PDF->Header() #3 /html/whmcs/vendor/tecnickcom/tcpdf/tcpdf.php(3227): TCPDF->setHeader() #4 /html/whmcs/vendor/tecnickcom/tcpdf/tcpdf.php(3139): TCPDF->startPage() #5 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Invoice.php(0): TCPDF->AddPage() #6 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Invoice.php(0): WHMCS\Invoice->pdfAddPage() #7 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Mail/Entity/Invoice.php(0): WHMCS\Invoice->pdfInvoicePage() #8 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Mail/Emailer.php(0): WHMCS\Mail\Entity\Invoice->getEntitySpecificMergeData() #9 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Mail/Emailer.php(0): WHMCS\Mail\Emailer->prepare() #10 /html/whmcs/includes/functions.php(0): WHMCS\Mail\Emailer->send() #11 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Cron/Task/InvoiceReminders.php(0): sendMessage() #12 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Cron/Task/InvoiceReminders.php(0): WHMCS\Cron\Task\InvoiceReminders->sendOverdueInvoiceReminders() #13 [internal function]: WHMCS\Cron\Task\InvoiceReminders->__invoke() #14 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): call_user_func_array() #15 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Scheduling\Task\AbstractTask->execute() #16 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Scheduling\Task\AbstractTask->run() #17 /html/whmcs/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Cron\Console\Command\AbstractCronCommand->executeCollection() #18 /html/whmcs/vendor/symfony/console/Command/Command.php(298): WHMCS\Cron\Console\Command\AbstractCronCommand->execute() #19 /html/whmcs/vendor/symfony/console/Application.php(1028): Symfony\Component\Console\Command\Command->run() #20 /html/whmcs/vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand() #21 /html/whmcs/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun() #22 /html/whmcs/crons/cron.php(0): Symfony\Component\Console\Application->run() #23 {main} Is it a Bug? 0 Quote Link to comment Share on other sites More sharing options...
J-B Posted June 22, 2023 Author Share Posted June 22, 2023 Find the error. $pdf->Image(ROOTDIR . '/assets/img/' . $logoFilename, 35,10, 65,0,'','','T',false,'',$align); This was my mistake. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.