Author Topic: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:  (Read 22143 times)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9382
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #30 on: April 03, 2017, 17:27:03 pm »
Good to hear and yes I assume the stuff works on a linux with utf8 filesystem
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

tanolalano

  • Beginner
  • *
  • Posts: 41
  • www.arancebio.it
    • Agrumi biologici di Sicilia
  • VirtueMart Version: 3.0.18
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #31 on: April 10, 2017, 13:13:15 pm »
Same error to my site after update to last version of VM 3
My config:
VM 3.2.1
J 3.6.5
Php 7.0.4
5.5.5-MariaDB

So confirmation email has not been sent to the Customer and to vendor.

I read the last posts and contact the developer of template (spyros) in this thread, and
even after a couple of suggested changes emails is not sent.

-------------------------------EDIT----------

After disable invoice creation for order status in VM config email was corectly sent.
In the received email shipping logo and payment logo was missing

Other suggestions?
Regards
www.arancebio.it - Organic red Oranges from Sicily

Rune Rasmussen

  • Jr. Member
  • **
  • Posts: 155
  • Is the stable release stable?
    • SYNTAX ERROR
  • VirtueMart Version: Latest ;)
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #32 on: April 10, 2017, 13:33:03 pm »
@tanolalano - you seems to have trouble with shipping images, while this was more about product images. Still it's probably related in some way, meaning TcPDF not being able to process the data from VM.

Note! Since the order data is saved in database, including image link I think, you need to test the new image on a new order (or edit the data in database).
Rune Rasmussen - http://www.syntaxerror.no
Norske nettløsninger og integrasjoner, CONSIGNOR EDI, Mamut ordreimport og produkteksport, kortbetaling og faktura m.m.

Norsk Joomla! - Norwegian Translation Team - http://www.norskjoomla.no

tanolalano

  • Beginner
  • *
  • Posts: 41
  • www.arancebio.it
    • Agrumi biologici di Sicilia
  • VirtueMart Version: 3.0.18
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #33 on: April 10, 2017, 13:52:06 pm »
@tanolalano - you seems to have trouble with shipping images, while this was more about product images. Still it's probably related in some way, meaning TcPDF not being able to process the data from VM.

Note! Since the order data is saved in database, including image link I think, you need to test the new image on a new order (or edit the data in database).
I do some test order getting same result as for old image and for new .jpg .gif or .png :(
www.arancebio.it - Organic red Oranges from Sicily

Rune Rasmussen

  • Jr. Member
  • **
  • Posts: 155
  • Is the stable release stable?
    • SYNTAX ERROR
  • VirtueMart Version: Latest ;)
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #34 on: April 10, 2017, 13:57:19 pm »
Also remember to re-save images with correct file format, don't just rename them - if that is what you did.


Oh, and also try just lower case letters (small), no spaces or special characters.
Rune Rasmussen - http://www.syntaxerror.no
Norske nettløsninger og integrasjoner, CONSIGNOR EDI, Mamut ordreimport og produkteksport, kortbetaling og faktura m.m.

Norsk Joomla! - Norwegian Translation Team - http://www.norskjoomla.no

tanolalano

  • Beginner
  • *
  • Posts: 41
  • www.arancebio.it
    • Agrumi biologici di Sicilia
  • VirtueMart Version: 3.0.18
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #35 on: April 10, 2017, 13:58:35 pm »
Also remember to re-save images with correct file format, don't just rename them - if that is what you did.
Yes, Edit it in PS
www.arancebio.it - Organic red Oranges from Sicily

neox2007

  • Beginner
  • *
  • Posts: 4
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #36 on: April 10, 2017, 17:41:11 pm »
I have noticed that even though the images of shipping / payment methods are broken in the customer confirmation email.

Maybe the problem is not with TCPDF.

Rune Rasmussen

  • Jr. Member
  • **
  • Posts: 155
  • Is the stable release stable?
    • SYNTAX ERROR
  • VirtueMart Version: Latest ;)
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #37 on: April 10, 2017, 18:50:54 pm »
neox2007 is right, there is a issue with shipping/payment logos in VM 3.2.1 mails.

I installed 3.0.18 and tested it successfully, but after updating to 3.2.1 only image name is displayed in the mail. There is no problem with the pdf generation though, there the shipping image displays fine. Tested using default Beez3 without any overrides, and also latest Hera template.
Rune Rasmussen - http://www.syntaxerror.no
Norske nettløsninger og integrasjoner, CONSIGNOR EDI, Mamut ordreimport og produkteksport, kortbetaling og faktura m.m.

Norsk Joomla! - Norwegian Translation Team - http://www.norskjoomla.no

