mrio1212 Posted June 3, 2016 Share Posted June 3, 2016 Hello I get such error when trying to generate PDF invoice TCPDF ERROR: [image] Unable to get image: http://img/shop-name-1400247712.jpg The image is in img folder, but I see that it generates URL without domain. How to debug this error? Which files should I check? Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted June 3, 2016 Share Posted June 3, 2016 Prestashop version? Should have been fixed in the recent ones Link to comment Share on other sites More sharing options...
mrio1212 Posted June 6, 2016 Author Share Posted June 6, 2016 Prestashop version 1.6.0.6 Link to comment Share on other sites More sharing options...
NemoPS Posted June 6, 2016 Share Posted June 6, 2016 Version bug, you should upgrade Link to comment Share on other sites More sharing options...
mrio1212 Posted July 4, 2016 Author Share Posted July 4, 2016 I didn't manage to solve this yet, because I couldn't autoupdate to newer version. I copied the shop to localhost and PDF generation works well there but not on production server. PHP version on localhost is 5.6. Maybe I should enable some PHP extension on production server? Link to comment Share on other sites More sharing options...
mrio1212 Posted July 11, 2016 Author Share Posted July 11, 2016 I am trying to solve this problem and I found that __PS_ROOT_DIR__ is only a slash "/". What should be proper value of this constant? Should it be physical or URL? __PS_IMG_DIR__ is "//img/" I found that generation of the url is in function getLogo() in "/classes/pdf/HTMLTemplate.php" Link to comment Share on other sites More sharing options...
mrio1212 Posted July 11, 2016 Author Share Posted July 11, 2016 ok, I hardcoded path to the image in in "/classes/pdf/HTMLTemplate.php" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now