Closed (fixed)
Project:
HTML Purifier
Version:
5.x-1.2
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 May 2008 at 08:44 UTC
Updated:
26 May 2008 at 19:32 UTC
Looks interesting - I'm trying to find a satisfactory solution to all the html issues contained in feeds to my blog aggregation site www.blogotariat.com. I am using D5.7 on a PHP5 host.
I've installed the module, copied the library folder ie /modules/htmlpurifier/library and created a new input filter /admin/settings/filters/. When I click on configure I receive the following error:
Fatal error: Undefined class constant 'VERSION' in /public_html/blogotariat/modules/htmlpurifier/htmlpurifier.module on line 112
Line 112 has the following:
if (!defined('HTMLPurifier::VERSION') && version_compare(HTMLPurifier::VERSION, '3.1.0-dev', '>=')) {
Comments
Comment #1
Slim Pickens commentedI fixed the problem in the short term by removing the if test condition and the matching else construct but an update might be good.
Seems to be working OK for the moment - I'll watch with interest as the feeds come in.
Comment #2
ezyang commentedHello, we've released 5.x-1.3 which fixes this specific problem. Your hotfix sort of works... you end up with some extra form elements (the forbidden attributes and elements) that don't actually work, but there are no errors. I strongly recommend, however, that you upgrade your version of HTML Purifier to 3.1.0rc1.
Comment #3
ezyang commentedComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.