415 | | === Missing Headers and Footers |
416 | | |
417 | | If python optimizations are enabled, then headers and footers will not be rendered. An error will be raised in Trac 1.0.11 and later when optimizations are enabled. |
418 | | |
419 | | In your WSGI configuration file, the `WSGIPythonOptimize` setting must be set to `0` (`1` or `2` will not work): |
420 | | |
421 | | {{{#!apache |
422 | | WSGIPythonOptimize 0 |
423 | | }}} |
424 | | |
425 | | On Ubuntu, the WSGI mod configuration is at `/etc/apache2/mods-enabled/wsgi.conf`. |
426 | | |
427 | | The same issue is seen with `PythonOptimize On` in [TracModPython#Pagelayoutissues ModPython]. |
428 | | |