News:

Support the VirtueMart project and become a member

Main Menu

Error Invoice PDF.

Started by MyDesigner, August 27, 2023, 12:20:43 PM

Previous topic - Next topic

MyDesigner

Hi, I have Joomla 3 and I have upgraded Virtuemart to 4.2.0 10905 version.
I have an error when create a invoice in the order, error is vmError: getInvoicePDF Cant create pdf, no entry .
How resolve this problem?
Thanks for your help.

GJC Web Design

Have u removed/ have no - over-rides to test?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MyDesigner

I don't have overrides. Anyone that know another solution? Thanks.

MyDesigner


jenkinhill

I have VM4.2.2 (available in membership downloads) and have no issues creating invoices.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

StefanSTS

Does your system generate invoice numbers for orders after they get confirmed?
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

MyDesigner

Quote from: StefanSTS on September 04, 2023, 10:23:16 AM
Does your system generate invoice numbers for orders after they get confirmed?

No... only if I clic button on order.

MyDesigner

#7
Quote from: jenkinhill on September 02, 2023, 17:34:21 PM
I have VM4.2.2 (available in membership downloads) and have no issues creating invoices.

I buy a membership and upgrade Virtuemart but problem not solved.

rednaxela

I have the same issue. The invoice number is not generated, and therefore invoice generation fails. I removed all plugins, themes, and overrides but no luck.

rednaxela

From Max Milbers via support ticket.

I think I found the problem. A fast solution, open the invoice model at /administrator/components/com_virtuemart/models/inovice.php around line 162, search for

function getExistingIfUnlockedCreateNewInvoiceNumber($orderDetails, &$invoiceNumber, $force_create_invoice = 0){

and just change the last 0 to null
function getExistingIfUnlockedCreateNewInvoiceNumber($orderDetails, &$invoiceNumber, $force_create_invoice = null){