Support the ongoing development of →
Queues Jobs Configuration
Last updated 1 year ago.

Got it!!

On the production server, there is the queue:listen process running with supervisor.

So that's it, when we ssh into the server, and if we run php -i , we can see the $_SERVER variables were loaded, even as blank.

When the php command is run via supervisor, there is no $_SERVER variables.

So the solution to get DOMPDF working within the queue processed by supervisor, is to workaround the code. if you have it through composer, like me, it will be a pain, forking the repository, and changing the source in composer.json

Then, all we have to do is working the logs until all environemnt variables are met, through


This will make it work, as it does when running through SSH, that's how it loads the vars, empty!

Hope this helps anyone!!


Sign in to participate in this thread!


Your banner here too?

iboinas iboinas Joined 11 Mar 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.