[horde] Horde 6 - Inline HTML error
Brent
impuser at bitrealm.com
Mon Apr 6 19:30:29 UTC 2026
It appears you have an older css parser or something. Here's my
configuration that is working with the same mime local file to enable
html viewing.
$ composer show|grep css
horde/css_parser 2.0.0beta6 CSS parser library
horde/cssminify 2.0.0beta6 CSS minification library
sabberworm/php-css-parser 8.9.0 Parser for CSS Files written in PHP
Enable the test.php script and see if it finds anything. Ralph and the
team have put a lot more helpful debugging information into it and
maybe it'll help isolate the issue.
brent
Quoting Nels Lindquist <nlindq at maei.ca>:
> PHP 8.5 FPM.
> Latest H6 updated this morning.
>
> I enabled inline HTML in IMP, by setting:
>
>> $mime_drivers['html']['inline'] = true;
>
> in var/config/imp/mime_drivers.local.php.
>
> After doing so, I'm now receiving an error when attempting to view
> mail messages with HTML:
>
> [imp] Error: Call to undefined method
> Horde\Css\Parser\Parser::keepOnlyDangerousCss() in
> /var/www/html/horde6/vendor/horde/imp/lib/Mime/Viewer/Html.php:617
>
> Stack trace:
> #0
> /var/www/html/horde6/vendor/horde/imp/lib/Mime/Viewer/Html.php(558):
> IMP_Mime_Viewer_Html->_parseCss()
> #1
> /var/www/html/horde6/vendor/horde/imp/lib/Mime/Viewer/Html.php(166):
> IMP_Mime_Viewer_Html->_processDomDocument()
> #2
> /var/www/html/horde6/vendor/horde/imp/lib/Mime/Viewer/Html.php(76):
> IMP_Mime_Viewer_Html->_IMPrender()
> #3
> /var/www/html/horde6/vendor/horde/mime_viewer/lib/Horde/Mime/Viewer/Base.php(157):
> IMP_Mime_Viewer_Html->_renderInline()
> #4 /var/www/html/horde6/vendor/horde/imp/lib/Contents.php(665):
> Horde_Mime_Viewer_Base->render()
> #5
> /var/www/html/horde6/vendor/horde/imp/lib/Mime/Viewer/Alternative.php(137):
> IMP_Contents->renderMIMEPart()
> #6
> /var/www/html/horde6/vendor/horde/imp/lib/Mime/Viewer/Alternative.php(55):
> IMP_Mime_Viewer_Alternative->_IMPrender()
> #7
> /var/www/html/horde6/vendor/horde/mime_viewer/lib/Horde/Mime/Viewer/Base.php(157):
> IMP_Mime_Viewer_Alternative->_renderInline()
> #8 /var/www/html/horde6/vendor/horde/imp/lib/Contents.php(665):
> Horde_Mime_Viewer_Base->render()
> #9
> /var/www/html/horde6/vendor/horde/imp/lib/Contents/Message.php(594):
> IMP_Contents->renderMIMEPart()
> #10
> /var/www/html/horde6/vendor/horde/imp/lib/Contents/Message.php(336):
> IMP_Contents_Message->_getInlineOutput()
> #11
> /var/www/html/horde6/vendor/horde/imp/lib/Contents/Message.php(176):
> IMP_Contents_Message->getInlineOutput()
> #12 /var/www/html/horde6/vendor/horde/imp/lib/Ajax/Queue.php(462):
> IMP_Contents_Message->showMessage()
> #13
> /var/www/html/horde6/vendor/horde/imp/lib/Ajax/Application/Handler/Common.php(702):
> IMP_Ajax_Queue->message()
> #14
> /var/www/html/horde6/vendor/horde/core/lib/Horde/Core/Ajax/Application.php(179):
> IMP_Ajax_Application_Handler_Common->showMessage()
> #15 /var/www/html/horde6/vendor/horde/horde/services/ajax.php(64):
> Horde_Core_Ajax_Application->doAction()
> #16 /var/www/html/horde6/web/horde/services/ajax.php(3): require_once('...')
> #17 {main} [pid 536324 on line 76 of
> "/var/www/html/horde6/vendor/horde/core/lib/Horde/ErrorHandler.php"]
>
> --
> Nels Lindquist
> nlindq at maei.ca
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/To unsubscribe,
> mail: horde-unsubscribe at lists.horde.org
More information about the horde
mailing list