Hello again!

Thanks for your quick response on the previous bug.

I have a new one for you. For this one, I set a filter to use HTML Purifier and that went fine. Then I rearranged the filters, hit submit, and got the following error.

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/.sonora/www26313/usleap.org/modules/contrib/htmlpurifier/library/HTMLPurifier/Bootstrap.php on line 37

Now, whenever I click on "configure" in the filter using HTML Purifier, I get that error. I am able to go to the "rearrange" page, but not the "configure" page. The error upon rearranging might be due to the fact that drupal was taking me back to the "configure" page, which I can't access.

So I can't turn off HTML Purifier even if its broken, though I could uninstall it (but that would suck).

I am hoping HTML Purifier will be the salvation of TinyMCE's inability to close tags that are left open by cut and pastes from Word on a client site.

Anyway, thanks for the great module.

Peace,
Jeremy

Comments

glass.dimly’s picture

Update....

When the client posted content that used HTML Purifier, it broke the site and gave the same error message as above. Had to remove HTML Purifier from the database.

peace
Jeremy

ezyang’s picture

Hello, you're using HTML Purifier 3.x on a PHP 4 install. This is not supported. Please use HTML Purifier 2.1.4 (it's on the downloads page, in PHP4 compatibility).

glass.dimly’s picture

Thanks, I switched my site to php 5 and it now works. Much appreciated.

It might be nice to list on the main page of HTML Purifier that it is incompatible with php 4, because if I were any more of a newbie than I already am and HTML Purifier caused my site to crash I would be greatly alarmed. That's the sort of things that make newbies weep and gnash their teeth.

In fact, I would put it in bold text, it's that significant for a newbie. Or hey, throw it in the install.txt file.

Respectfully,
Jeremy

ezyang’s picture

Component: Code » Documentation

Reassigning as documentation.

It is mentioned in INSTALL, I thought:

HTML Purifier is PHP 5 only, and is actively tested from PHP 5.0.5 and 
up. It has no core dependencies with other libraries. PHP 
4 support was deprecated on December 31, 2007 with HTML Purifier 3.0.0. 
Essential security fixes will be issued for the 2.1.x branch until 
August 8, 2008. 

I can add it to the main page, though.

glass.dimly’s picture

Thank you very much. Once again, I've got it running and it's the best filter module that I have used.

The install.txt file that I have which comes with 5.x-1.3, released 2008-05-12 reads only as follows:

* Place the htmlpurifier folder in your drupal modules directory.

* Download HTML Purifier from http://htmlpurifier.org/

* Extract the "library" folder and place it inside your modules/htmlpurifier
directory.

* Go to Administer > Site building > Modules and enable this module

* You can now create a new input format or add the HTML Purifier to an
existing input format. It is recommended that you place HTML Purifier as
the last filter in the input format. Reorder the filters if necessary.

Respectfully,
Jeremy

ezyang’s picture

Status: Active » Fixed

Fixed in CVS.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.