Ask Your Question
1

VariableDoesNotExist 500.jinja.html b/c no RequestContext

asked 2012-06-28 16:46:18 -0500

Jtrain gravatar image Jtrain flag of Germany
283 4 4 16

updated 2012-06-29 00:09:29 -0500

Evgeny gravatar image Evgeny flag of Chile
11044 50 84 182
http://askbot.org/

Server 500 errors on my installation fail to render because the handler500 is passing an empty context when the 500.jinja.html is expecting RequestContext.

There used to be a work around in the PageSize middleware. But now that has been removed. I assume you have dealt with the problem elsewhere, but I cant find where.

My details:

  • database migrations run up to and including number 0122
  • request template context processor is present
  • the urls.py tuple isn't empty

The site was generated using the askbot-setup command and I loaded a previous forum that had migrations up to and including 0113 applied.

Any clues on where to look?

delete close flag offensive retag edit

Comments

If it helps you out, I did a fresh install without loading from a previous forum (having dropped the database) and I see the same problem. Askbot Version 0.7.43 according to the footer.

Jtrain ( 2012-06-28 16:55:17 -0500 )edit

Maybe we could create custom handler500? Should not hurt to have one extra variable in the context...

Evgeny ( 2012-06-29 00:11:27 -0500 )edit

I guess so, but maybe I'm doing it all wrong. Does anyone else have the same error or symptoms?

Jtrain ( 2012-06-29 03:11:30 -0500 )edit

I've migrated to master branch now. Perhaps this fixes the issue, it did fix the problem I had with RSS urls

Jtrain ( 2012-06-29 08:37:32 -0500 )edit

Be the first one to answer this question!

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-06-28 16:46:18 -0500

Seen: 36 times

Last updated: Jun 28 '12