Hi @royalhound,
This error 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.
Here are some ways 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 whether this works or you need further help!