Error printing qr code in production

Hi, I am new to this. Within my project, I have to make a report that lists a qr code. Simple. I create a field that is QR Code, and in OnRecord I assign that new field the value of a field in a table. And that’s it.
In development it works perfectly.
When I move it to production (I’m using MAMP), the rest of the applications work, but the report does not. When I inspect I see an error #500 (Internal server error).
If I try to print only the code (taking out the qr) and it works.
I would appreciate the help.
Thank you

Verify the php.ini with the one from scriptcase. A common issue is that some modules like gd is missing.

In the development php.ini it was missing:

extension=fileinfo

After adding that, the listing works correctly.
Thank you very much for your help!