{"id":211,"date":"2020-04-06T06:23:00","date_gmt":"2020-04-06T06:23:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=211"},"modified":"2020-12-05T06:26:30","modified_gmt":"2020-12-05T06:26:30","slug":"php-fatal-error-call-to-undefined-function-mb_string","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/php-fatal-error-call-to-undefined-function-mb_string\/","title":{"rendered":"PHP fatal error &#8211; call to undefined function mb_string"},"content":{"rendered":"\n<p>This error tells us that the mb_string library is not installed.\u00a0<a rel=\"noreferrer noopener\" href=\"http:\/\/ca.php.net\/mbstring\" target=\"_blank\">mb_String<\/a> is a library, which provides support for UTF-8 and UCS-2 characters. PHP uses ASCII by default which is a 256 character coding system. This means that it uses 8 bits to encode English alphabet and commonly used symbols such as ,.?;:&#8221;+-$#@ and many more. However, it does not code for foreign language characters such as \u00e9, \u00e7, \u00e2, \u00e8, \u00f1, \u00fc, and many others. mb_string provides double byte, i.e. 2 x 8bits to code for a character. This permits code for 65536 characters.<\/p>\n\n\n\n<p>To remove this error, simply install the library, and add its extension to php.ini file.<\/p>\n\n\n\n<p><strong>Installing mb_string on Ubuntu, Debian systems<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install php-mbstring<\/code><\/pre>\n\n\n\n<p>This command install the library and configures the php.ini file.<\/p>\n\n\n\n<p><strong>Installing mb_string on Red Hat family<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo yum install php-mbstring<\/code><\/pre>\n\n\n\n<p>This command install the library and configures the php.ini file.<\/p>\n\n\n\n<p><strong>Installing mb_string on Microsoft Windows<\/strong>&nbsp;As always, all non-click tasks are complicated in Microsoft systems. For information on installing and configuring mb_string on Microsoft Windows, visit&nbsp;<a target=\"_blank\" href=\"http:\/\/php.net\/manual\/en\/install.windows.extensions.php\" rel=\"noreferrer noopener\">http:\/\/php.net\/manual\/en\/install.windows.extensions.php<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This error tells us that the mb_string library is not installed.\u00a0mb_String is a library, which provides support for UTF-8 and UCS-2 characters. PHP uses ASCII by default which is a 256 character coding system. This means that it uses 8 bits to encode English alphabet and commonly used symbols such as ,.?;:&#8221;+-$#@ and many more. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[35,24,51],"class_list":["post-211","post","type-post","status-publish","format-standard","hentry","category-php","tag-linux","tag-php","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"predecessor-version":[{"id":212,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/211\/revisions\/212"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}