VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: ukfish1 on May 07, 2019, 20:17:25 pm

Title: TCPDF error
Post by: ukfish1 on May 07, 2019, 20:17:25 pm
Hi

ref: www.greatbakes.co.uk

VM 3.0.9
Joomla 3.9.5

we are seeing this error when we try to print an invoice for some orders:

TCPDF ERROR: [Image] Unable to get the size of the image: https://www.greatbakes.co.uk/images/stories/virtuemart/shipment/

This only seems to happen when customers select next day delivery option. We can create the invoice for all orders that select the  free standard delivery option.

The other problem we have is that for the orders where next day delivery is chosen, we do not receive email notification that the an order has been placed. We do receive notifications for all orders where standard delivery is selected.

I don't recall having thsi problem prior to upgrading the Joomla core.

Cheers, paul
Title: Re: TCPDF error
Post by: GJC Web Design on May 07, 2019, 22:16:14 pm
it is usually a problem with the image/logo of the shipping method

Is there a logo with next day delivery option ? If so use a gif, not a png .. see if that solves it
Title: Re: TCPDF error
Post by: ukfish1 on May 13, 2019, 09:11:28 am
We have the following logo in that folder. Does it have to be a gif?

images/stories/virtuemart/shipment/braintree-logo.jpg

This has never been a problem before until we upgraded the core joomla software to 3.9.5 and there is not a problem with orders where standard delivery is selected, only with next day delivery.

Any other ideas would be appreciated.#

Paul

Title: Re: TCPDF error
Post by: GJC Web Design on May 13, 2019, 12:15:32 pm
gif or jpg

Quote
there is not a problem with orders where standard delivery is selected, only with next day delivery

logo /image for this shipping method?
Title: Re: TCPDF error
Post by: ukfish1 on May 13, 2019, 15:19:22 pm
Hi

Thanks GJC.

The logo image for the next day delivery option was showing as default as it does with the free delivery option.

I tried to upload another image called nexyday.gif to images/stories/virtuemart/shipment/ and select this as the logo/image for the next delivery shipment option but got the same error:

TCPDF ERROR: [Image] Unable to get the size of the image: https://www.greatbakes.co.uk/images/stories/virtuemart/shipment/

If there was still an eerror would it not say TCPDF ERROR: [Image] Unable to get the size of the image: https://www.greatbakes.co.uk/images/stories/virtuemart/shipment/nextday.gif

Regards

Paul

Title: Re: TCPDF error
Post by: Jörgen on May 13, 2019, 15:42:44 pm
Looking for an image to a shipment option that is not assigned ?
https://www.greatbakes.co.uk/images/stories/virtuemart/shipment/ (https://www.greatbakes.co.uk/images/stories/virtuemart/shipment/)

Is there some empty option in the invoice template settings ?

You have to dig deeper, try debugging with google or firefox tools as a starter.

Jörgen @ Kreativ Fotografi
Title: Re: TCPDF error
Post by: jenkinhill on May 13, 2019, 16:33:08 pm
This has never been a problem before until we upgraded the core joomla software to 3.9.5 and there is not a problem with orders where standard delivery is selected, only with next day delivery.

So why suddenly does this happen after the Joomla update?  Is that really VM 3.0.9 that you are using? It would surprise me if that old test version worked on J3.9.5 - or was it a typo?
Title: Re: TCPDF error
Post by: GJC Web Design on May 13, 2019, 17:24:18 pm
is https://www.greatbakes.co.uk/images/stories/virtuemart/shipment/braintree-logo.jpg meant to be a 2px white square?
What if u select none in the method?