Note that there are some explanatory texts on larger screens.

plurals
  1. PO"Document is empty" error when applying Diazo theme in Apache
    primarykey
    data
    text
    <p>I'm trying to setup Apache to apply a Diazo theme, but it seems that the processing chain halts at some point, producing an empty file, which leads to an error (the error only appears if the line <strong><code>FilterChain THEME</code></strong> appears in the configuration, so I'm sure it's related to applying the theme).</p> <p>So far, I have applied the following steps:</p> <p>First, I compiled my rules.xml with diazocompile to produce a file <code>/home/elmolino/buildout/src/djangolino-theme/theme.xsl</code>.</p> <p>Then, I updated my apache configuration file to look like this:</p> <pre><code>WSGIPythonHome /home/elmolino/buildout/env LoadModule transform_module /usr/lib/apache2/modules/mod_transform.so LoadModule filter_module /usr/lib/apache2/modules/mod_filter.so &lt;VirtualHost *:80&gt; ServerName elmolino.usecm.com ServerAdmin xxx@xxx.com RewriteEngine On RewriteCond %{REQUEST_FILENAME} !/wsgi/ RewriteCond %{REQUEST_FILENAME} !/site_media/ RewriteCond %{REQUEST_FILENAME} !/static/ RewriteRule ^(.*)$ /wsgi/django.wsgi/$1 [QSA,PT,L] LogLevel info ErrorLog /home/elmolino/buildout/var/error_log CustomLog /home/elmolino/buildout/var/access_log common FilterDeclare THEME FilterProvider THEME XSLT resp=Content-Type $text/html TransformOptions +ApacheFS +HTML +HideParseErrors TransformSet /home/elmolino/buildout/src/djangolino-theme/theme.xsl # TransformCache /home/elmolino/buildout/src/djangolino-theme/theme.xsl /etc/apache2/theme.xsl # Paths to el molino site Alias /wsgi/ /home/elmolino/buildout/src/elmolino/apache/ &lt;Directory /home/elmolino/buildout/src/elmolino/apache&gt; Options ExecCGI SetHandler wsgi-script FilterChain THEME Order allow,deny Allow from all AuthType Basic AuthName "ElMolino FrontEnd" AuthUserFile /etc/apache2/authorization-users Require valid-user &lt;/Directory&gt; # serve media files Alias /site_media "/home/elmolino/buildout/var/media" # serve static files Alias /static "/home/elmolino/buildout/var/static" &lt;/VirtualHost&gt; </code></pre> <p>When I then try to access the home page of my site, an error "No data received" appears in the browser</p> <pre><code>Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data. </code></pre> <p>The error log shows the following messages:</p> <pre><code>info [client 213.97.51.211] mod_wsgi (pid=32415, process='', application='elmolino.usecm.com|/wsgi/django.wsgi'): Loading WSGI script '/home/elmolino/buildout/src/elmolino/apache/django.wsgi'. error [client 213.97.51.211] mod_transform::libxml2_error: /home/elmolino/buildout/src/djangolino-theme/theme.xsl:1: error [client 213.97.51.211] mod_transform::libxml2_error: parser error [client 213.97.51.211] mod_transform::libxml2_error: error : error [client 213.97.51.211] mod_transform::libxml2_error: Document is empty\n error [client 213.97.51.211] mod_transform::libxml2_error: \n error [client 213.97.51.211] mod_transform::libxml2_error: ^\n error [client 213.97.51.211] mod_transform::libxml2_error: /home/elmolino/buildout/src/djangolino-theme/theme.xsl:1: error [client 213.97.51.211] mod_transform::libxml2_error: parser error [client 213.97.51.211] mod_transform::libxml2_error: error : error [client 213.97.51.211] mod_transform::libxml2_error: Start tag expected, '&lt;' not found\n error [client 213.97.51.211] mod_transform::libxml2_error: \n error [client 213.97.51.211] mod_transform::libxml2_error: ^\n error [client 213.97.51.211] mod_transform: XSLT: Loading of the XSLT File has failed </code></pre> <p>Help is really appreciated! Maarten</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload