OnePressTech on "[Plugin: Wordpress PDF Light Viewer Plugin] ImagickException thrown"

ساخت وبلاگ

jakobbader
Member
Posted 1 month ago #

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://wordpress.org/plugins/pdf-light-viewer/

OnePressTech
Member
Posted 2 weeks ago #

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.

jakobbader
Member
Posted 2 weeks ago #

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
Member
Posted 10 minutes ago #

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.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 238 تاريخ : جمعه 21 خرداد 1395 ساعت: 6:27