Forum Replies Created

Viewing 1 replies (of 1 total)
  • I might have been having the same problem as you, so here’s what I found I had to do to fix it.
    I have pages with working php_everywhere code embedded, and I’ve been trying to update the embedded code. I can edit it on the page, and hit the ‘update’ button for the plugin, and the change appears to work – but when I save the changes to the page and view it, the original code is back.
    After a LOT of testing, I worked out that the changed PHP code was being written to the database correctly, and then being rewritten back to the previous version when the page was saved. This might have been cause by Wordfence, which is also running on the server.
    Try creating a new page with a php_everywhere plugin that just says <?php require_once(‘someFile.php’); ?> and create a file called someFile.php in the wordpress directory on your server. Then edit that file.
    In a worst case, find your site’s blog ID in wordpress, and go to the database. For a site with ID=2, you want to edit data in the table wp_2_postmeta. Look for a row with meta_key=php_everywhere, and edit the meta_value.
    It’s a very clunky workaround, but it works for me.

Viewing 1 replies (of 1 total)