For developers, errors are always frustrating and annoying as it is essential to know what’s going on with the code. What’s wrong with the code and the reason behind the error. The increased error rate helps you achieve success as you can easily identify the errors. Have you faced any error of array and string offset access syntax with curly braces is deprecated in Magento 2.
Solution For Array and String Offset Access Syntax With Curly Braces is Deprecated in Magento 2
You can easily get your queries resolved by replacing curly braces with square brackets in /vendor/magento/zendframework1/library/Zend/Json/Decoder.php
In Encoder.php file of /vendor/magento/zendframework1/library/Zend/Json/Encoder.php , replace curly braces with square brackets after every $utf8 in _utf82utf16 function.
That’s it!
For more information, visit: https://meetanshi.com/blog/solved-array-and-string-offset-access-syntax-with-curly-braces-is-deprecated-in-magento-2/
No comments:
Write comments