We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21759
    • 139 Posts
    I installed a fresh version of 9.6.3 using the sample files and when I click on preview I get this error message:
    Fatal error: Call to undefined function mb_strlen() in /home/mysite/public_html/assets/snippets/ajaxSearch/classes/ajaxSearch.class.inc.php on line 359

    I know nothing about php can anyone point me in the right direction? Below is the server info.

    Operating system Linux
    Apache version 2.2.11 (Unix)
    PHP version 5.2.9
    MySQL version 5.0.81-community
      • 3749
      • 24,544 Posts
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 21759
        • 139 Posts
        BobRay, thanks for the post but the post says to enable php_mbstring in php ini. I don’t have access to my php ini files as they’ve been disabled for security reasons I’ve been told by my tech guy. When I go into WHM under php config advanced I see the following: mbstring.detect_order; mbstring.encoding_translation; mbstring.func_overload; mbstring.http_input; mbstring.http_output; mbstring.internal_encoding; mbstring.language; mbstring.substitute_character; all are set to default. What one do I set to enable or should I try something else? Also I have installed modx on another domain and it works fine without the sample data.
          • 3749
          • 24,544 Posts
          I’ve never had to use WHM. See if this helps: http://forums.cpanel.net/f5/enable-mbstring-60206.html
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 5811
            • 1,717 Posts

            &mbstring parameter added with the release 1.8.3:

            ==== php_mbstring extension

            &mbstring [0 | 1]
            1 - mbstring extension available (default)
            0 - don’t use php_mbstring extension

            The php_mbstring is supposed to be loaded.
            If html charset page is "UTF-8", php_mbstring extension should be loaded for language which
            need a multi-byte representation.
            If the extension is not available for the PHP server, some charset like ISO-8859-1 (latin1) could be used.
            With UTF-8, a message "Php_mbstring extension is required" when &mbstring=`1` and the extension not loaded.
            In this case load the extension or set the mbstring parameter to 0 if you couldn’t load the extension