Site logo

[Support request] Unable to execute PHP as DISALLOW_FILE_EDIT is defined.

Home Forums Support [Support request] Unable to execute PHP as DISALLOW_FILE_EDIT is defined.

Home Forums Support Unable to execute PHP as DISALLOW_FILE_EDIT is defined.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1538686
    Carlos

    Hi,
    I have this messaje in hook Unable to execute PHP as DISALLOW_FILE_EDIT is defined.

    How can i solved?, i have another web with generatepress with a hook in the same host but is fine.

    https://share.getcloudapp.com/xQuY4nzr

    Thanks in advance
    Carlos

    #1538699
    David
    Staff
    Customer Support

    Hi there,

    this would mean that the wp-config file for that site is disallowing PHP Edits, or it could be a security plugin.

    This article explains the server level requirements:

    https://docs.generatepress.com/article/disallow-php-execution/

    Or you can just add the PHP Snippet provided here to allow editing in Hooks only:

    https://docs.generatepress.com/article/generate_hooks_execute_php/

    #1538714
    Carlos

    Is this a wrong thing or anything i should have enable?.
    I mean i only going to use hooks for tracking codes as google analytic, FB pixel and things like that.

    Can i leave it as it is ?

    #1538718
    David
    Staff
    Customer Support

    If you’re not adding PHP – then yes, you can leave it as

    #1538727
    Carlos

    Thank You

    #1538741
    David
    Staff
    Customer Support

    You’re welcome

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