Uncaught ImagickException: UnableToOpenBlob

QuestionsCategory: PDF Light ViewerUncaught ImagickException: UnableToOpenBlob
Imaginaria asked 3 years ago
Hello, we have a problem with your plugin.
When the client tries to  import a pdf, a fatal error occurs.
Error Message from WordPress recovery mode

Un errore di E_ERROR è stato causato nella linea 872 del file /home/editriceti/www/wp-content/plugins/pdf-light-viewer/src/controllers/PdfController.php. Messaggio di errore: Uncaught ImagickException: UnableToOpenBlob `/home/editriceti/www/wp-content/uploads/pdf-light-viewer/16495/page-00001.jpg': No such file or directory @ error/blob.c/OpenBlob/2712 in /home/editriceti/www/wp-content/plugins/pdf-light-viewer/src/controllers/PdfController.php:872 Stack trace: #0 /home/editriceti/www/wp-content/plugins/pdf-light-viewer/src/controllers/PdfController.php(872): Imagick->readimage('/home/editricet...') #1 /home/editriceti/www/wp-content/plugins/pdf-light-viewer/src/controllers/PdfController.php(700): PdfLightViewer_PdfController::getFirstPageGeometry('300', '60', '/home/editricet...', '/home/editricet...') #2 /home/editriceti/www/wp-includes/class-wp-hook.php(290): PdfLightViewer_PdfController::save_post(16495, Object(WP_Post)) #3 /home/editriceti/www/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array) #4 /home/editriceti/www/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #5 /home/editriceti/www/wp-includes/post.php(4108): do_action('save_post_pdf_l...', 164


Subject: Support request, plugin: pdf-light-viewer (time: 15.11.2019 13:53:11)

Plugin Requirements
  • PHP is 5.3 or higher
  • ImageMagick or GraphicsMagick PHP Extension is loaded
  • Imagick or Gmagick PHP Wrapper is supported. v.ImageMagick 6.8.9-9 Q16 i586 2019-08-16 http://www.imagemagick.org
  • Imagick or Gmagick PDF Support is enabled
  • GhostScript is supported. v.9.26
  • Upload folder: /home/editriceti/www/wp-content/uploads/pdf-light-viewer is writable
  • Logs folder: /home/editriceti/www/wp-content/pdf-light-viewer-logs/ is writable
Server Info
  • os -> Linux webm032.cluster027.gra.hosting.ovh.net 4.14.119-ovh-vps-grsec-zfs-classid #1 SMP Wed May 15 10:40:34 CEST 2019 x86_64
  • php -> 7.3.10
  • mysql -> 5.6.39-log
  • wordpress -> 5.3

UnderStrap, 0.9.4, http://understrap.com
from Holger Koenemann, http://www.holgerkoenemann.de

replied 3 years ago

Hello Imaginaria, this is a copy of the message that I’ve sent you by email, just for reference.

We received reports of the similar issues. Here are the list just for reference, maybe it would be helpful for someone else:

Briefly: Similar issue could be related to the filename. Sometimes underlying software for import PDFs cannot parse non-latin symbols, diacritical marks, etc. from the file name. Could you please try to rename your file to something simple like “example.pdf” or “123.pdf” and then try to import it to check if the issue persists?

If the filename is not the case, did you have import issues with other documents? Could you test import process on the following example: https://abc.xyz/investor/static/pdf/2015Q4_google_earnings_release.pdf ?