Title: Problems saving snippets
Last modified: October 19, 2022

---

# Problems saving snippets

 *  Resolved [tonimballeste](https://wordpress.org/support/users/tonimballeste/)
 * (@tonimballeste)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problems-saving-snippets/)
 * Hi,
 * I’ve been using Post Snippets in other WordPress hostings. However, in a recently
   enabled hosting I’ve been unable to save PHP snippets properly. It seems that
   the behaviour is kind of random: sometimes you’ll be shown the snippet saved 
   message, others you won’t. However I’ve observed that I can only save (and use)“
   short” snippets. If I try to delete a “non-saveable” snippet, I get a blank page
   with the “Forbidden” error message. I’ve updated to the last version of WordPress.
 * I’d appreciate any help regarding this issue. I haven’t found any information
   regarding this topic so far. Well, maybe something related to hosting setup… 
   but provider states that “everything is ok”.
 * Kind regards
    t.

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

 *  Plugin Support [Mirza Hamza](https://wordpress.org/support/users/hamza1010/)
 * (@hamza1010)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problems-saving-snippets/#post-16118379)
 * Hi [@tonimballeste](https://wordpress.org/support/users/tonimballeste/),
 * Thanks for using the plugin,
 * I hope you are doing well, We have forwarded this to our technical team and we
   will get back to you soon.
 * Thanks & Regards
 * WP Experts Support Team
 *  Thread Starter [tonimballeste](https://wordpress.org/support/users/tonimballeste/)
 * (@tonimballeste)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problems-saving-snippets/#post-16118612)
 * Dear Mirza,
 * Thank you for your explanation. In fact, a few hour ago I discovered that the
   plugin (same version, but older WordPress) works pretty well in another hosting.
   So, I’m only experiencing the problem in one hosting. Very weird… So I decided
   to track the problem. I started with a PHP helloworld, it worked… then I added
   some funcions until I pasted the entire PHP code that was “unsaveable”. At the
   hosting side (I’ve been working with that new hosting for a week) they say everything
   is ok… but I discovered they are applying a miriad of “security” filters: including
   a SQL injection plugin!!! So.. I realised that when I pasted some SQL inside 
   a PHP snippet… that security filter would prevent the form to be upload to WordPress.
   And yes, this is the problem I was having. Disabled the SQLi filter and everything
   is ok!
 * Kind regards
    t.
 *  Plugin Support [Mirza Hamza](https://wordpress.org/support/users/hamza1010/)
 * (@hamza1010)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problems-saving-snippets/#post-16138939)
 * Hi [@tonimballeste](https://wordpress.org/support/users/tonimballeste/),
 * Thanks for the feedback.
 * Thank you

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

The topic ‘Problems saving snippets’ is closed to new replies.

 * ![](https://ps.w.org/post-snippets/assets/icon-128x128.gif?rev=2545587)
 * [Post Snippets - Custom WordPress Code Snippets Customizer](https://wordpress.org/plugins/post-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/post-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-snippets/reviews/)

## Tags

 * [forbidden](https://wordpress.org/support/topic-tag/forbidden/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mirza Hamza](https://wordpress.org/support/users/hamza1010/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/problems-saving-snippets/#post-16138939)
 * Status: resolved