Hi all!
I have a problem with empty invoices when trying to open the "invoice" or "create invoice" icons. This occurred after last update to VM 2.0.20b (joomla 2.5.8 )
It's the same if I try to open invoice from the order detail window. Old orders have their invoice number, but all new orders are without invoice number.
This is urgent!!!!
Hope you can help :)
Maxdeal
Usually the problem here is the use of png images. The TCPDF has problems here. Did you maybe replaced the image of your vendor?
Hi
I'm having the same issue, empty invoices and delivery notes. I get a blank PDF with our shop name at top and a line, the rest is blank.
I have tested in 2.020b and 2.021D with same result.
I have asked the hosting and they told me is not a problem in their side.
We are using ccVAOM for invoices and the PDF's are generated correctly however we like the new "delivery notes" of VM and theres no way to make it work.
Our vendor image is a JPG that we changed in the past yes.
I have tried changing the font at the new invoices tab but nothing.
At 2.021D The print option works fine but shows the text:
{vm:vendorlegalinfo}
Page {vm:pagenum}/{vm:pagecount}
Does VM need an specific server side requiremente we can tell the the hosting? I've had this in 2 different hostings already, actually I never got VM PDF's to work :'(
Regards
Hi,
Tryed to replace the vendor picture. Now it is a jpg. But no differece. Just a blank page with top and bottom line.
Print button is ok, but the invoice number is not generated in this case.
Maxdeal
Quote from: maxdeal on June 13, 2013, 08:12:03 AM
Hi,
Tryed to replace the vendor picture. Now it is a jpg. But no differece. Just a blank page with top and bottom line.
Print button is ok, but the invoice number is not generated in this case.
Maxdeal
Same here, I tried changing it to PNG or even leaving it empty. I even tried with the default washupito image.
I just reinstalled VM2 with version 2.021D and now is working fine, the only difference is that after installing the AIO this time i didn't update the tables.
Also I noticed that creating delivery notes or invoices prompts with a download option to open the PDF or download it, before it directly gave a blank window.
For whatever reason now is working for us.
Regards
Thank you for the reply. I will test this.
:D
2.0.21D
When trying to print delivery notes / invoices
I get the TCPDF error
TCPDF ERROR: [Image] Unable to get image:
This is the payent image the details of which are held in the
Table:- virtuemart_payment_plg_paypal
Field:- payment_name
<span class="vmCartPaymentLogo" ><img align="middle" src="http://localhost/images/stories/virtuemart/payment/paypal_q.jpg" alt="paypal_q" /></span> <span class="vmpayment_name">Credit Card or PayPal</span>
Tried using gif and jpg get the same error
Remove this and invoice is created and prints (obviously!)
Quote from: Hutson on June 15, 2013, 17:21:44 PM
2.0.21D
When trying to print delivery notes / invoices
I get the TCPDF error
TCPDF ERROR: [Image] Unable to get image:
This is the payent image the details of which are held in the
Table:- virtuemart_payment_plg_paypal
Field:- payment_name
<span class="vmCartPaymentLogo" ><img align="middle" src="http://localhost/images/stories/virtuemart/payment/paypal_q.jpg" alt="paypal_q" /></span> <span class="vmpayment_name">Credit Card or PayPal</span>
Tried using gif and jpg get the same error
Remove this and invoice is created and prints (obviously!)
At localhost the invoices and delivery notes didnt work at all for me, in the live site after updating to 2.021D they do.
Regards
Than ks for the reply.
I have 2.0.21d
Invoices worked up until I added the image.
If I remove the image link in the database, all is fine!
Need to get working in localhost before I dare move to live, too risky!
Strange, I cannot reproduce this error.
Hello,
currently use VM 2.0.10
On the live site from the very beginning I have a similar problem.
Click to view the invoice returned message: TCPDF ERROR: [Image] Unable to get image: / images/stories/virtuemart/vendor/resized/termaltrade_90x90.png
Locally I have installed the same page (for testing ....) and shows me the bill fine.
From the beginning I thought that it depends on the host (the rights, property files ..)
Yesterday I looked in the database:
Table: - virtuemart_payment_plg_paypal
Field: - payment_name
I do not use Paypal to payment_name was nothing (empty), so I could not delete:
<span class="vmCartPaymentLogo"> <img align="middle" src="http://localhost/images/stories/virtuemart/payment/paypal_q.jpg" alt="paypal_q" /> </ span> <span class = "vmpayment_name"> Credit Card or PayPal </ span>
Best regards Chico
Milbo
Can you post here the image you are using and I can test that in my configuration.
the image is part of the core, I just used the payzen one.
ok will try that thanks
Ok so i am not really sure why I asked for the image as this was not the problem:-
Found the reason why the error but not what is causing the malformed url
When displaying the image we get the full root on localhost:-
<span class="vmCartPaymentLogo">
<img align="middle" alt="paypal" src="http://localhost/j2vm2/images/stories/virtuemart/payment/paypal.jpg">
</span>
The same for the session data
Looked at the session data and I see this:-
<span class="vmCartPaymentLogo" ><img align="middle" src="http://localhost/j2vm2/images/stories/virtuemart/payment/paypal_q.jpg" alt="paypal_q" /></span>
What gets stored in the payment_pg table is:-
<span class="vmCartPaymentLogo" ><img align="middle" src="http://localhost/images/stories/virtuemart/payment/paypal.jpg" alt="paypal" /></span> <span class="vmpayment_name">Credit Card or PayPal</span>
So the TCPDF cannot find the image.because the full root is not stored.
Why is the url changing between session and database table?
I wonder, what do you mean with session data?
We use for the logo this
$url = JURI::root () . 'images/stories/virtuemart/' . $this->_psType . '/';
So it should be always the same. But maybe you try, I see now you that you are working in a subdirectory. I will check this.
$url = JURI::root (TRUE) . 'images/stories/virtuemart/' . $this->_psType . '/';
I just tested it with a payment logo. works for me. I used it with a subfolder and all that, works. Be aware that images take a llooot memory. An invoice with one logo takes already 40 MB Ram,.. if you have more logos, maybe you need up to 100 or so.
I have stored <span class="vmCartPaymentLogo" ><img align="middle" src="http://localws.stuprecht/VM2014mp/images/stories/virtuemart/payment/payzen.jpg" alt="payzen" /></span> <span class="vmpayment_name">Cash on delivery</span><br />
I dont like that it is stored with all the html, but there was some reason todo it that way
By session data, I mean the data that is stored in the joomla sessino table.
I was not sure if this is the data that is written to the databse for the logo.
Can you tell me which file holds the code that gets the logo data and writes it to the paypal payment plugin table please
What the heck!
On localhost I am still getting the URL for the image stored in the dbase without the full path
Please can you tell me where in the code the image url is stored in the DB and what data it uses.
2.0.21F and 2.0.21D
On localhost the URL for the image stored in the dbase without the full path
Now tested on 2 separate machines and installations of VM and Joomla
Yesterday I decided that this could be me, tried this on a completely separate installation of VM 2.0.21D and Joomla 2.5 using windows 8 and xampp php 5.3.8
The image url is still missing the full path and reverts to localhost/images/stories etc not localhost/serverdirectory/images/stories etc
The payment image gets the full url! so not my installations - please anyone?
I have an installation, which I can access via subdomain, or with subfolder. It works regardless which URL I am using. You have my skype, I think I should take a look.
When you go to your paymentmethod, then the list showing the logos is created by the directory. So maybe you just need to restore it there?
will skype on Monday as I have no idea what you are suggesting :-\
I can still not generate invoice or the delivery note. New orders have the red pluss.
Can not open the old invoices either.
This is a important issue for us that we have to fix.
The invoice is opend but empty, contains just the Vendor name in the top header and page number in the bottom.
Running VM 2.0.22A and joomla 2.5.8
As far as I can see there must be something in the script trying to open/generate the invoice, but this is a wild guess since my knowledge is weak on this part :-)
Does the sample page for the invoice design (in VirtueMart that's the "Shop -> Shop -> Invoices" tab) properly display the page contents (Text "Invoice Header/Footer Sample Page. This page shows how the page header and footer of the VirtueMart invoices will look like.")?
If it does, then the invoice contents have some problematic HTML code for the tcpdf library. If that sample page does not show its contents, then the problematic HTML code is in the header/footer texts.
The PDF is created by the tcpdf library, but it is quite sensitive to incorrect html. So my guess is that either the header/footer or the contents of the invoice contain invalid html that causes the tcpdf library to fail.
Reinhold
Thank you for fast respons!
It is not the same page showing up when I testing the invoice in shop configuration. Here I also get the logo and adress in the header and the page number is on the other side of the page(left) still in the bottom. Seems like this template is not beeing used. Do I have wrong script version of the skript running for the invoice???
All updates have been successful as far as I know.
Hope you can tell me some more from this information :-)
Quote from: Hutson on June 21, 2013, 10:53:51 AM
2.0.21F and 2.0.21D
On localhost the URL for the image stored in the dbase without the full path
Now tested on 2 separate machines and installations of VM and Joomla
Yesterday I decided that this could be me, tried this on a completely separate installation of VM 2.0.21D and Joomla 2.5 using windows 8 and xampp php 5.3.8
The image url is still missing the full path and reverts to localhost/images/stories etc not localhost/serverdirectory/images/stories etc
The payment image gets the full url! so not my installations - please anyone?
Hi, I have the same problem ... do you resolve it?
Where is the code or the table that uses localhost/images/stories wrongly without the serverdirectory?
Thankyou !!!
Hi. Has anyone figured out how to solve this issue? I'm using virtuemart 2.0.24. The invoices are fine in the emails but in the administrator there is just the company name. How can I check what errors are being produced?
Quote from: Fariida on November 06, 2013, 19:06:30 PM
Hi. Has anyone figured out how to solve this issue? I'm using virtuemart 2.0.24. The invoices are fine in the emails but in the administrator there is just the company name. How can I check what errors are being produced?
Actually, nevermind. I have figured out what the problem was. I already had invoices generated so I went to the directory "Your_Safe_Path_Directory" > vmfiles > invoices.
I deleted all the current ones there and generated the PDFs again. Also if you've made custom invoice files in your joomla template check there too. Maybe there is some code that is throwing errors.
Hello,
I use VirtueMart 2.0.26d with Joomla 2.5.17.
The print option works well but the Delivery note and Invoice PDF will not display correctly.
They are almost empty...only vendor logo, Invoice date , Order Number, Order Date , Order Status, Shipment are shown.
What is interesting, some pdf documents are OK, containing all neccessary information.
In Config-Checkout
Default Order Status to create an invoice, Default Order Status to send email to shopper, Default Order Status to send email to vendor -are set to ALL.
/components/com_virtuemart/vmfiles/invoices/ - is empty
I'm looking for someone, who is prof in VM "invoicing"....and could help me to solve this urgent problem.
Please, drop me a PM, so that I can give you access to admin, ftp if neccessary.
Thank you
Do your shipment/payment method names contain HTML code? Typically this kind of error happens when the shipping or payment method name contains invalid HTML. The TCPDF library used by VM to convert the HTML invoice to PDF is VERY picky about correct HTML and will stop processing in many cases where a browser will display the broken HTML just fine.
Thanks for reply.
For checkout I (will) use PayPal Express Checkout Pluginhttp://forum.virtuemart.net/index.php?topic=104184.0 (http://forum.virtuemart.net/index.php?topic=104184.0)
For shipping VM shipping by weight, zip, countries.
I accept your comment about invalid HTML- s, but how is it possible, that once it works, once not? :/ If there exist some broken html-s, they are always there...
By the way, could you tell me, how/or where/in which folder could I find the answer for your question, related to shipment/payment method's (invalid) HTML codes?
Could HTML Link Validator help me?
Thank you.
You can check the HTML code in the HTML view of the invoice.
Another possibility is that the TCPDF library cannot properly handle payment method logos. Do you have any graphics set as logo?
Links:
Download successful
http://www.foodhungary.co.uk/index.php?option=com_virtuemart&view=invoice&layout=deliverynote&format=pdf&tmpl=component&virtuemart_order_id=241&order_number=98c40199&order_pass=p_965ef&create_invoice=1
http://www.foodhungary.co.uk/index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=241&order_number=98c40199&order_pass=p_965ef&create_invoice=1
Download failed
http://www.foodhungary.co.uk/index.php?option=com_virtuemart&view=invoice&layout=deliverynote&format=pdf&tmpl=component&virtuemart_order_id=242&order_number=ff600200&order_pass=p_9303c&create_invoice=1
http://www.foodhungary.co.uk/index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=242&order_number=ff600200&order_pass=p_9303c&create_invoice=1
I don't see any suspecious in case of failed download . . .
Yes
It might be worth playing with this logo thing ....yes, I have https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout.gif (https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout.gif)
That was the problem, definitely - I hope.
But I still don't understand, why was it once ok, once not....
Whatever, you never know when operate with freeware softwares.
Once I downloaded one "OK Invoice" and under the logo I faced the following: "Notice: Trying to get property of non-object in/var/www/clients/client186/web266/web/plugins/vmpayment/paypalexpresscheckoutssc/paypalexpresscheckoutssc.php on line 313"
You are the best :) really thank you for your help.
I was spent a lot of time to explore the reason of this annoying problem.
It has not really something todo with free software. You just used the gif, which is not supported by tcpdf. ahh okey and the reason is maybe, because it is opensource. GIF is patented and not liked in the free software world
Okay Milbo, but beeing a beginner, how could I know that I shouldn't spend plenty of time to find solution for eg. this problem, because gif is just not supported by tcpdf, and is not liked in the FreeWare World... :)
uuh. Hmm, it is a very, very old story. A story of the netscape times, no google insight. It is about 20 years old. But you are right, we should add a warning. Actually if it just would get the thumbnail instead of the orginal gif, then it should work. The Thumbnailer is making always jpg, imho.