Title: Insert php causing error 500
Last modified: August 22, 2017

---

# Insert php causing error 500

 *  Resolved [GregW](https://wordpress.org/support/users/gwmbox/)
 * (@gwmbox)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/insert-php-causing-error-500/)
 * I have done an update on my site and have been getting an error 500 when I save
   pages. After several headaches and testing and retesting all the plugins installed
   it is the Insert PHP plugin that is causing the issue. It works otherwise just
   causes an error 500 saving pages.
 * I am using 1.3 and note it says the last update was 2 YEARS ago – is that correct
   and is there an update available
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/insert-php-causing-error-500/#post-9432124)
 * If the only change is whether or not Insert PHP is activated, then it would appear
   to indeed be Insert PHP that’s causing it.
 * Unfortunately, I’m uncertain what you mean by saving pages. If you mean saving
   from the post-update page of the dashboard, try creating a temporary post with
   the minimum of Insert PHP code.
 *     ```
       [insert_php]
       echo(date("r"));
       [/insert_php]
       ```
   
 * If this works but the page you’re currently testing does not, then there is likely
   to be some other error somehow related to Insert PHP. Perhap an error in the 
   PHP code between the insert_php tags.
 * Yes, the last update was a couple years ago. I test it with each new WP version.
   It continues to work and doesn’t need an update. It’s a simple little plugin,
   actually.
 * Will
    -  This reply was modified 8 years, 7 months ago by [WillBontrager](https://wordpress.org/support/users/willbontrager/).
    -  This reply was modified 8 years, 7 months ago by [WillBontrager](https://wordpress.org/support/users/willbontrager/).
 *  Thread Starter [GregW](https://wordpress.org/support/users/gwmbox/)
 * (@gwmbox)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/insert-php-causing-error-500/#post-9452745)
 * I tried your code and it worked, however when I try my code it fails.
 * After several other plugin troubleshooting it has resulted in a conflict with
   Yoast SEO,
 * It also only seems to be an issue when the page is set to public, if I set it
   to private it works fine.
 * i think it has something to do with REQUIRE, I’m not really sure
 * E.g. [insert_php]require ‘directory/file.html’;[/insert_php]
 * I have uninstalled and reinstalled
 * Thanks
 * GW
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/insert-php-causing-error-500/#post-9453918)
 * You are wonderfully persistent. An inspiration.
 * A reply to your private email is on the way with several things that can be tried
   for resolving the conflict or determining what is causing it.
 * In essence, if there is a conflict and the conflict can’t be resolved, only one
   of the two plugins can be used.
 * If your PHP code can run as an independent file, it may be uploaded to your server
   and its output inserted into the WordPress post or page with Insert Here found
   at [https://www.willmaster.com/software/WPplugins/insert-here-wordpress-plugin.php](https://www.willmaster.com/software/WPplugins/insert-here-wordpress-plugin.php)
 * Will

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Insert php causing error 500’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3475630)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/insert-php-causing-error-500/#post-9453918)
 * Status: resolved