Closed (fixed)
Project:
HTML Purifier
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2013 at 12:07 UTC
Updated:
7 May 2013 at 18:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
heddnWhat version of HTMLPurifier upstream are you using? 4.5 or 4.4?
Comment #2
akamaus commentedI tested with both. The error stays the same.
Comment #3
sitekick commentedjust ran into this situation. it gave me the 7.x-2.x-dev version when I ran drush pm-update htmlpurifier I uninstalled htmlpurifier then drush pm-download htmlpurifier for the 7.x-1.0 version. Then that error went away
Comment #4
heddnI had sometime to investigate today. The reason for the no class found error is because the dry run on line 531 didn't have any text to dry run with. So, lets give it some... Try this patch on for size.
Comment #5
heddnComment #6
roadran422 commentedAfter applying this patch, "htmlpurifier-HTMLPurifier_Printer_ConfigForm-not-found-1962328-4.patch" from the poster above. I get this error
Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/htmlpurifier/DefinitionCache.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tpol/public_html/website.cc/sites/all/modules/htmlpurifier/htmlpurifier.module on line 144Upon renaming "DefinitionCache.php" on line 144 to "HTMLPurifier_DefinitionCache_Drupal.php" gives me this error
Fatal error: require_once() [function.require]: Failed opening required 'HTMLPurifier/DefinitionCache.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tpol/public_html/website.cc/sites/all/modules/htmlpurifier/HTMLPurifier_DefinitionCache_Drupal.php on line 6Lastly, upon renaming "DefinitionCache.php" on line 6 to "HTMLPurifier_DefinitionCache_Drupal.php" gives me this error
Fatal error: require_once() [function.require]: Failed opening required '/HTMLPurifier/HTMLPurifier_DefinitionCache_Drupal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tpol/public_html/website.cc/sites/all/modules/htmlpurifier/HTMLPurifier_DefinitionCache_Drupal.php on line 6Comment #7
heddnDefinitionCache.php is a file from upstream in the library. It isn't bundled within the Drupal module. Is the library in sites/all/libraries (or equivalent) and are file permissions appropriately set? Check the site status report to confirm the library is correctly configured and report back to us.
Comment #8
proweb.ua commented#4 works for me
Comment #9
heddnSee commit: http://drupalcode.org/project/htmlpurifier.git/commit/45e9ba1f19db0ec6c3...