• Resolved Imagegolded

    (@golded)


    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) :

    <?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)
  • 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/

    Thread Starter Imagegolded

    (@golded)

    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.