Your software
My Mautic version is: 5.0.3
My PHP version is: –
My Database type and version is:–
Your problem
Running the dev version (DDEV) and I get this error when I try to edit an email. This results in GrapesJS dying making the message unrecoverable:
500 Internal Server Error - PHP Notice - iconv(): Detected an illegal character in input string
- /html/app/bundles/CoreBundle/Helper/InputHelper.php:420 at
- Mautic\CoreBundle\ErrorHandler\ErrorHandler → handleError ( 8, ‘PHP Notice - iconv(): Detected an illegal character in input string’, ‘/var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php’, 420 )
- /html/app/bundles/CoreBundle/Helper/InputHelper.php:420 at iconv ( ‘UTF-8’, ‘Windows-1252’, ' !mso <meta name="…
Can this error be caught, so it does not result in loss of work?
These errors are showing in the log:
mautic.CRITICAL: Uncaught PHP Exception ErrorException: “PHP Notice - iconv(): Detected an illegal character in input string” at /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php line 420 {“exception”:"[object] (ErrorException(code: 0): PHP Notice - iconv(): Detected an illegal character in input string at /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php:420)
[stacktrace]
#0 [internal function]: Mautic\CoreBundle\ErrorHandler\ErrorHandler->handleError(8, ‘PHP Notice - ic…’, ‘/var/www/html/a…’, 420)
#1 /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php(420): iconv(‘UTF-8’, ‘Windows-1252’, ‘<!doctype html>…’)
Steps I have tried to fix the problem: