Support » Plugin: PHP Everywhere » Executing PHP when in edit mode

  • Resolved Terry J

    (@texasbiz)


    Greetings. Been using PHP Everywhere for some time without any issues, thank you for bring it here to us!

    I finally gave in and started using the Gutenberg Editor for new site(s). Using Gutenberg along with new plugin “Grids: Layout builder for WordPress”.

    The issue I am experiencing is my PHP code placed in PHP Everywhere is being executed even when trying to edit the page. Never experienced this before so thinking maybe related to Gutenberg Editor?

    Is this something that is known to happen?

    Thanks!

    • This topic was modified 2 months, 1 week ago by  Terry J.
Viewing 6 replies - 1 through 6 (of 6 total)
  • After seeing support questions unanswered for couple of weeks, assuming plugin is dead on support and development. Really sad as excellent plugin.

    Plugin Author Alexander Fuchs

    (@alexander_fuchs)

    Hi Terry,

    I maintain this plugin in my free time. Therefore, I may not always have time to reply to support tickets.

    Anyhow, this plugin is still in active development and all bug reports are noted. However, I can not reply to all of them (mutiple a day).

    I maintain this plugin in my free time. Therefore, I may not always have time to reply to support tickets.

    I totally understand and respect that Alexander. Also appreciate you sharing the plugin with us. Guess was just frustrated as see so many great plugins come and go, hated to think PHP Everywhere would be one of those:)

    Thank you for the update.

    Plugin Author Alexander Fuchs

    (@alexander_fuchs)

    Hi Terry, always appreciated.

    Could you send me a screenshot of the page where the code gets executed in the editor? I was trying to reproduce the problem and was not able to reproduce it.

    Thanks!

    Alex

    Hi Alexander. Unfortunately I have removed the plugin and moved on to another for that specific site.

    I was using the following:

    Theme: Page Builder Framework (https://wordpress.org/themes/page-builder-framework/)
    Related Theme Plugin: Grids (https://wordpress.org/plugins/grids/)
    PHP 7.2
    Latest WP release

    The PHP was simple:

    if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') !== false))
    {
    $newlocation = 'somepage.php';
    }
    else {
    die();
    }

    I say page was executing PHP because when trying to edit, page would be blank and assumed that was because of the die() statement.

    Be doing another site in coming weeks and if it happens, will take some screenshots.

    I really think the execution of php code when trying to edit in admin mode should not happen at all. Do not know how to fix, but real pain in rear:)

    If anyone has any ideas, open to hear them cause really like to use this plugin.

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