Title: impossible to save a code
Last modified: March 23, 2025

---

# impossible to save a code

 *  Resolved [golded](https://wordpress.org/support/users/golded/)
 * (@golded)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/impossible-to-save-a-code/)
 * Hi, since i have updated the extension (Version 1.4.1) and wordpress (Version
   6.7.2), i can’t add new php code. When i click to save, there is a message “**
   PHP Snippet successfully added. Dismiss**” but the code doesn’t appear in the
   table below.
 * Can you help me please or check (i have checked on severals of my website and
   all have the same bug now).
 * this is the code i try to add (it worked before for other websites) :
 *     ```wp-block-code
       <?php$posttags = get_the_tags();if ($posttags) {  foreach($posttags as $tag) {    echo "à "; echo $tag->name . ' ';   }}?>
       ```
   
 * Placement Methods: auto
 * Thanks in advance.
 * Regards

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

 *  [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * (@anjali94)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/impossible-to-save-a-code/#post-18377815)
 * Hi,
   Thank you for reaching out. The issue occurs because version 1.4 introduced
   new database columns, including insertionMethod, which might not have been added
   during the update.To resolve this, please follow these steps:
    - Deactivate the Insert PHP Code Snippet plugin.
    - Reactivate the plugin—this should trigger the necessary database updates.
    - Clear any caching plugins (if applicable) and check if the issue persists.
      
      Additionally , only snippets with the **placement method** set to “**Manual
      Shortcode**” will appear in the dropdown (provided they are in active status).
 * If the placement location is set to “Automatic” or “Execute on Demand,” the snippets
   will not be displayed in the list. You can check the updated documentation at:
   [https://help.xyzscripts.com/docs/insert-php-code-snippet/user-guide/php-code-snippets/](https://help.xyzscripts.com/docs/insert-php-code-snippet/user-guide/php-code-snippets/)
 *  Thread Starter [golded](https://wordpress.org/support/users/golded/)
 * (@golded)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/impossible-to-save-a-code/#post-18378018)
 * hi,
 * many thanks it works now.
 * Have a good day !

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

The topic ‘impossible to save a code’ is closed to new replies.

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [golded](https://wordpress.org/support/users/golded/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/impossible-to-save-a-code/#post-18378018)
 * Status: resolved