We have been using the PDF Light Viewer plugin for one our websites to post magazine issues. I recently noticed after trying to post the recent pdf file, that the import tends to fail at a certain percentage and does not import the complete file. The previous pdf file uploaded to 91% while the recent file uploaded to 82%. Here is what is in the log file:
Today’s log file
Today’s log file
====================== 13-03-2018 12-18-53 ---------------------- Import exception: unable to open image `/home/content/a2pewpnas01_data01/40/4024540/html/wp-content/uploads/pdf-light-viewer/2628/page-00057.jpg': No such file or directory @ blob.c/OpenBlob/2480 >>> ImagickException Object ( [message:protected] => unable to open image `/home/content/a2pewpnas01_data01/40/4024540/html/wp-content/uploads/pdf-light-viewer/2628/page-00057.jpg': No such file or directory @ blob.c/OpenBlob/2480 [string:Exception:private] => [code:protected] => 435 [file:protected] => /home/content/a2pewpnas01_data01/40/4024540/html/wp-content/plugins/pdf-light-viewer/controllers/PdfController.php [line:protected] => 939 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/content/a2pewpnas01_data01/40/4024540/html/wp-content/plugins/pdf-light-viewer/controllers/PdfController.php [line] => 939 [function] => readimage [class] => Imagick [type] => -> [args] => Array ( [0] => /home/content/a2pewpnas01_data01/40/4024540/html/wp-content/uploads/pdf-light-viewer/2628/page-00057.jpg ) ) [1] => Array ( [file] => /home/content/a2pewpnas01_data01/40/4024540/html/wp-content/plugins/pdf-light-viewer/controllers/PdfController.php [line] => 803 [function] => process_pdf_page [class] => PdfLightViewer_PdfController [type] => :: [args] => Array ( [0] => 2628 [1] => 57 [2] => 57 [3] => 00057 [4] => 68 [5] => /home/content/a2pewpnas01_data01/40/4024540/html/wp-content/uploads/2018/03/springmagazine-3.pdf [6] => /home/content/a2pewpnas01_data01/40/4024540/html/wp-content/uploads/pdf-light-viewer/2628 [7] => 300 [8] => 60 [9] => 0.76744186046512 [10] => 1024 ) ) [2] => Array ( [function] => pdf_partially_import [class] => PdfLightViewer_PdfController [type] => :: [args] => Array ( [0] => ) ) [3] => Array ( [file] => /home/content/a2pewpnas01_data01/40/4024540/html/wp-includes/class-wp-hook.php [line] => 286 [function] => call_user_func_array [args] => Array ( [0] => Array ( [0] => PdfLightViewer_PdfController [1] => pdf_partially_import ) [1] => Array ( [0] => ) ) ) [4] => Array ( [file] => /home/content/a2pewpnas01_data01/40/4024540/html/wp-includes/class-wp-hook.php [line] => 310 [function] => apply_filters [class] => WP_Hook [type] => -> [args] => Array ( [0] => [1] => Array ( [0] => ) ) ) [5] => Array ( [file] => /home/content/a2pewpnas01_data01/40/4024540/html/wp-includes/plugin.php [line] => 453 [function] => do_action [class] => WP_Hook [type] => -> [args] => Array ( [0] => Array ( [0] => ) ) ) [6] => Array ( [file] => /home/content/a2pewpnas01_data01/40/4024540/html/wp-admin/admin-ajax.php [line] => 97 [function] => do_action [args] => Array ( [0] => wp_ajax_pdf-light-viewer_ping_import ) ) ) [previous:Exception:private] => )
Please login or Register to submit your answer
replied 7 years ago
Hello John, thank you for your message.
If the import failed on the same page of the same PDF file, then probably it could be related to the some new PDF file format changes. Thus the issue could be in the old version of the ImageMagick or GhostScript library.
In this case I can see the only solution: update the old library. We collect some information about this kind of cases in our knowledge base – https://support.wp.teamlead.pw/q/exception-imagickexception-with-message-pdfdelegatefailed/
Please let me know versions of the ImageMagick and GhostScript libraries which you can find on the PDF Light Viewer plugin settings page: /wp-admin/options-general.php?page=pdf-light-viewer
You can also send us the PDF file which failed to import and we will test it on our side.