Post by withcaner » Fri Sep 22, 2023 2:12 am

Hi friends, I have a problem that I cannot solve. I get this error when I try to edit any layout form. Can you help me? my version is 3.0.3.7

respects

Code: Select all

Fatal error: Uncaught Twig\Error\RuntimeError: Unable to convert encoding: required function iconv() does not exist. You should install ext-iconv or symfony/polyfill-iconv. in /home/lensfiya/public_html/system/storage/modification/admin/view/template/design/layout_form.twig:844 Stack trace: #0 /home/lensfiya/public_html/system/storage/vendor/twig/twig/src/Extension/EscaperExtension.php(286): twig_convert_encoding('\xC4\xB1', 'UTF-16BE', 'UTF-8') #1 [internal function]: {closure}(Array) #2 /home/lensfiya/public_html/system/storage/vendor/twig/twig/src/Extension/EscaperExtension.php(294): preg_replace_callback('#[^a-zA-Z0-9,\\....', Object(Closure), 'Hesab\xC4\xB1m') #3 /home/lensfiya/public_html/system/storage/cache/template/82/825bd3bdc0c856e72f2dfe3288fd0a6f4faf9e43189616f435eb49151568f8a4.php(2447): twig_escape_filter(Object(Twig\Environment), 'Hesab\xC4\xB1m', 'js') #4 /home/lensfiya/public_html/system/storage/vendor/twig/twig/src/Template.php(405): __TwigTemplate_b2ce280c7205d1f4cd90fe8312438f6920a60bcb61e62a4e8bec6fe in /home/lensfiya/public_html/system/storage/modification/admin/view/template/design/layout_form.twig on line 844

Newbie

Posts

Joined
Fri Nov 08, 2019 5:47 pm

Post by KrewNoah » Fri Sep 22, 2023 3:07 pm

The error message indicates that the 'iconv()' function is missing, which is used to convert character encoding. To fix this, you need to install the 'iconv' extension. If you are using a server with SSH access, you can typically install it by running the command:

Code: Select all

sudo apt-get install php-iconv
Or, depending on your PHP version:

Code: Select all

sudo apt-get install php7.x-iconv // Replace 7.x with your PHP version
After installing the extension, remember to restart your web server:

Code: Select all

sudo service apache2 restart // If you are using Apache
Or

Code: Select all

sudo service nginx restart // If you are using Nginx
Make sure to replace the commands and service names with the ones specific to your server and PHP version if they are different.

Krew Noah


Newbie

Posts

Joined
Sun Sep 03, 2023 3:39 pm
Location - US
Who is online

Users browsing this forum: Bing [Bot] and 2 guests