Title: cannot access snippets
Last modified: March 17, 2021

---

# cannot access snippets

 *  Resolved [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-snippets/)
 * Hi,
 * I am trying to view a snipped I made in the past. But everytime I am trying to
   access any I’m getting a message that I am not allowed to access the page.
    I
   am working as an administrator on the website and all my permissions are turned
   on. It worked yesterday and didn’t update WordPress nor Code Snippets since then.
 * Any ideas what could cause the problem?
 * Best regards,
    Olga

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-snippets/#post-14197061)
 * Hi Olga,
 * Do you receive this error when trying to view any snippet, or only when trying
   to view one specific snippet?
 *  Thread Starter [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-snippets/#post-14197065)
 * Hi [@bungeshea](https://wordpress.org/support/users/bungeshea/)
 * It happens with all snippets (the active and inactive ones)
    It only doesn’t 
   happen when I want to add a new one…
 *  Thread Starter [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-snippets/#post-14199514)
 * Hi,
 * It was a problem with my profile. I solved it.
    So it did had anything to do 
   with your plugin, I’m sorry for the trouble.
 * Best,
    Olga
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-snippets/#post-14199536)
 * Glad to hear you managed to get it fixed!
 * If it’s possible, I’d be interested in hearing exactly what the problem was, 
   as I’ve of this sort of problem cropping up before.
 *  Thread Starter [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-snippets/#post-14199564)
 * Hi [@bungeshea](https://wordpress.org/support/users/bungeshea/)
 * Sure, I had multiple user roles assigned to me which probably caused the problem.
   
   I followed the steps in the following link to set it back to only administrator(
   step 4): [https://kinsta.com/knowledgebase/sorry-you-are-not-allowed-to-access-this-page-error-in-wordpress/#4-make-sure-youre-an-administrator](https://kinsta.com/knowledgebase/sorry-you-are-not-allowed-to-access-this-page-error-in-wordpress/#4-make-sure-youre-an-administrator)
 * So I looked for my user_ID, then went to the wp_usermeta table and searched for
   my user_ID and changed the wp_capabilties line to this:
 * **a:1:{s:13:”administrator”;s:1:”1″;}**
 * That’s all I did and helped for me 🙂

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

The topic ‘cannot access snippets’ 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
 * 2 participants
 * Last reply from: [oberning](https://wordpress.org/support/users/oberning/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-snippets/#post-14199564)
 * Status: resolved