[Vtigercrm-developers] HTMLPurigier_Config not found error

Rubén A. Estrada Orozco rulotec1 at gmail.com
Mon Oct 24 16:24:25 GMT 2022


Hi guys,

Martin, I think that's the reason. One module (which I thought was not
related to this error) does use Composer packages. That's very probably the
case. I think it's also related to the specific php version (7.0) being
used. Maybe its related to this exception in the function pointed out by
Alan:

HTML Purifier autoloader registrar is not compatible
with non-static object methods due to PHP Bug #44144;
Please do not use HTMLPurifier.autoload.php (or any
file that includes this file); instead, place the code:
spl_autoload_register(array(\'HTMLPurifier_Bootstrap\', \'autoload\'))
after your own autoloaders.


Thanks a lot!

Saludos

Rubén


On Mon, Oct 24, 2022 at 3:44 AM Alan Lord <alanslists at gmail.com> wrote:

> On 24/10/2022 09:12, Martin Allen wrote:
> > We had an issue with the vtlib_purify function recently (that appears in
> > your stacktrace) – which prevented it working correctly if we had used
> > any Composer packages prior to that function. It appears that the
> > function tries to unload autoloaded items, but cant do this correctly
> > when Composer has autoloaded items.
>
> Interesting.
>
> If you follow the code path for the HTMLPurifier, during its
> initialisation it does actually call spl_autoload_unregister()...
>
>
>
> https://code.vtiger.com/vtiger/vtigercrm/blob/7.1.0/libraries/htmlpurifier/library/HTMLPurifier/Bootstrap.php#L63
>
> Maybe you are on the right lines here Martin...
>
>
> Al
>
>
>
>
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20221024/a6e34622/attachment.html>


More information about the vtigercrm-developers mailing list