Title: all snippet code is missing!
Last modified: November 30, 2022

---

# all snippet code is missing!

 *  [lorilself](https://wordpress.org/support/users/lorilself/)
 * (@lorilself)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/all-snippet-code-is-missing/)
 * Hello! This morning I went in to the plugin to duplicate a snippet that I use
   whenever I add a new course to the site, and I discovered that the code is completely
   missing from all snippets! The code box is completely empty, even for the example
   snippets that come preloaded with the plugin and other misc snippets I’ve added
   in the past.
 * The course snippet seem to still be functioning properly when I just now tested
   a previous course that uses it. I don’t know when this started happening because
   since nothing stopped working I never thought to check if I could see the snippet
   code. I’m on v3.2.2
 * What happened to my code and how can I view it again? I’m not techie so non-coding
   answers appreciated 🙂
 * Thank you

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

 *  Thread Starter [lorilself](https://wordpress.org/support/users/lorilself/)
 * (@lorilself)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/all-snippet-code-is-missing/#post-16247921)
 * Update: I just tried to add a new test snippet (to both production and cloned
   sites), but I can’t add anything to the code box, it doesn’t even let me put 
   a cursor there to paste the code, etc. Please advise on this also, thanks!
 *  Thread Starter [lorilself](https://wordpress.org/support/users/lorilself/)
 * (@lorilself)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/all-snippet-code-is-missing/#post-16248766)
 * Update 2: after deactivating and testing other plugins, I tried updating WordPress
   to 6.1.1 and it seems to have solved this problem for now. I’ll return to this
   post if that turns out not to be the case, thanks.
 *  [bogdanh](https://wordpress.org/support/users/bogdanhapcayardicom/)
 * (@bogdanhapcayardicom)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/all-snippet-code-is-missing/#post-16307378)
 * Happened to me after upgrading from 2.14.0 to 3.2.2, while on WP 6.1.1, PHPv 
   8.0.26. Throws a JS error in console. Would be great if caught and handled more
   gracefully in plugins/code-snippets/dist/edit.js?ver=3.2.2.
 * Unfortunately I can’t updload an image with the console, in this editor, but 
   here’s the stack trace:
 *     ```wp-block-code
       [Error] TypeError: null is not an object (evaluating 'd.attach')
       	(anonymous function) (load-scripts.php:155:19375)
       	Pf (load-scripts.php:155:22492)
       	Pf (load-scripts.php:155:21653)
       	fg (load-scripts.php:156:190)
       	(anonymous function) (code-editor.min.js:2:1991)
       	(anonymous function) (edit.js:1:2797)
       	(anonymous function) (edit.js:1:3596)
       	i (editor.js:1:123415)
       	(anonymous function) (edit.js:1:7960)
       	e (editor.js:1:124150)
       	e
       	Global Code (edit.js:1:87)
       ```
   
 * I realise this doesn’t qualify as a “non-coding answer”, but should hopefully
   help the plugin author to fix the issue.
    -  This reply was modified 3 years, 5 months ago by [bogdanh](https://wordpress.org/support/users/bogdanhapcayardicom/).
 *  [bogdanh](https://wordpress.org/support/users/bogdanhapcayardicom/)
 * (@bogdanhapcayardicom)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/all-snippet-code-is-missing/#post-16307556)
 * I should add that for me reverting the upgrade, back to 2.14.0, fixes the issue,
   but that’s probably not a long-term option.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/all-snippet-code-is-missing/#post-16540620)
 * It sounds like this is an issue with the code editor itself, not with any of 
   your snippet data being removed.
 * I have a feeling that another plugin you have installed is causing this conflict.
   Would it be possible to test this out by temporarily disabling other plugins 
   besides Code Snippets to see whether this issue still occurs?

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

The topic ‘all snippet code is missing!’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/all-snippet-code-is-missing/#post-16540620)
 * Status: not a support question