News:

Support the VirtueMart project and become a member

Main Menu

Empty invoices

Started by maxdeal, June 11, 2013, 09:11:32 AM

Previous topic - Next topic

AH

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?

Regards
A

Joomla 3.10.11
php 8.0

Milbo

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 . '/';
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

AH

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
Regards
A

Joomla 3.10.11
php 8.0

AH

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.
Regards
A

Joomla 3.10.11
php 8.0

AH

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?
Regards
A

Joomla 3.10.11
php 8.0

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

#22
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?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

AH

will skype on Monday as I have no idea what you are suggesting  :-\
Regards
A

Joomla 3.10.11
php 8.0

maxdeal

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 :-)

reinhold

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

maxdeal

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 :-) 

canalejas

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 !!!
Xavier Hoyos

Fariida

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?

Fariida

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.