Files not found in cache if link to PDF view is not accessed from same page
-
Hi again, I did exactly as I described on here, and managed to get the files to download. However, now I’m running into a weird issue, which I believe has to do with the cache.
If I click on a “Download PDF” link (from the admin backend) to a file I’ve never downloaded before, I get all sorts of weird errors, such as this one:
Warning: imagepng(/home3/user/public_html/site/wp-content/plugins/wp-post-to-pdf-enhanced/tcpdf/cache/__tcpdf_imgmask_alpha_a0cba590a9ba3fc3a1104fa925759924): failed to open stream: No such file or directory in /home3/user/public_html/site/wp-content/plugins/wp-post-to-pdf-enhanced/tcpdf/tcpdf.php on line 7242
However, if I go to the page I want to download as a PDF, and click on the link there, the file is generated without issues. Also, if I go to the admin page and click on the link, the file is downloaded correctly.
I’m generating the custom post type programmatically, but it doesn’t seem to make a difference with the error shown, as I also tried creating the post myself and downloading it, with the same results.
Should I try and generate the cache manually? If so, how would I do that?
Thanks in advance, and thanks for the great plugin as well.
https://www.ads-software.com/plugins/wp-post-to-pdf-enhanced/
- The topic ‘Files not found in cache if link to PDF view is not accessed from same page’ is closed to new replies.