Error on normal install
skydoc - August 1, 2008 - 13:48
| Project: | htmLawed |
| Version: | 6.x-2.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | alpha2zee |
| Status: | closed |
Jump to:
Description
Hi
I have just installed your module on the latest 6.x build and get the following error on my site now:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /usr/local/psa/........./sites/all/modules/htmLawed/htmLawed.module on line 26
I also cant delete the module although I can get the site back by deleting the module directory. Can you suggest what might be going on here or tell me how can do a complete manual uninstall and do a reinstall?
Also - the install instructions describe incompatible modules, but I cant find a list of known incompatibilities - can you point me to one?
Thanks
Geoff Tothill

#1
Using php 4.x >> Changed to PHP 5.x and problem vanished! So closed issue.
#2
Thanks for bringing this to light. The htmLawed.module code has 'chaining' in the codes using the db_fetch_object function. The 'chaining' does not work in PHP 4.
The latest versions of the module have fixed this for both Drupal 5 and 6.
#3
#4
Geoff:
There are so many modules there, even counting only the filter modules!
I don't think there will be any incompatibility with a non-filter module.
As for the filter modules, any module whose logic is based on the characters <, > and & in the input text (such as a smiley/emoticon module) can possibly create an incompatibility issue. However, any incompatibility will likely be resolved if the htmLawed filter is set to run the last, after all other modules have acted.
Incompatibility may be more difficult to solve if htmLawed is used to filter input data before saving. The htmLawed module is compatible with Drupal's PHP input filter with this option enabled, but if other filters relying on characters <, > and & are in use, then the best option is to turn off htmLawed module's 'pre-save filtering' option.
#5