Hi @foltest,
Can you please check if the Code Type is still JavaScript after saving? Or is it defaulting to HTML?
The issue might be with the plugin not being able to assign the code type correctly for your snippet.
Hi, @gripgrip.
Yes, as I said, it is saving as plain text fragment. I already uninstalled and reinstalled, but nothing works.
Thank you.
Hi @foltest,
If the code type remains HTML after saving, even though you set it to JavaScript, you may be encountering an issue with assigning taxonomy terms.
We saw this a few times before where after transferring a website or running a search & replace on the whole website taxonomy terms are no longer being added correctly.
To test this theory: can you please go to the regular Posts > Categories page and add a new category?
If that also throws an error the issue is likely related to the scenario I described above.
If that works, we’ll have to look into this in more detail – can you please reach out using the form at https://wpcode.com/contact
Thanks
Hi @gripgrip. Sorry for the late response.
I tried that and it works perfectly.
Here is a video of the bug: https://imgur.com/a/1eNPfMD
Thank you in advance.
Hi @foltest,
Thank you for the details, that is very weird and it’s not something we encountered before so I’m not sure what is causing this issue without looking further into it.
Does this happen if you create a new snippet and set it to JavaScript code type?
Please also consider reaching out to us via the contact form at https://wpcode.com/contact so that you can share more details regarding your setup privately if you want.