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 6 months ago by Terry J.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Terry J

    (@texasbiz)

    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).

    Terry J

    (@texasbiz)

    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

    Terry J

    (@texasbiz)

    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.

    I think that I am having the same issue. When I try to open a page for editing, I receive the following “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.” When I go into the site in Recovery Mode, php anywhere is deactivated for the following reason “An error of type E_COMPILE_ERROR was caused in line 2 of the file /xxxxx/xxxxx/public_html/wp-content/plugins/php-everywhere/shortcode.php(15) : eval()’d code. Error message: require(): Failed opening required ‘app/php/bootstrap.php’ (include_path=’.:/opt/cpanel/ea-php73/root/usr/share/pear’)”. My site is still working perfectly. But it is impossible to add/update any pages. I am running WordPress 5.2.2.

    I have this site running on my laptop (as localhost) using WordPress 4.9.10 and it works perfectly.

    Yes, I continue to experience many issues. I have found that on admin pages where I am using PHP Everywhere, leave the editor in text mode.

    If you visit admin page with blocks / classic editor active, PHP executes. If in text mode it does not and you can edit page as normal…

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