Closed jeffmpotter closed 10 years ago
I have to agree with this, but as it is not a problem unless your first request has an error..
And there is a error with git hub that doesn't update the page when you post a comment..... i just posted 5 not knowing it saved...lol
This is happening because error_handler (bp_includes/lib) is not initializing Jinja with the factory function provided by basehandler (called jinja2_factory). I split out generate_csrf_token and jinja2_factory from basehandler into a separate module, included it in both basehandler and error_handler, and that fixes the abovementioned behavior on our site.
I just sent a pull request with this change.
Closed with #291
'uri_for' is only defined in the basehandler.py and causes 500 'uri_for' undefined errors in certain circumstances.
Steps to reproduce:
When this happens the instance will never properly work (always gives uri_for errors for every valid uri). You have to manually stop the running instance and hope that the first request is always a valid page.