-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error after M 2.4.0 upgrade: main.CRITICAL: String to be escaped was not valid UTF-8 or could not be converted #29358
Comments
Hi @jesperbrejning. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
I'm seeing a bunch of Amasty modules (Page Speed Optimizer & Advanced Search) in your stack trace, can you try the same with those modules disabled, it might be a problem caused by those modules? If you don't get that error anymore after disabling them, please take contact with Amasty (or try to update those modules to the latest version) |
Maybe custom layout feature in amasty advance search module not work in 2.4 anymore |
@jesperbrejning try downgrading |
@jesperbrejning I've sent feedback on how to resolve this to Amasty support. |
This issue can be closed as Amasty has announced to fix this in their next release. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions! |
Burn amasty modules with fires ! |
Hi @engcom-Delta. Thank you for working on this issue.
|
Issue was closed according comment |
After upgrade from M 2.3.5 to M 2.4.0 we see the following error in frontend: "An error has happened during application run. See exception log for details."
Any Idea how to solve this issue?
Best regards,
Jesper
1 exception(s):
Exception #0 (Laminas\Escaper\Exception\RuntimeException): String to be escaped was not valid UTF-8 or could not be converted:
We get the following error in system.log:
[2020-08-01 12:12:37] main.CRITICAL: String to be escaped was not valid UTF-8 or could not be converted: [] []
[2020-08-01 12:12:37] main.CRITICAL: ParseError: syntax error, unexpected end of file in /home/zzz/www/var/view_preprocessed/pub/static/vendor/magento/module-theme/view/frontend/templates/html/notices.phtml:19
Stack trace:
#0 /home/zzz/www/vendor/magento/framework/View/Element/Template.php(273): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Theme\Block\Html\Notices), '/home/zzz/...', Array)
#1 /home/zzz/www/vendor/magento/framework/View/Element/Template.php(303): Magento\Framework\View\Element\Template->fetchView('/home/zzz/...')
#2 /home/zzz/www/vendor/magento/framework/View/Element/AbstractBlock.php(1111): Magento\Framework\View\Element\Template->_toHtml()
#3 /home/zzz/www/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element{closure}()
#4 /home/zzz/www/vendor/magento/framework/View/Element/AbstractBlock.php(675): Magento\Framework\View\Element\AbstractBlock->_loadCache()
#5 /home/zzz/www/vendor/magento/framework/View/Layout.php(566): Magento\Framework\View\Element\AbstractBlock->toHtml()
#6 /home/zzz/www/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Layout->_renderBlock('global_notices')
#7 /home/zzz/www/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('global_notices')
#8 /home/zzz/www/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('global_notices')
#9 /home/zzz/www/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('global_notices', false)
#10 /home/zzz/www/vendor/magento/framework/View/Layout.php(594): Magento\Framework\View\Layout\Interceptor->renderElement('global_notices', false)
#11 /home/zzz/www/vendor/magento/framework/View/Layout.php(544): Magento\Framework\View\Layout->_renderContainer('after.body.star...', false)
#12 /home/zzz/www/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('after.body.star...')
#13 /home/zzz/www/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('after.body.star...')
#14 /home/zzz/www/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('after.body.star...', false)
#15 /home/zzz/www/vendor/magento/framework/View/Layout.php(594): Magento\Framework\View\Layout\Interceptor->renderElement('after.body.star...', false)
#16 /home/zzz/www/vendor/magento/framework/View/Layout.php(544): Magento\Framework\View\Layout->_renderContainer('root', false)
#17 /home/zzz/www/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('root')
#18 /home/zzz/www/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root')
#19 /home/zzz/www/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('root', true)
#20 /home/zzz/www/vendor/magento/framework/View/Layout.php(963): Magento\Framework\View\Layout\Interceptor->renderElement('root')
#21 /home/zzz/www/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->getOutput()
#22 /home/zzz/www/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent('getOutput', Array)
#23 /home/zzz/www/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception{closure}()
#24 /home/zzz/www/generated/code/Magento/Framework/View/Layout/Interceptor.php(494): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array)
#25 /home/zzz/www/vendor/magento/framework/View/Result/Page.php(258): Magento\Framework\View\Layout\Interceptor->getOutput()
#26 /home/zzz/www/vendor/magento/framework/View/Result/Layout.php(171): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))
#27 /home/zzz/www/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#28 /home/zzz/www/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array)
#29 /home/zzz/www/vendor/amasty/module-page-speed-optimizer/Plugin/ProcessPageResult.php(40): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#30 /home/zzz/www/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\PageSpeedOptimizer\Plugin\ProcessPageResult->aroundRenderResult(Object(Magento\Framework\View\Result\Page\Interceptor), Object(Closure), Object(Magento\Framework\App\Response\Http\Interceptor))
#31 /home/zzz/www/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#32 /home/zzz/www/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(26): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, NULL)
#33 /home/zzz/www/vendor/magento/framework/App/Http.php(120): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#34 /home/zzz/www/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http->launch()
#35 /home/zzz/www/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#36 {main} [] []
The text was updated successfully, but these errors were encountered: