silverstripe-searchable-dataobjects icon indicating copy to clipboard operation
silverstripe-searchable-dataobjects copied to clipboard

Error : Class 'HTMLPurifier_Config' not found

Open seppzzz opened this issue 2 years ago • 1 comments

Running Task Populate Search

[Emergency] Uncaught Error: Class 'HTMLPurifier_Config' not found GET /dev/tasks/PopulateSearch

any help? OK. I found out: Thats more an issue (?) on Purifier.php

i had to add a require_once right after 'namespace g4b0\HtmlPurifier;':

namespace g4b0\HtmlPurifier;
require_once '../vendor/ezyang/htmlpurifier/library/HTMLPurifier.auto.php';

sepp.

seppzzz avatar Sep 10 '22 05:09 seppzzz

Sounds like a Composer issue to me, you may need to re-run composer install or try a composer dump-autoload. With composer autoload you shouldn't have to manually require files.

Anyways this is not likely a problem with this module.

davejtoews avatar Sep 16 '22 17:09 davejtoews