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?

SwisherSweet's avatar
67
SwisherSweet
asked 2015-02-07 15:47:55 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Which setting are you trying to fill out?

Evgeny's avatar Evgeny (2015-02-07 16:04:54 -0500) edit

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

SwisherSweet's avatar SwisherSweet (2015-02-07 16:08:22 -0500) edit

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

Evgeny's avatar Evgeny (2015-02-07 16:29:08 -0500) edit

@Matthew did you get this issue fixed?

Evgeny's avatar Evgeny (2015-02-13 21:21:30 -0500) edit
add a comment 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.

Evgeny's avatar
13.2k
Evgeny
answered 2015-02-07 16:34:10 -0500
edit flag offensive 0 remove flag delete 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 (2015-02-07 16:43:02 -0500) edit

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 (2015-02-07 16:53:36 -0500) edit

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

SwisherSweet's avatar SwisherSweet (2015-02-07 17:02:19 -0500) edit

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 (2015-02-07 17:31:30 -0500) edit
add a comment see more comments