tanolalano

  • Beginner
  • *
  • Posts: 41
  • www.arancebio.it
    • Agrumi biologici di Sicilia
  • VirtueMart Version: 3.0.18
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #38 on: April 11, 2017, 08:17:06 am »
Spyros report the issue on VM 3.2.x
"..the image paths for shipment/payment methods are relative instead of absolute and so the images are always missing in the mail."
so Invoice cannot be created end return the TCPDF Error
Maybe fix in next release.



www.arancebio.it - Organic red Oranges from Sicily

Rune Rasmussen

  • Jr. Member
  • **
  • Posts: 155
  • Is the stable release stable?
    • SYNTAX ERROR
  • VirtueMart Version: Latest ;)
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #39 on: April 11, 2017, 08:22:24 am »
tanolalano - read what I wrote. The pdf generation works fine for me!
Post your image as you was asked to do.
Rune Rasmussen - http://www.syntaxerror.no
Norske nettløsninger og integrasjoner, CONSIGNOR EDI, Mamut ordreimport og produkteksport, kortbetaling og faktura m.m.

Norsk Joomla! - Norwegian Translation Team - http://www.norskjoomla.no

tanolalano

  • Beginner
  • *
  • Posts: 41
  • www.arancebio.it
    • Agrumi biologici di Sicilia
  • VirtueMart Version: 3.0.18
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #40 on: April 13, 2017, 11:56:06 am »
tanolalano - read what I wrote. The pdf generation works fine for me!
Post your image as you was asked to do.
Here the image
www.arancebio.it - Organic red Oranges from Sicily

Rune Rasmussen

  • Jr. Member
  • **
  • Posts: 155
  • Is the stable release stable?
    • SYNTAX ERROR
  • VirtueMart Version: Latest ;)
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #41 on: April 14, 2017, 21:42:11 pm »
SO I see no problem using your png and jpg image (or any other) for shipping/payment in VM 3.2.1 with Hera 3.8.1 template.



Rune Rasmussen - http://www.syntaxerror.no
Norske nettløsninger og integrasjoner, CONSIGNOR EDI, Mamut ordreimport og produkteksport, kortbetaling og faktura m.m.

Norsk Joomla! - Norwegian Translation Team - http://www.norskjoomla.no

Rune Rasmussen

  • Jr. Member
  • **
  • Posts: 155
  • Is the stable release stable?
    • SYNTAX ERROR
  • VirtueMart Version: Latest ;)
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #42 on: April 14, 2017, 21:53:58 pm »
PS! You forgot to mention you're using some custom third party cart ...
Rune Rasmussen - http://www.syntaxerror.no
Norske nettløsninger og integrasjoner, CONSIGNOR EDI, Mamut ordreimport og produkteksport, kortbetaling og faktura m.m.

Norsk Joomla! - Norwegian Translation Team - http://www.norskjoomla.no

tanolalano

  • Beginner
  • *
  • Posts: 41
  • www.arancebio.it
    • Agrumi biologici di Sicilia
  • VirtueMart Version: 3.0.18
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #43 on: April 15, 2017, 17:47:18 pm »
So seem it's related to OPC...... ???
Thanks Rune
www.arancebio.it - Organic red Oranges from Sicily

zerilou

  • Beginner
  • *
  • Posts: 3
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #44 on: April 20, 2017, 17:22:44 pm »
Same problem for me.

the solution is maybe here: /www/administrator/components/com_virtuemart/plugins/vmpspluging.php

I tried to change the image path to an absolute path. I've got no more image but the invoice could be generated.
It can not be a good solution.

Thanks for your help.
Last joomla, last virtuemart3.2.1

/**
    * displays the logos of a VirtueMart plugin
    *
    * @author Valerie Isaksen
    * @author Max Milbers
    * @param array $logo_list
    * @return html with logos
    */
   protected function displayLogos ($logo_list) {

      $img = "";

      if (!(empty($logo_list))) {
         if(!class_exists('JFolder')){
            require(VMPATH_LIBS.DS.'joomla'.DS.'filesystem'.DS.'folder.php');
         }
         $url ='/images/virtuemart/' . $this->_psType ;

         if(!JFolder::exists( VMPATH_ROOT .$url)){
            $url = '/images/stories/virtuemart/' . $this->_psType;
            if(!JFolder::exists(VMPATH_ROOT .$url)){
               return $img;
            }
         }

         if (!is_array ($logo_list)) {
            $logo_list = (array)$logo_list;
         }
         foreach ($logo_list as $logo) {
            if(!empty($logo)){
               $alt_text = substr ($logo, 0, strpos ($logo, '.'));
               $img .= '<span class="vmCart' . ucfirst($this->_psType) . 'Logo" ><img align="middle" src="' . JUri::root(true).$url.'/'.$logo . '"  alt="' . $alt_text . '" /></span> ';
            }
         }
      }
      return $img;
   }