question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server Error on SideBar

See original GitHub issue

Issue Summary

This issue is concerning wagtail’s sidebar, when a user has been created within the CMS, the Root Page/Pages on the sidebar don’t load and the following error appears: status_code : 403 Endpoint : ...cms/api/v2beta/pages/?child_of=1&for_explorer=1

screen shot 2018-07-31 at 15 39 57

Response :

screen shot 2018-07-31 at 16 39 54

Although it works perfectly when the user has been created from the terminal as superuser which makes me think it might be related to permissions. So I tried with many different users and permissions and allowing access to the Root page too and making him an Admin, but the issue remains. The permission side of thingns still works perfectly and can be accessed by the dashboard :

screen shot 2018-07-31 at 16 05 22

Steps to Reproduce

After setting up a wagtail project with some lists and detail pages with “HomePage” as Root Parent. Structure : (Root)HomePage > (List Page) News > (Detail Page) Articles

  1. Create a new Permissions Group.
  2. Give Group Page Permission to the Root Page & News (Tried all kind of combinations).
  3. Create a new user under Settings > Users > Add a User.
  4. When creating the user, adding it to the correspondent group.
  5. Login as the newly created user.
  6. Open sidebar and the error should appear.

Technical details

  • Python version: Run 2.7.10
  • Django version: 1.11.13
  • Wagtail version: 2.1.11
  • Browser version: Tried with Firefox 61 & Chrome 67.

Thank You in Advance !!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
udanielicommented, Jul 30, 2019

@LuisJLopez I had the same issue adding wagtail to an existing project. In my case this issue was related to my rest-framework project configuration. If you overrode some of the following settings (children of REST_FRAMEWORK dictionary):

  • DEFAULT_AUTHENTICATION_CLASSES
  • DEFAULT_PERMISSION_CLASSES

be sure that wagtail can use the rest_framework.authentication.SessionAuthentication

0reactions
LuisJLopezcommented, Aug 1, 2018

@gasman from a fresh install there is no issue, so it must be related to the way we have setup the structure within the project, thank you for your help 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the Sidebar Below Content Error in WordPress
If the sidebar on your WordPress website is appearing at the bottom of your page, rather than the side, don't worry.
Read more >
How to Fix the Sidebar Below Content Error in WordPress
The most common cause of the sidebar appearing below the content is an HTML or CSS error breaking the layout. Each <div> in...
Read more >
Topic: Feed won't show up in sidebar Internal Server Error
When I add the widget, then the feed url (wich is good) the click save/apply etc – the page gives me the “Internal...
Read more >
Server Error after updating sidebar/about page - Archive
After updating a sidebar/about page on a grav skeleton running receptar theme i get these Server Error Sorry, something went terribly wrong!
Read more >
How to fix the sidebar below content error in WordPress
When there is an unclosed HTML div tag or an additional div tag then your sidebar may go outside of the wrapper element....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found