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
Comment #1
glass.dimly commentedUpdate....
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
Comment #2
ezyang commentedHello, 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).
Comment #3
glass.dimly commentedThanks, 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
Comment #4
ezyang commentedReassigning as documentation.
It is mentioned in INSTALL, I thought:
I can add it to the main page, though.
Comment #5
glass.dimly commentedThank 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
Comment #6
ezyang commentedFixed in CVS.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.