Home › Forums › Support › Unable to execute PHP as DISALLOW_FILE_EDIT is defined. This topic has 3 replies, 2 voices, and was last updated 3 years, 6 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts September 18, 2020 at 3:42 am #1448386 Pavla Hi! After i updated the theme the hooks don’t work anymore, i get the message Unable to execute PHP as DISALLOW_FILE_EDIT is defined. although my hosting provider told me thats its very dangerous, i modified the wp-config from define(‘DISALLOW_FILE_EDIT’, true); to define(‘DISALLOW_FILE_EDIT’, false); I also tried to add the line define( ‘GENERATE_HOOKS_DISALLOW_PHP’, true ); but still getting the message and still not working. September 18, 2020 at 4:56 am #1448478 DavidStaff Customer Support Hi there, are you using any security plugins as they may be blocking it. Or check with your host to make sure there are no other modsec rules stopping it. October 2, 2020 at 1:23 am #1468610 Pavla I couldnt make it run, there is still the message. October 2, 2020 at 4:32 am #1468851 DavidStaff Customer Support Have you spoken to your host ? They will be able to assist with whats affecting it. Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In