Site logo

Archived topic

Unable to execute PHP as DISALLOW_FILE_EDIT is defined Hook element

3 replies · Started by Prathmesh on January 9, 2021

Viewing posts 1–4 of 4

Hey, I am getting this error “Unable to execute PHP as DISALLOW_FILE_EDIT is defined” while adding the hook element.

Would you please help me fix the issue?

Thanks

Hey Leo,

Thanks for your reply.

I already read that article but I didn't get it.

Basically, I want to add an author bio box using the hook element in my blog posts. And it requires PHP execution. But, as I mentioned earlier, I'm getting the error.

So to get rid of the error and to execute PHP should I add the code mentioned in the article "define( 'GENERATE_HOOKS_DISALLOW_PHP', true );"?

This archived topic is closed to new replies.