Archived topic
Unable to execute PHP as DISALLOW_FILE_EDIT is defined.
5 replies · Started by Carlos on November 20, 2020
Hi,
I have this messaje in hook Unable to execute PHP as DISALLOW_FILE_EDIT is defined.
How can i solved?, i have another web with generatepress with a hook in the same host but is fine.
https://share.getcloudapp.com/xQuY4nzr
Thanks in advance
Carlos
Hi there,
this would mean that the wp-config file for that site is disallowing PHP Edits, or it could be a security plugin.
This article explains the server level requirements:
https://docs.generatepress.com/article/disallow-php-execution/
Or you can just add the PHP Snippet provided here to allow editing in Hooks only:
https://docs.generatepress.com/article/generate_hooks_execute_php/
Is this a wrong thing or anything i should have enable?.
I mean i only going to use hooks for tracking codes as google analytic, FB pixel and things like that.
Can i leave it as it is ?
If you're not adding PHP - then yes, you can leave it as
Thank You
You're welcome