Jump to content

Error when generating pdf - Unable to get image - wrong path


mrio1212

Recommended Posts

  • 4 weeks later...

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...