You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have laravel medialibrary installed. It works fine for single page files. However a four page 8.5MB (and a smaller 2.5MB of the same file) pdf throws this:
Maximum execution time of 30 seconds exceeded or 502 Bad Gateway
Laravel Valet 2.11.0
Can verify valet uses php@7.3
Have verified the server is using php@7.3 laravel/valet#728 (comment) (this was a big pain, and a great find)
Have gone through all the possibilities I can find.
The text was updated successfully, but these errors were encountered:
Basically, the policy.xml on imagemagick had a setting for pdf which needed read | write permissions. That was part of it, but also on local I use QUEUE_CONNECTION=sync but that was forcing the conversion so I found changing to redis - at least for this attempt - on local really helped as horizon could take the job...
@freekmurze is it a fair tip on the docs to reference this setting in policy.xml? (for future users of this package and medialibary)
@freekmurze not sure if the fix I suggested made it through? I thought I forked the README and suggested changes with a PR. Did that work? (first time pr'er)
Have laravel medialibrary installed. It works fine for single page files. However a four page 8.5MB (and a smaller 2.5MB of the same file) pdf throws this:
Maximum execution time of 30 seconds exceeded
or502 Bad Gateway
Single page files do not throw the error.
#16
spatie/laravel-medialibrary#1271
http://www.imagemagick.org/discourse-server/viewtopic.php?t=19087
Tried out a ton possible issues, but the error always comes back to a method in
vendor/spatie/pdf-to-image/src/Pdf.php
file.Here's the versions I'm using:
"spatie/laravel-medialibrary": "^7",
"spatie/pdf-to-image": "2.0.1",
Laravel 7
GPL Ghostscript 9.50 (2019-10-15)
php.ini
upload_max_filesize = 32M
max_file_uploads = 20
post_max_size = 128M
memory_limit = 2048M
extension="redis.so"
extension="imagick.so"
Laravel Valet 2.11.0
Can verify valet uses php@7.3
Have verified the server is using php@7.3
laravel/valet#728 (comment) (this was a big pain, and a great find)
Have gone through all the possibilities I can find.
The text was updated successfully, but these errors were encountered: