[Support request] DISALLOW_FILE_EDIT is defined

Home Forums Support [Support request] DISALLOW_FILE_EDIT is defined

Home Forums Support DISALLOW_FILE_EDIT is defined

  • This topic has 8 replies, 3 voices, and was last updated 6 years ago by Leo.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #527933
    Carlos

    Hi,
    After install a plugin i have this message
    DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks.

    Here an screeshoot

    https://cl.ly/35260x2n0t3j

    Can you help me to solve it please?

    Thaks

    #528450
    Leo
    Staff
    Customer Support

    Hi there,

    This article explains it all: https://docs.generatepress.com/article/disallow-php-execution/

    Let me know if you need more info.

    #530619
    Carlos

    Hi Leo,
    How can i do that?

    The documentation says about to remove the admin message Disable File Editing
    It is recommended to disable file editing within the WordPress dashboard. WordPress has a constant that disabled this editing via the wp-config.php file. Append the following two lines to the end of your wp-config file:

    ## Disable Editing in Dashboard
    define(‘DISALLOW_FILE_EDIT’, true);

    Can i solve this problem installing code snippets plugin and paste that code in in?

    Thanks

    #530627
    Tom
    Lead Developer
    Lead Developer

    I’m not sure I understand? Where are those instructions from?

    If you add the above code to your wp-config.php file, then you just need to add the GP one below it:

    define( 'GENERATE_HOOKS_DISALLOW_PHP', true );

    #530635
    Carlos

    Hi,
    When i installed a security plugin it appeared in my WP admin

    Here an screeshoot

    https://cl.ly/35260x2n0t3j

    #530644
    Carlos

    How I disallow PHP execution in GP Hooks.

    Thanks

    #530647
    Tom
    Lead Developer
    Lead Developer

    You disallow it by pasting this code into your wp-config.php file:

    define( 'GENERATE_HOOKS_DISALLOW_PHP', true );

    It can be added directly after this line:

    define('DISALLOW_FILE_EDIT', true);

    #530656
    Carlos

    Hi Tom,
    Can i paste that code in code snippets plugin to solve it?

    #531219
    Leo
    Staff
    Customer Support

    Unfortunately no. It has to be the place Tom specified above.

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