Welcome! » Log In » Create A New Profile

[FixedBug] HTMLPurifier 2.0 problem

Posted by laacz 
[FixedBug] HTMLPurifier 2.0 problem
June 21, 2007 01:44PM

I get this when this code is called:

require('HTMLPurifier.php');

[Thu Jun 21 20:40:19 2007] [error] [client 66.249.73.153] PHP Fatal error: Class 'HTMLPurifier_DefinitionCache_Decorator' not found in /usr/local/lib/php/HTMLPurifier/DefinitionCache/Decorator/Memory.php on line 11 [Thu Jun 21 20:40:19 2007] [error] [client 66.249.73.153] PHP Stack trace: [Thu Jun 21 20:40:19 2007] [error] [client 66.249.73.153] PHP 1. {main}() [some file]:0 [Thu Jun 21 20:40:19 2007] [error] [client 66.249.73.153] PHP 2. require() [some file]:15 [Thu Jun 21 20:40:19 2007] [error] [client 66.249.73.153] PHP 3. require_once() /usr/local/lib/php/HTMLPurifier.php:46 [Thu Jun 21 20:40:19 2007] [error] [client 66.249.73.153] PHP 4. require_once() /usr/local/lib/php/HTMLPurifier/Config.php:9 [Thu Jun 21 20:40:19 2007] [error] [client 66.249.73.153] PHP 5. require_once() /usr/local/lib/php/HTMLPurifier/DefinitionCacheFactory.php:3 [Thu Jun 21 20:40:19 2007] [error] [client 66.249.73.153] PHP 6. require_once() /usr/local/lib/php/HTMLPurifier/DefinitionCache.php:6 [Thu Jun 21 20:40:19 2007] [error] [client 66.249.73.153] PHP 7. require_once() /usr/local/lib/php/HTMLPurifier/DefinitionCache/Decorator.php:5

Re: HTMLPurifier 2.0 problem
June 21, 2007 01:46PM

Forgot to mention, that PHP is v5.2.3

Re: HTMLPurifier 2.0 problem
June 21, 2007 01:49PM

Troubling. All of the classes seem to be properly defined. What are the contents of /usr/local/lib/php/HTMLPurifier/DefinitionCache/Decorator.php? Also, what installation method did you use?

HTML Purifier, Standards Compliant HTML Filtering

Edited 2 time(s). Last edit at 06/21/2007 10:51AM by Ambush Commander.

Re: HTMLPurifier 2.0 problem
June 21, 2007 01:54PM

First lines (if this is what you are interested in) are:

require_once 'HTMLPurifier/DefinitionCache.php'; require_once 'HTMLPurifier/DefinitionCache/Decorator/Memory.php'; require_once 'HTMLPurifier/DefinitionCache/Decorator/Cleanup.php'; class HTMLPurifier_DefinitionCache_Decorator extends HTMLPurifier_DefinitionCache ...

I tried both methods - downloadint PHP5 version and install via pear upgrade. Both resulted in this error.

Re: HTMLPurifier 2.0 problem
June 21, 2007 01:57PM

Move the two decorator includes in that file to the bottom. That should fix it.

I don't know why it's not throwing errors for me though. :?

HTML Purifier, Standards Compliant HTML Filtering

Edited 1 time(s). Last edit at 06/21/2007 10:57AM by Ambush Commander.

Re: HTMLPurifier 2.0 problem
June 21, 2007 02:02PM

Yes, moving these two includes to bottom fixed problem. What shall I do when time comes to upgrade? :)

Re: HTMLPurifier 2.0 problem
June 21, 2007 02:05PM

It'll be fixed.

Ah well, I was hoping I wouldn't have to do a 2.0.1 release until a month later, looks like that won't happen now.

HTML Purifier, Standards Compliant HTML Filtering

Sorry, you do not have permission to post/reply in this forum.