First time here? Check out the FAQ!
1

Adding "Instructions on how to ask questions" leads to server errors.
 

I've just been trying to add a snippet to the "Instructions on how to ask questions" setting. I validated the snippet, and it's correct:

<h2>How do I ask a good question?</h2>
Good questions are easy to find, and should have enough information for someone to suggest a solution. Here are some tips on asking good questions:

<ul>
<li>Frame a question</li>
<li>Use correct tags. See the <a href="ask.stg.fedoraproject.org/tags">list of tags</a> for what tags you should use. It makes it easy for people to find your question</li>
<li>Use the mark up tools: This makes your question more readable</li>
<li>Provide information that could be helpful to a reader</li>
</ul>

A complete list of tips is maintained on our <a href="https://fedoraproject.org/wiki/Ask_fedora_guidelines#List">guidelines page</a>. Please do read it through at least once.

When I click the "save" button, the server barfs with an internal error. Here's the httpd error log snippet:

[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88] mod_wsgi (pid=14598): Exception occurred processing WSGI script '/usr/sbin/askbot.wsgi'.
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88] Traceback (most recent call last):
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 272, in __call__
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     response = self.get_response(request)
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 169, in get_response
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 218, in handle_uncaught_exception
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     return callback(request, **param_dict)
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     response = view_func(request, *args, **kwargs)
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/django/views/defaults.py", line 31, in server_error
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     return http.HttpResponseServerError(t.render(Context({})))
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/coffin/template/__init__.py", line 54, in render
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     return super(Template, self).render(**context)
[Wed Jun 19 05:04:04 2013] [error] [client ...
(more)

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)
FranciscoD's avatar
71
FranciscoD
asked 11 years ago

Comments

see more comments

1 Answer

0

I cannot reproduce this issue. Copy/pasted your exact code and it just works.

Try this with runserver and debug mode enabled.

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 11 years ago
link

Comments

Aha! I'll do that and post. Thanks for confirming @Evgeny

FranciscoD's avatar FranciscoD (11 years ago)

Seems to work recently. Not sure what changed.

FranciscoD's avatar FranciscoD (11 years ago)

It's happen sometimes in random /settings options, what I do is click back button redo my settings and save, I don't have any idea what's wrong with that.

Mustafa's avatar Mustafa (11 years ago)

@Mustafa, enable debug mode to see the cause of this. Don't know if this is relevant in your case, but do use real cache backend in production, with locmem there will be issues with the multiprocess setup.

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