ISMAIL
June 21, 2020, 12:22pm
1
Hello
after updating from 11.0.0 to 11.0.4 I get this error message when I want to generate PDF files for invoices or orders or commercial proposal.
Thank you for your help
TCPDF ERROR: [Image] Unable to get the size of the image: / home2 / rational / dolibarrdata / mycompany / logos / 1
2 Likes
eldy
June 21, 2020, 12:22pm
2
Try to re-upload the image of your company (home - setup - company)
ISMAIL
June 21, 2020, 6:13pm
3
I did , it doesn’t work , even I delete the logo it is still not working .
any other idea , please ?
ksar
June 22, 2020, 9:10am
4
Try another image to see if it is your image that makes the trouble ?
ISMAIL
June 22, 2020, 9:42am
5
I tried another image , it doesn’t work. I tried to install dolibarr but once I point to the old database, the issue occurs again
eldy
June 28, 2020, 8:12pm
6
Did you find the image you have uploaded into your directory
/home2/rational/dolibarrdata/mycompany/logos
Did you use a name without special chars into your image filename ?
ISMAIL
June 29, 2020, 8:26am
7
the image is uploaded to /home2/rational/dolibarrdata/mycompany/logos , without special chars .
one more thing I don’t understand is why this directory 1 in the error message , when image is uploaded to directory logos?
[TCPDF ERROR: [Image] Unable to get the size of the image: /home2/rational/dolibarrdata/mycompany/logos/1
eldy
July 13, 2020, 1:05am
8
A very not common case is that you have permission to write and not to read.
What are permission on logo files and what are permission on directories ?
Deon
June 22, 2021, 2:05am
9
I encountered exactly the same problem
Deon
June 22, 2021, 2:06am
10
Permissions on both folder and file level were 0777
Deon
June 22, 2021, 2:24am
11
I managed to fix the error by adding to OTHER SETUP the following:
MAIN_PDF_USE_LARGE_LOGO with content 1.
Problem was solved