Title: Plugin Freezing when saving update
Last modified: September 1, 2016

---

# Plugin Freezing when saving update

 *  [ben_nz](https://wordpress.org/support/users/ben_nz/)
 * (@ben_nz)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-freezing-when-saving-update/)
 * When I update the code in a snippet and then click ‘Save’ – what often happens
   is that the plugin seems to freeze. The button changes to ‘Saving’ but doesn’t
   actually save, and I need to close the page without having made any update.
 * Seems to save no problem if I just add a comment like…
    `//comment here`
 * But if I add php such as the following then it only saves about one attempt in
   ten…
    `echo "Hello World!";`
 * Any ideas?
 * [https://wordpress.org/plugins/php-code-for-posts/](https://wordpress.org/plugins/php-code-for-posts/)

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

 *  Thread Starter [ben_nz](https://wordpress.org/support/users/ben_nz/)
 * (@ben_nz)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-freezing-when-saving-update/#post-7499407)
 * …I just found that it works (saves every time) if I place a comment after each
   line of PHP code.
 * Is this a requirement of the plugin or is this something about how PHP works?
 * For example, I can save this:
 *     ```
       <?php
       //CODE HERE
       echo get_the_title( $_parameters["pageid"] );
   
       //code here too
   
       echo get_the_title( $_parameters["pageid"] );
   
       //code here too
   
       echo "Hello World";
   
       //code here too
   
       echo "Hello World";
   
       //code here too
   
       echo wp_get_attachment_image(664,medium);
   
       //code here too
   
       ?>
       ```
   
 * But not this…
 *     ```
       <?php
       //CODE HERE
       echo get_the_title( $_parameters["pageid"] );
   
       //code here too
   
       echo get_the_title( $_parameters["pageid"] );
   
       //code here too
   
       echo "Hello World";
   
       echo "Hello World";
   
       //code here too
   
       echo wp_get_attachment_image(664,medium);
   
       //code here too
   
       ?>
       ```
   
 * (ie. two Hello Worlds without a comment in between will not save)
 *  Thread Starter [ben_nz](https://wordpress.org/support/users/ben_nz/)
 * (@ben_nz)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/plugin-freezing-when-saving-update/#post-7499705)
 * Any ideas on why this occurs?

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

The topic ‘Plugin Freezing when saving update’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-code-for-posts_0d1022.svg)
 * [PHP Code for posts](https://wordpress.org/plugins/php-code-for-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-for-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-for-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-for-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-for-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-for-posts/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [ben_nz](https://wordpress.org/support/users/ben_nz/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/plugin-freezing-when-saving-update/#post-7499705)
 * Status: not resolved