Fatal error: Method Magento\Ui\TemplateEngine\Xhtml\Result::__toString() must not throw an exception
When I open the category page on the admin and when I try to edit category I got the below error:
Fatal error: Method Magento\Ui\TemplateEngine\Xhtml\Result::__toString() must not throw an exception, caught Error: Cannot use string offset as an array in /vendor/magento/module-ui/Component/Wrapper/UiComponent.php on line 0
Do you have any idea how we can solve it!
Your answers are appreciated
Thanks!
-
here is the solution which you faced the problem, might be helpful to youHitesh– Hitesh2018年10月03日 12:52:33 +00:00Commented Oct 3, 2018 at 12:52
-
Hi @Hit's I am not using the custom module I have an issue on the category section when I click on it.Rajan Soni– Rajan Soni2018年10月03日 13:11:16 +00:00Commented Oct 3, 2018 at 13:11
1 Answer 1
Just remove the generated folder.
In the magento root directory run this
rm -rf generated/*