I am trying to build a small blog website with a small form to subscribe to newsletter. When I try to send the form data it gets the next error:
proc_open() has been disabled for security reasons
Now I asked my hosting to enable this but they told me to thoroughly check if there is another solution because enabling the proc_open() gives a lot of security issues. Is there another solution for this?
I can’t find any explicit use of proc_open() in our code so not sure what is calling that, or why it works for 99.9% of everyone but not you. Was there any other details in the error message?
I copied the files /templates/modular/form.html.twig and / templates/form.data.html.twig from Deliver Skeleton and got the same error…
Am I missing some additional files?
To confirm where the error could be I installed the deliver skeleton to test the form and it gives an error: 0 - Unsupported sendmail command flags [/usr/sbin/sendmail]. Must be one of “-bs” or “-t” but can include additional flags.
I didn’t found a solution. End up removing Grav and went to another platform. Sad but documentation is really lacking. Good luck with the problem, I hope you do find a solution.
Thanks for the reply!
Got it to work. The problem was with security restritions of the server. Had to change the email processing from sendmail to smpt.
If it doesn’t exist, you’ll have to create: /user/config/plugins/email.yaml
It actually does not work for me either. I migrated a Grav site from a hosting to another and started having the exact same problem, and didn’t change anything.
The errors says that proc_open() has been disabled for security reasons so I asked my new hosting provider to fix that and see if that works.