This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by albertoP-18 9 months, 3 weeks ago.

Assigned support staff: Dennis.

Author Posts
June 17, 2019 at 10:57 pm #4038937

albertoP-18

Hello,

I get this error in the log file.

Attached photo of the admin page (wp-admin/admin.php?page=sitepress-multilingual-cms%2Fmenu%2Flanguages.php) that is not loaded.

[17-Jun-2019 21:51:42 UTC] PHP Fatal error: Uncaught Twig_Error_Runtime: No suitable convert encoding function (use UTF-8 as your encoding or install the iconv or mbstring extension). in /home/franchino/public_html/shop.franchino.it/wp-content/plugins/sitepress-multilingual-cms/templates/language-switcher-admin-ui/layout-main.twig:18
Stack trace:
#0 /home/franchino/public_html/shop.franchino.it/wp-content/plugins/woocommerce-multilingual/vendor/twig/twig/lib/Twig/Extension/Core.php(1234): twig_convert_encoding('\xC3\xA8', 'UTF-16BE', 'UTF-8')
#1 [internal function]: _twig_escape_html_attr_callback(Array)
#2 /home/franchino/public_html/shop.franchino.it/wp-content/plugins/woocommerce-multilingual/vendor/twig/twig/lib/Twig/Extension/Core.php(1095): preg_replace_callback('#[^a-zA-Z0-9,\\....', '_twig_escape_ht...', 'Alcuni contenut...')
#3 /home/franchino/public_html/shop.franchino.it/wp-content/uploads/cache/wpml/twig/a0/a0d0a091334bb50289c541b965b1624419e6766c2a8d3553ff48861c92557cac.php(20): twig_escape_filter(Object(Twig_Environment), 'Alcuni contenut in /home/franchino/public_html/shop.franchino.it/wp-content/plugins/sitepress-multilingual-cms/templates/language-switcher-admin-ui/layout-main.twig on line 18
[17-Jun-2019 21:51:47 UTC] PHP Fatal error: Uncaught Twig_Error_Runtime: No suitable convert encoding function (use UTF-8 as your encoding or install the iconv or mbstring extension). in /home/franchino/public_html/shop.franchino.it/wp-content/plugins/sitepress-multilingual-cms/templates/language-switcher-admin-ui/layout-main.twig:18
Stack trace:
#0 /home/franchino/public_html/shop.franchino.it/wp-content/plugins/woocommerce-multilingual/vendor/twig/twig/lib/Twig/Extension/Core.php(1234): twig_convert_encoding('\xC3\xA8', 'UTF-16BE', 'UTF-8')
#1 [internal function]: _twig_escape_html_attr_callback(Array)
#2 /home/franchino/public_html/shop.franchino.it/wp-content/plugins/woocommerce-multilingual/vendor/twig/twig/lib/Twig/Extension/Core.php(1095): preg_replace_callback('#[^a-zA-Z0-9,\\....', '_twig_escape_ht...', 'Alcuni contenut...')
#3 /home/franchino/public_html/shop.franchino.it/wp-content/uploads/cache/wpml/twig/a0/a0d0a091334bb50289c541b965b1624419e6766c2a8d3553ff48861c92557cac.php(20): twig_escape_filter(Object(Twig_Environment), 'Alcuni contenut in /home/franchino/public_html/shop.franchino.it/wp-content/plugins/sitepress-multilingual-cms/templates/language-switcher-admin-ui/layout-main.twig on line 18

June 18, 2019 at 1:52 am #4039105

Dennis

Hi,

Welcome to WPML Support forum.

It seems that PHP mbstring extension is not activated.

Try asking your hosting provider to enable the PHP mbstring extension.
https://wpml.org/home/minimum-requirements/
hidden link

Kind regards,
Dennis

June 18, 2019 at 3:06 pm #4044667

albertoP-18

My issue is resolved now. Thank you!