same problem at https://pahklid.ee :
Exception: attempt to perform an operation not allowed by the security policy `URL’ @ error/constitute.c/IsCoderAuthorized/461
Sorry, found the reason – web server updated some security policys.
Is there any solution to this if the VPS is from a third party?
Hi @vwbilli and @p2hklipureja,
This error is not caused by the plugin itself. It comes from ImageMagick / Imagick security policies on your server.
The message attempt to perform an operation not allowed by the security policy 'URL'
means that ImageMagick is blocking certain operations (such as reading local files via file:// or processing PDFs/images) due to restrictions defined in policy.xml.
This commonly happens after server updates or on managed/shared hosting where ImageMagick policies are tightened for security reasons.
How to fix it:
- If you control the server, check ImageMagick’s policy file (e.g.
/etc/ImageMagick-6/policy.xml or /etc/ImageMagick-7/policy.xml) and ensure the required coders (like URL or PDF) are not set to rights="none". You can try replacing the rights with something like this:
<policy domain="coder" rights="read | write" pattern="URL" />
- If you don’t control the server, contact your hosting provider and ask them to review ImageMagick security policies for PDF/image generation.
- As a temporary workaround, disabling the PHP
imagick extension may allow dompdf to fall back to GD.
Let me know if this works or if you need further help!