Site logo

[Support request] DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hook

Home Forums Support [Support request] DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hook

Home Forums Support DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hook

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2521550
    Don

    I recently noticed the “DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks.” message at the top of my screen inside one of my sites on the plugin page.

    There was also a “Learn How” link that led me to this page > https://docs.generatepress.com/article/disallow-php-execution/

    However, although I can do minor changes to files on my website, the information on that page was over my head.

    Is there someone that can fix this for me?

    I would be willing to pay any reasonable amount.

    Don Pasco

    #2521624
    Leo
    Staff
    Customer Support

    Hi Don,

    Unfortunately this isn’t a service we offer.

    Are you using any security plugins?

    #2521674
    Don

    Hi Leo,

    Thank you for responding.

    I am using WP Malware Scanner PRO.

    Is that something that I should deactivate?

    Don

    #2521722
    Leo
    Staff
    Customer Support

    That might be the cause. Can you try deactivating it to test?

    #2522488
    Don

    Hi Leo,

    I deactivated the WP Malware Scanner PRO plugin, and cleared the cache,
    however it did not have any effect.

    Don

    #2522628
    Fernando
    Customer Support

    Hi Don,

    You can try adding this snippet:
    add_filter( 'generate_hooks_execute_php', '__return_true' );

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

    #2524894
    Don

    Hi Fernando,

    Thank you for responding.

    I did not get to try your suggestion because I had already hired someone on Fiverr to fix it for me.

    All is well now and I am sorry for any inconvenience I may have caused you.

    Don Pasco

    #2525259
    Fernando
    Customer Support

    You’re welcome, Don!

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