On Sat, Mar 20, 2010 at 3:50 PM, cd34 <mcd...@gmail.com> wrote:
> I've noticed that since upgrading from 0.9.7 that sometimes rather
> than the interactive trackback, I get a white screen with just:
>
> Internal Server Error
>
> This can occur with something as simple as:
>
> ${some_undefined_string}
>
> When I upgraded, I used the -t switch, merged the configurations, so,
> have I copied too much from one of the files into the 1.0 files?

You get different kinds of Internal Server Errors depending on which
point of the code the exception happens. One shows the error inside an
<h1>; that's Paste's top-level exception handler.  The other says
"Internal Server Error" inside a text/plain; that occurs at a really
low (early) point in the code I think, such as an error in
environment.py.  When I've gotten that, I think the actual traceback
is printed in the error log.

"${undefined}" would presumably occur inside the Mako template. In
that case, I don't know why the regular error handler wouldn't catch
it.  What does 0.9.7 do in that case?

You would have to use "-t pylons" and not just "-t".  "-t" alone, if
it's even allowed, would use Paste's default template which is very
different.

It's possible the error could be caused by something incorrectly
merged from the old application structure. Although I'd expect the
application wouldn't work at all in that case. Most of the differences
since 0.9.7 are in environment.py and middleware.py, so you'd expect
that any error there would make the application not start.  You could
do the merge again, or create a new default application and compare
your code to it.

Otherwise, what other things trigger this error, and does the error
log say anything?

-- 
Mike Orr <sluggos...@gmail.com>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-disc...@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to