Welcome! » Log In » Create A New Profile

Again, an error

Posted by laacz 
Again, an error
September 05, 2007 07:03AM

PHP 5.2.3, PEAR - last version, /usr/local/lib/php in path

When upgrading to HTMLPurifier version 2.1.2 (most recent), things stopped working :)

PHP Fatal error: Class 'HTMLPurifier_AttrDef_URI_Email' not found in /usr/local/lib/php/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php on line 9

That is achieved just by requiring HTMLPurifier.php.

Re: Again, an error
September 05, 2007 07:13AM

Mrmm... you can delete the contents of that file for now. It doesn't do anything. I wonder why PEAR is barfing though...

Re: Again, an error
September 05, 2007 07:53AM

And what will happen when I will upgrade though "pear upgrade channel://htmlpurifire.org/htmlpurifier" with next release?

Re: Again, an error
September 05, 2007 07:15PM

Because PEAR (as far as I know) doesn't do incremental updates, a newer version will cleanly write over the edited files. If it turns out that class will be used, it will have been changed. If the class is not to be used, well, no problems.

Re: Again, an error
September 05, 2007 07:21PM

Figured out the error (it's one we've seen before): poorly ordered include lists, basically including sub-classes before the parent class. I don't know why this doesn't result in errors on my system.

James Dee
Re: Again, an error
September 18, 2007 11:32PM

I'm trying to run HTML Purifier 2.1.2 php4 and I am getting this error. Is there a fix ?

Re: Again, an error
September 18, 2007 11:33PM

Yes, delete the contents of the file that is attempting to do the offensive include.

Author:
Your Email:

Subject:

HTML input is enabled. Make sure you escape all HTML and angled brackets with < and >.

Auto-paragraphing is enabled. Double newlines will be converted to paragraphs; for single newlines, use the pre tag.

Allowed tags: a, abbr, acronym, b, blockquote, caption, cite, code, dd, del, dfn, div, dl, dt, em, i, ins, kbd, li, ol, p, pre, s, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var.

For inputting literal code such as HTML and PHP for display, use CDATA tags to auto-escape your angled brackets, and pre to preserve newlines:

<pre><![CDATA[
Place code here
]]></pre>

Power users, you can hide this notice with:

.htmlpurifier-help {display:none;}

Message: