Just changed from 7.2 back to 7.1 as per the update and found that cannot add a text format due to a redeclaration of class. This can be reproduced across two machines that were previously working with 7.2 one which was upgraded (to 7.1) and one which had a fresh install. One machine has the HTMLpurifier 4.4.0 code in libraries, one has it in a subfolder of the module (and gets the warning in the status page).
To reproduce go to
admin/config/content/formats/add
to add a new text format.
message in logs
PHP Fatal error: require_once(): Cannot redeclare class htmlpurifier_definitioncachefactory in ******/sites/all/modules/htmlpurifier/library/HTMLPurifier/Bootstrap.php on line 45
Comments
Comment #1
heddnThanks for the thorough steps to reproduce the problem. However, I'm not able to reproduce it locally. Do you have anything funky in your php setup? Can you produce the problem on different machines? Try following these steps http://www.lullabot.com/articles/quick-and-dirty-debugging so we have a backtrace to see where it is getting called a 2nd time. Are you using apc? Can you try disabling that and see if the problem goes away?
Comment #2
Anonymous (not verified) commentedCannot reproduce either, was not using a cache or anything similar, I left it disabled waiting for the next version, but in the meantime I did install memched and removed some other modules to get rid of hooks etc... and that may have cleared it out. Sorry, it was running on two different sites, one fresh install and one old one upgraded and both failed at the same point, I will try it on another site without the extra modules, but I would close this.
Comment #3
heddn