Anwiki CMS : the first wiki/CMS dedicated to multilingual contents
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
Opened by Wladimir Palant (trev) - Tuesday, 22 June 2010, 07:53 GMT
Last edited by anw (anw) - Monday, 06 September 2010, 21:49 GMT
|
DetailsI 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
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.
anwiki96.patch
(1.1 KiB)