• Resolved Jakob

    (@jakobbader)


    Hi there

    Your plugin was/is (for the existing PDF’s) working fine, however of now I can’t upload a new PDF. The remaining PDF’s are working fine. I get this error

    “ImagickException thrown

    PDFDelegateFailed `[ghostscript library] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 “-sDEVICE=pngalpha” -dTextAlphaBits=4 -dGraphicsAlphaBits=4 “-r72x72” “-sOutputFile=/tmp/magick-715487tMVRFqo7nKAS%d” “-f/tmp/magick-715487dianEBBLwIjF” “-f/tmp/magick-715487nlnPds5Z9J2r”‘: -dname= must be followed by a valid token @ error/pdf.c/InvokePDFDelegate/263”

    – PDF Light Viewer Plugin V. 1.2.7
    – The Plugin Requirements are all check marked green as OK
    – PHP selector, imagick is selected
    – The website is http://www.freddys.ch unter Menü

    Thank you

    Jakob

    https://ww.wp.xz.cn/plugins/pdf-light-viewer/

Viewing 7 replies - 1 through 7 (of 7 total)
  • OnePressTech

    (@timhibberd)

    Hi Jakob,

    If your WordPress site is on shared hosting it is possible that your provider may be disabling this ImageMagick function due to a security vulnerability.

    I have opened an issue asking the plug-in author if this is the case and if there is a plan ‘B’ if this is the case.

    Thread Starter Jakob

    (@jakobbader)

    Hi there, thank you for getting involved.

    Like I said, all the check marks are green (yes the site runs on a shared hosting plan)

    – Imagick PHP Extension is loaded
    – Imagick PHP Wrapper is supported. v.ImageMagick 6.9.0-0 Q16 x86_64 2016-05-05 http://www.imagemagick.org
    – Imagick PDF Support is enabled
    – GhostScript is supported

    It worked fine, until it stoppend to import the PDF’s. What I do now, is to upload the files as jpg which works.

    OnePressTech

    (@timhibberd)

    Unfortunately the “fix” that hosting companies are using is not to disable Imagick but to adjust the configuration file so that it doesn’t execute certain functions like converting pdfs to jpgs. You can see the effect in your error log…the imagick function throws an error.

    Plugin Author antongorodezkiy

    (@antongorodezkiy)

    Hello @jakob.

    In some cases this issue could appear when users try to convert new PDFs with old versions of ImageMagick and Ghostscript libraries.

    We’ve already got similar error reports. In few cases the issue was related to the old software versions.

    As I wrote in the separate thread ( https://ww.wp.xz.cn/support/topic/it-doesnt-work-115#post-8585692 ) the issue could be in the old GhostScript version which wasn’t updated for a long time.

    In this case you could try to import some PDF which which you’ve imported before to check if it will work for them. If it doesn’t, then the issue is not in GhostScript.

    Also, @onepresstech could be right and your hosting provider could restrict all or particular server functions related to the ImageMagick because of the ImageTragick vulnerability. In this cae you could contact hosting support/admin and ask about it.

    Also I don’t see GhostScript version in your requirements. Is it there?

    Thread Starter Jakob

    (@jakobbader)

    Hi Antongorodezkly

    Thank you for getting back to me, however it’s ratter late 🙁

    I switched to https://ww.wp.xz.cn/plugins/pdf-embedder/ which unfortunately doesn’t look so need but it does work and it’s supper easy to use.

    Thank you for your work, I hope you get it sorted out.

    Cheers

    Jakob

    Yes, it showed me “GhostScript is supported”, as mentioned in my previous message.

    Plugin Author antongorodezkiy

    (@antongorodezkiy)

    I understand. For now I’ll close this issue. If you’ll have any other questions please do not hesitate to ask here or on our support forum https://support.wp.teamlead.pw/

    Plugin Author antongorodezkiy

    (@antongorodezkiy)

    For those users, who will have the same issue and who will find this thread:

    The issue not always in old Ghostscript. It could also be in old Imagick. In this case there is an alternative solution:

    You can set your site to use gmagick instead of imagick:
    http://support.wp.teamlead.pw/wp-content/uploads/sites/6/2016/11/cpanel-imagick-to-gmagick.jpg

    After that make sure to switch libraries in the plguin’s settings:
    http://pdf-light-viewer.wp.teamlead.pw/wp-content/plugins/pdf-light-viewer/documentation/index.html#setup

    After that things should “just work”.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘ImagickException thrown’ is closed to new replies.