WP Post to PDF
Error: TCPDF ERROR: [Image] Unable to get image (8 posts)

  1. 416BC
    Posted 4 years ago #

    It's trying to find a cached version of the image, but I told it not to use cache.

    TCPDF ERROR: [Image] Unable to get image: /home/username/public_html/domains/mysite.com/wp-content/plugins/wp-post-to-pdf/tcpdf/cache/img_QIsLCH

    The image file name doesn't even contain an extension.


  2. 416BC
    Posted 4 years ago #

    I've uninstalled this plugin, please ignore this question, or answer it for others searching. Thank you.

  3. Neerav Dobaria
    Plugin Author

    Posted 4 years ago #

    That means the /wp-content/plugins/wp-post-to-pdf/tcpdf/cache/ directory is not writable. Please change its permission so that it can be writable by script. That will solve your issue.

  4. pakoman
    Posted 3 years ago #

    Neerav, I get the same error but without the image file location.
    Only looks like this:

    "TCPDF ERROR: [Image] Unable to get image:"

    I didn't have this problem with this plugin before

  5. TLTL
    Posted 3 years ago #

    UTF8 filenames (images) creates a TCPDF error as mentioned. This is a problem where wordpress saves images and stores the filename with utf8 but the server does not. This makes the function _parsejpeg($file) to fail in tcpdf.php

  6. Jenny Beaumont
    Posted 3 years ago #

    I'm actually getting this error in the admin, when I create or delete a post. The post is still created or deleted, but the error shows up systematically. The cache folder is writable. The PDFs download just fine.


  7. Jenny Beaumont
    Posted 3 years ago #

    So I've narrowed it down to images with a file path that leads to to wp-content/uploads. All images that are in the theme do not cause a conflict.

    The weird thing is that the images in question aren't even uploaded yet. And I'm experiencing this in the back-end. Changing permissions on the cache folder only changes how the error displays, with or without an image file path. I've also tried creating a conditional statement so that if the image is empty, the image doesn't display at all, but that doesn't seem to help.

    Again, my PDFs were being generated just fine. But I had been working with an example CPT that was already compiled. We discovered this problem when going to create new posts. Obviously, deactivating the plugin every we create a post is not an option! :)

    TLTL: did you come up with a fix for your encoding theory?

    Am also looking into the possibility of some kind of hot linking problem...waiting on a host response...


  8. Jenny Beaumont
    Posted 3 years ago #

    Ok, got it sorted. It didn't like me having my <img> tags in the template when the images weren't defined (even though it worked on some). So I put them directly into the variable and it resolved the error *whew*!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Post to PDF
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.