Anwiki CMS

Anwiki CMS : the first wiki/CMS dedicated to multilingual contents
Tasklist

FS#96 - "view" action swallows exceptions thrown during HTML rendering

Attached to Project: Anwiki CMS
Opened by Wladimir Palant (trev) - Tuesday, 22 June 2010, 07:53 GMT
Last edited by anw (anw) - Monday, 06 September 2010, 21:49 GMT
Task Type Bug Report
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Anwiki 0.2.2
Due in Version Next Anwiki version
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I just got the error message "Unable to render content. You may need to edit and update this content." It is clear that I made a mistake in the template somewhere - but there is no way to tell what this mistake is. The original error was neither written to the server's error log nor Anwiki's log which makes debugging this problem rather hard. I think this change to action_view.php is necessary:

catch (AnwException $e)
{
+ AnwDebug::reportError($e);
$oOutputHtml = new AnwOutputHtml($this->getoPage());
$oOutputHtml->setBody( self::g_("err_rendercontent"), false );
}
This task depends upon

Closed by  anw (anw)
Monday, 06 September 2010, 21:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  Commited
Comment by Wladimir Palant (trev) - Tuesday, 31 August 2010, 10:54 GMT
Attached proper patch for this issue.

Loading...