Home › Forums › Support › Unable to execute PHP as DISALLOW_FILE_EDIT is defined. This topic has 5 replies, 2 voices, and was last updated 4 years, 10 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts November 20, 2020 at 3:53 am #1538686 Carlos 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 November 20, 2020 at 4:02 am #1538699 DavidStaff Customer Support 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/ November 20, 2020 at 4:12 am #1538714 Carlos 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 ? November 20, 2020 at 4:15 am #1538718 DavidStaff Customer Support If you’re not adding PHP – then yes, you can leave it as November 20, 2020 at 4:25 am #1538727 Carlos Thank You November 20, 2020 at 4:38 am #1538741 DavidStaff Customer Support You’re welcome Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In