i have on my website the d2c module enabled
when i would like to make a pdf file from a page i get this error:
TCPDF ERROR: [Image] Unable to get image: %20/var/www/vhosts/.............../httpdocs/icustomize/sites/default/files/d2c/codes/1.png

CommentFileSizeAuthor
#5 begin_space_img_src.patch1.08 KBjcnventura

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Can you provide a URL to that site? It seems I need to register somewhere to use d2c and I don't want to do that.

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further info in two weeks. Closing the issue...

Babalu’s picture

Status: Closed (cannot reproduce) » Postponed (maintainer needs more info)
jcnventura’s picture

Status: Postponed (maintainer needs more info) » Active
jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new1.08 KB

Wow... There really is a space in the img src value for the d2c/codes/1.png file. Amazing the abuse that browsers can handle..

Can you try the attached patch and tell me if it fixes it for you?

jcnventura’s picture

Title: problem with d2c module » Image URLs in d2c_core_field_formatter.tpl.php with leading spaces
Project: Printer, email and PDF versions » dot2code - QR code management service
Version: 7.x-1.0-alpha1 » 7.x-1.3
Status: Postponed (maintainer needs more info) » Active

Actually this should be fixed at the source...

Please remove the extra space in the URLs for the image files.. It's at lines 9 and 11 of d2c_core_field_formatter.tpl.php.. While you're at it you can remove the extra leading spaces in the style values in lines 16 and 29.

dot2code’s picture

Status: Active » Closed (fixed)

Fixed in 6c89081e9f29ebe7a03589528db12b34f08b8996 (7.x-1.4).