[Support request] Disallow File Edits not Changing

Home Forums Support [Support request] Disallow File Edits not Changing

Home Forums Support Disallow File Edits not Changing

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2354038
    Jennifer

    Hello,

    I have read all your documentation, but for some reason this message still appears, “Unable to execute PHP as DISALLOW_FILE_EDIT is defined.”

    I am unsure what the problem is.

    Any assistance would be great.

    Jennifer
    Living His Word Ministries, Inc.
    www.livinghisword.org

    #2354437
    Ying
    Staff
    Customer Support
    #2355114
    Jennifer

    Hi Ying,

    I did read those documents. This is why I am writing to you. Did you see the images I attached?

    I followed what this document “https://docs.generatepress.com/article/disallow-php-execution/” said. Because I am using Sucuri plugin so I do have:
    define( ‘DISALLOW_FILE_EDIT’, true ); AND I ADDED
    define( ‘GENERATE_HOOKS_DISALLOW_PHP’, true );

    but under elements it still shows “Unable to execute PHP as DISALLOW_FILE_EDIT is defined.”

    Am I missing something?

    Thank you

    Jennifer
    Living His Word Ministries, Inc.
    www.livinghisword.org

    #2355852
    Fernando
    Customer Support

    Hi Jeniffer,

    Can you try adding this through Code Snippets?:add_filter( 'generate_hooks_execute_php', '__return_true' );

    Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.