VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: alxcre on February 04, 2019, 10:33:28 AM

Title: Blank invoices with one of the payment methods
Post by: alxcre on February 04, 2019, 10:33:28 AM
Hi,

I have notice that since the last update of VM and Joomla some invoices are blank. The blank invoices are created with the payment method "Bank transfer" (VM payment standard) and is showing the header (logo, date, order number, invoice number, etc) but the lines with the items detail and total are lost. With Paypal method the invoices are correct. If I click in the printer icon the invoice is showed with all the data, so I supposse that is a problem with the PDF creation.
My VM version is 3.4.2
Joomla version is 3.9.1
Thanks for your help and best regards,
Title: Re: Blank invoices with
Post by: AH on February 04, 2019, 11:53:19 AM
Have you got an image for the payment method - it may be that is the problem
Title: Re: Blank invoices with
Post by: alxcre on February 05, 2019, 10:03:31 AM
Hi AH,

Thanks for your response. I have been checking the payment method and the only option that I see related with images is the option "Logos". Here I have three options: "use default", "index.html" and "use all of them" but none is working and I can not let this field blank.

Best regards,
Title: Re: Blank invoices with one of the payment methods
Post by: Jörgen on February 05, 2019, 10:53:39 AM
You should upload an appropriate image (logo) in:

/images/virtuemart/payment

Jörgen @ Kreativ Fotografi
Title: Re: Blank invoices with one of the payment methods
Post by: AH on February 05, 2019, 12:29:05 PM
I mean - that you should try without images in your payment method

But looks like that is already set to be none

Title: Re: Blank invoices with one of the payment methods
Post by: alxcre on February 06, 2019, 12:25:07 PM
Hi all,

Thanks for your help. I did what Jörgen told me, I upload the logo to the path and I selected it in the payment method, field logo , but the problem persist.

Best regards,
Title: Re: Blank invoices with one of the payment methods
Post by: Jörgen on February 06, 2019, 13:21:06 PM
What is it with the Label "Encrypt that" ? Are You really using Standard Payment.

Jörgen @ Kreativ Fotografi
Title: Re: Blank invoices with one of the payment methods
Post by: alxcre on February 07, 2019, 11:12:00 AM
Hi Jörgen,

Yes, i have checked again and is standard, you can see it in the top right corner of the image.

Thanks for your help and regads,
Title: Re: Blank invoices with one of the payment methods
Post by: Jörgen on February 07, 2019, 12:42:12 PM
I can not see any "encrypt that" in my standard payment. Are You using some kind of custom template ?
Maybe there is a issue with Your language file, try to switch to english in back end and see if it changes.
Maybe load the VM update via FTP once again.

Jörgen @ Kreativ Fotografi
Title: Re: Blank invoices with one of the payment methods
Post by: alxcre on February 08, 2019, 14:40:22 PM
Hi Jörgen,

I am using custom template in fron, no in back, invoices or virtuemart.
I tried changing the language to english but the problem persist.
I have upload the las VM version again and it´s not the solution. I will try via FTP and I will tell you if it works.

At the moment I am changing the plugin to "Paypal", printing the invoices, and changing again to "Standard". It is the only way to make it works.

Thanks and regards,
Title: Re: Blank invoices with one of the payment methods
Post by: Studio 42 on February 09, 2019, 22:53:19 PM
Try to temp switch to protostar template and do a test.
Title: Re: Blank invoices with one of the payment methods
Post by: alxcre on February 13, 2019, 16:09:17 PM
Hi,

After change to protostar template the problem persist.
Anyone has more ideas?
Regards,
Title: Re: Blank invoices with one of the payment methods
Post by: Studio 42 on February 13, 2019, 17:51:49 PM
You have to enable PHP debug and check your error.log file to see the error.
Title: Re: Blank invoices with one of the payment methods
Post by: alxcre on February 27, 2019, 10:59:47 AM
Hi,

I did all you told me:
- Add image to payment method.
- I have changed to custom templates in front.
- I have chaned the language to enghish.
- I have activated the debug mode.
And finally this is the file:

[27-Feb-2019 09:32:31 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:32:31 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:32:31 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:32:31 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:32:31 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:32:56 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:32:56 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:32:56 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:32:56 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:32:56 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:33:21 UTC] PHP Warning:  Illegal string offset 'url' in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 18814
[27-Feb-2019 09:40:41 UTC] PHP Notice:  Undefined index: rows in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16923
[27-Feb-2019 09:40:41 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:40:41 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:40:41 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:40:41 UTC] PHP Notice:  Undefined index: thead in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16505
[27-Feb-2019 09:40:41 UTC] PHP Notice:  Undefined index: rows in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16923
[27-Feb-2019 09:40:41 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:40:41 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:40:41 UTC] PHP Notice:  Undefined index: thead in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16505
[27-Feb-2019 09:40:41 UTC] PHP Notice:  Undefined offset: 639 in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 18657
[27-Feb-2019 09:41:30 UTC] PHP Notice:  Undefined index: rows in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16923
[27-Feb-2019 09:41:30 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:41:30 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:41:30 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:41:30 UTC] PHP Notice:  Undefined index: thead in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16505
[27-Feb-2019 09:41:30 UTC] PHP Notice:  Undefined index: rows in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16923
[27-Feb-2019 09:41:30 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:41:30 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:41:30 UTC] PHP Notice:  Undefined index: thead in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16505
[27-Feb-2019 09:41:30 UTC] PHP Notice:  Undefined offset: 688 in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 18657
[27-Feb-2019 09:42:39 UTC] PHP Notice:  Undefined index: rows in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16923
[27-Feb-2019 09:42:39 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:42:39 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:42:39 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:42:39 UTC] PHP Notice:  Undefined index: thead in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16505
[27-Feb-2019 09:42:39 UTC] PHP Notice:  Undefined index: rows in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16923
[27-Feb-2019 09:42:39 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:42:39 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:42:39 UTC] PHP Notice:  Undefined index: thead in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16505
[27-Feb-2019 09:42:39 UTC] PHP Notice:  Undefined offset: 677 in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 18657
[27-Feb-2019 09:42:48 UTC] PHP Notice:  Undefined index: rows in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16923
[27-Feb-2019 09:42:48 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:42:48 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:42:48 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:42:48 UTC] PHP Notice:  Undefined index: thead in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16505
[27-Feb-2019 09:42:48 UTC] PHP Notice:  Undefined index: rows in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16923
[27-Feb-2019 09:42:48 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:42:48 UTC] PHP Warning:  array_push() expects parameter 1 to be array, null given in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16925
[27-Feb-2019 09:42:48 UTC] PHP Notice:  Undefined index: thead in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 16505
[27-Feb-2019 09:42:48 UTC] PHP Notice:  Undefined offset: 644 in /home/ejemploscalamars/public_html/nsm/libraries/vendor/tecnickcom/tcpdf/tcpdf.php on line 18657

Can someone tell me what seems to be the problem?
Thanks in advance.

Title: Re: Blank invoices with one of the payment methods
Post by: GJC Web Design on February 27, 2019, 13:44:36 PM
These are only notices and warnings .. not ideal but will not stop the creation of the pdf