<div dir="ltr">Hi guys,<div><br></div><div>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:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>HTML Purifier autoloader registrar is not compatible</div><div>with non-static object methods due to PHP Bug #44144;</div><div>Please do not use HTMLPurifier.autoload.php (or any</div><div>file that includes this file); instead, place the code:</div><div>spl_autoload_register(array(\'HTMLPurifier_Bootstrap\', \'autoload\'))</div><div>after your own autoloaders.</div></blockquote><div><br></div><div>Thanks a lot!<br><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 24, 2022 at 3:44 AM Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 24/10/2022 09:12, Martin Allen wrote:<br>
> We had an issue with the vtlib_purify function recently (that appears in <br>
> your stacktrace) – which prevented it working correctly if we had used <br>
> any Composer packages prior to that function. It appears that the <br>
> function tries to unload autoloaded items, but cant do this correctly <br>
> when Composer has autoloaded items.<br>
<br>
Interesting.<br>
<br>
If you follow the code path for the HTMLPurifier, during its <br>
initialisation it does actually call spl_autoload_unregister()...<br>
<br>
<br>
<a href="https://code.vtiger.com/vtiger/vtigercrm/blob/7.1.0/libraries/htmlpurifier/library/HTMLPurifier/Bootstrap.php#L63" rel="noreferrer" target="_blank">https://code.vtiger.com/vtiger/vtigercrm/blob/7.1.0/libraries/htmlpurifier/library/HTMLPurifier/Bootstrap.php#L63</a><br>
<br>
Maybe you are on the right lines here Martin...<br>
<br>
<br>
Al<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>