I have a random problem with webpack-encore in symfony. When i refresh my page, i have an issue :
"An exception has been thrown during the rendering of a template ("Warning: htmlentities(): charset `throwAt' not supported, assuming utf-8")."
I refresh and i have :
"An exception has been thrown during the rendering of a template ("Warning: htmlentities(): charset `handler' not supported, assuming utf-8")."
I refresh and my page is good.
And it's a loop... (so weird !)
On others pages i don't see a loop. If i refresh, maybe work, maybe don't.
I have make some test. If i change this line in the TagRenderer.php (function : convertArrayToAttributes; line 114) :
return sprintf('%s="%s"', $key, htmlentities($value));
with :
return sprintf('%s="%s"', $key, htmlentities($value, ENT_COMPAT | ENT_HTML401, "ISO8859-1"));
That work all the time. But I'm not sure that's the good solutions.
When i dump the "$value" before the line "htmlentities($value)", the value is : "stylesheet".
When i restart my computer, this issue disapear but with time, it's recome !
Do you have any idea ?
For informations : I'm on a docker image. My source code are in UTF-8
Edit: Obviously, i clean the cache (via command or delete folder) before, after and between refresh but nothing change.