TCPDF error: Missing or incorrect image file: http://myserver.net/site/?q=system/files/templateTutorialimages/aFinishe...
The odd thing is: the directory "system/files/ is nowhere in any of the config settings for TCPDF that I can see.
The actual URL of the jpeg is:
http://myserver.net/site/templateTutorialimages/aFinishedModule.jpg
Most of my images have been uploaded with the image module.
The other odd thing is that after hitting the back button from the pdf page (such as http://myserver.net/site/?q=node/190/pdf) to the book page I came from, I always get an error in red at the top of the book page:
warning: getimagesize(http://myserver.net/site/?q=system/files/images/scormMessages.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/myserver/public_html/site/modules/pdfview/tcpdf/tcpdf.php on line 3024.
This is a great module otherwise - I hope you can get it working!
Comments
Comment #1
EllenM1-1 CreditAttribution: EllenM1-1 commentedI really have no idea what I am doing, but here is the code I used to replace _pdfview_rewrite_image_url
Perhaps someone can take a look at it and touch it up. It started working when I did this.
Comment #2
Egon Bianchet CreditAttribution: Egon Bianchet commentedYes, that's the code in question: it tries to rewrite image urls to make them absolute, because tcpdf won't work otherwhise. The problem is that it should work with sites with private downloads enabled as well as with those with public downloads ...
Comment #3
Egon Bianchet CreditAttribution: Egon Bianchet commentedmarking it duplicate of http://drupal.org/project/comments/add/76415, it's the same issue
Comment #4
EllenM1-1 CreditAttribution: EllenM1-1 commentedThanks!