First time here? Check out the FAQ!
0

Getting 404 Saving Sidebar Settings
 

When I try to save my side bar settings, I get a 404 error message.

What might be causing this?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
SwisherSweet's avatar
67
SwisherSweet
asked 10 years ago

Comments

Which setting are you trying to fill out?

Evgeny's avatar Evgeny (10 years ago)

I'm trying to fill out the: Settings → Static Content, URLS & UI → Main page sidebar → Custom sidebar header (English)

SwisherSweet's avatar SwisherSweet (10 years ago)

I cannot reproduce this issue on the master branch of Askbot.

Evgeny's avatar Evgeny (10 years ago)

@Matthew did you get this issue fixed?

Evgeny's avatar Evgeny (10 years ago)
see more comments

1 Answer

0

Maybe by the time you were posting the change you were logged out or logged in under unprivileged account? Only site administrators can change the settings.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 10 years ago
link

Comments

I tired 7 to 8 different times. I wasn't logging out and I believe the first account is an admin account. Is there a log I can find the root problem?

SwisherSweet's avatar SwisherSweet (10 years ago)

I don't see yet from where the 404 may be coming. Who has access to settings is actually controlled by the `is_staff` and `is_active` fields on the `User` record, both must have `True` boolean values..

Evgeny's avatar Evgeny (10 years ago)

The user has both Staff and Active flags set. In addition, they user also has Superuser status.

SwisherSweet's avatar SwisherSweet (10 years ago)

Maybe try setting `DEBUG=True`, might help if there is an issue with the url. Otherwise you could try addding `import pdb; pdb.set_trace()` in the beginning of the function `askbot.deps.livesettings.views.group_settings`, run the site with the `runserver` command and step with the debugger. If the breakpoint is never reached, insert the same statements upstream in the call chain until the breakpoint works. With a hard to understand issues using debugger would be the method to try.

Evgeny's avatar Evgeny (10 years ago)
see more comments