When uploading DITA topics via the form at: /uploaddita, the uploaded topic rendering is garbled. It looks fine when viewing the DITA XML, but not the default rendering.

The Error Log is showing the following errors:
DOMDocument::loadXML(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /var/www/html/sites/all/modules/contrib/dita/dita.export.inc on line 48.

and also:
DOMDocument::loadXML(http://blah/sites/all/modules/contrib/dita/dtd1.2/technicalContent/dtd/c...): failed to open stream: no suitable wrapper could be found in /var/www/html/sites/all/modules/contrib/dita/dita.export.inc on line 48.

Comments

shudson310’s picture

Solution is to edit your php.ini file to allow fopen:

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-...
allow_url_fopen = On

shudson310’s picture

Base DITA topic type is also not rendering:

<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic_display_centerdisplay">
<title>Centering Video Display</title>
  <body>
<p>...</p>
</body>
</topic>
mimrock’s picture

Status: Active » Closed (fixed)
mimrock’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.