I have been tearing my hair out with this for two days now and I cant help but think its something ridiculously simple.
When trying to use standard jpg images for the mpdf library I am getting the following image error...
<B>mPDF error: </B>IMAGE Error (https://www.example.net/myimage.jpg): Could not find image file
- I have tried both http and https
- I have tried the solutions here including editing the servers hosts file, checking permissions
- No matter what the url of the image is the problem occurs (an external image also gives the same problem)
- I have made sure that php gd and curl is installed on the server
- I have repeatedly checked to make sure the image paths are correct by directly copying and pasting the link from the error.
Things to note,
- I had this working on another server (but it was shared hosting so everything was already set up, ive compared the two using phpinfo() and the only difference I can see is that ive a slightly newer php version.
- I was also having another issue since moving the site which also involved reading urls where I was getting a 404 not found error even though the url was correct
- I am using my hosts file on Windows to point the domain to this server so it's not live yet