• I am not able to excute PHP for the Author Box, Elements, Hook of my website. It showing me this message: “Unable to execute PHP as DISALLOW_FILE_EDIT is defined.”

    I have also followed this guide: https://docs.generatepress.com/article/disallow-php-execution/

    Even after adding this constant: “define( ‘GENERATE_HOOKS_DISALLOW_PHP’, true );” in the wp-config.php file below the DISALLOW_FILE_EDIT constant. Still, I am not able to excute the PHP code for the HOOK Element in GeneratePress.

    Btw, I am using iTheme security plugin, which has created the DISALLOW_FILE_EDIT constant in my wp-config.php file.

    What could be the solution to fix this? As there are multiple elements including the Author Box and Recent Posts. Both of them are not working as the PHP code is not executed.

    Please check the attached screenshot: https://ibb.co/ScDGsZR

    Any assistance you can provide would be greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Steven Carson

    (@stevencarson)

    Follow Up: I have removed the iTheme security plugin and added this code: “define( ‘DISALLOW_FILE_EDIT’, true );” manually in wp-config.php

    After that code, I added this constant: “define( ‘GENERATE_HOOKS_DISALLOW_PHP’, true );” but still the PHP for Hook Elements is not able to execute.

    Hi there,

    the Hook Element is part of the GP Premium plugin.
    And WordPress rules forbid us from providing support for paid plugins in this forum. You will need to raise a support top in the premium support forum:

    https://generatepress.com/support

    Thread Starter Steven Carson

    (@stevencarson)

    Hi David,

    Would it be possible if you could share already asked question in the premium support forum related to this topic?

    For some reasons, I am not able to login to the premium support forum of GP.

    Thanks

    Leo

    (@leohsiang)

    Would it be possible if you could share already asked question in the premium support forum related to this topic?

    Sorry but we cannot do that for the reason David has mentioned.

    For some reasons, I am not able to login to the premium support forum of GP.

    If you believe that you have a valid license key then send us an inquiry through Account Issues here and we will sort it out for you: https://generatepress.com/contact/

    Thanks for your understanding ??

    Thread Starter Steven Carson

    (@stevencarson)

    Thanks for the quick response, I have sent the email.

    • This reply was modified 1 year, 12 months ago by Steven Carson.
    Leo

    (@leohsiang)

    I believe I’ve just applied to your e-mail ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unable to execute PHP as DISALLOW_FILE_EDIT is defined’ is closed to new replies.