Site logo

Archived topic

Unable to execute PHP as DISALLOW_FILE_EDIT is defined.

3 replies · Started by Pavla on September 18, 2020

Viewing posts 1–4 of 4

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.

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.

I couldnt make it run, there is still the message.

Have you spoken to your host ? They will be able to assist with whats affecting it.

This archived topic is closed to new replies.