Title: My Code Doesn&#039;t Execute
Last modified: August 22, 2016

---

# My Code Doesn't Execute

 *  [Bajdh](https://wordpress.org/support/users/ww2boy/)
 * (@ww2boy)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/my-code-doesnt-execute/)
 * Hey,
 * I have a problem.
 * I use this plugin to insert a custom PHP code on one of my pages.
    It used to
   work, but after I transferred hosting, it stopped working. I didn’t change anything
   about the ”core” code; I just changed some basic details (new database details,
   that’s all).
 * The code doesn’t execute in the frontend. There is no error or anything, just
   a blank section in the place where the PHP code should have been executed.
 * Is there anyone who can help me?
 * Thank you in advance 🙂
 * (I run WP 3.9.2)
 * [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

Viewing 1 replies (of 1 total)

 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/my-code-doesnt-execute/#post-5872523)
 * The first thing to check is that the Insert PHP plugin is activated.
 * If yes, test the PHP code outside of WordPress. There might be something in your
   code that is treated differently at the new host. To test, simply put your PHP
   code on a separate page between <?php and ?> instead of between [insert_php] 
   and [/insert_php], and upload it to your server.
 * If it doesn’t work there, check the directory where your test page is at for 
   an error log. If not there, the server error log should have something. If neither
   has an applicable error message, a function in the PHP code you’re using (or 
   the way it’s used) might not be available at the new host – perhaps an older 
   version of PHP or a different PHP configuration.
 * It may take some sleuthing on your part, but the reason is there, somewhere.
 * Will

Viewing 1 replies (of 1 total)

The topic ‘My Code Doesn't Execute’ 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/)

## Tags

 * [execute](https://wordpress.org/support/topic-tag/execute/)
 * [No](https://wordpress.org/support/topic-tag/no/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/my-code-doesnt-execute/#post-5872523)
 * Status: not resolved