Search code examples
phpdrupalmamp

MAMP: php.ini - mbstring.http_input - Disabling for Drupal


Updated my MAMP to the most current [3.0.7.2] since I have OSX 10.10 now. Having issues with installing any new Drupal installations locally now. Error - mbstring.http_input must be disabled.

I have checked the php.ini being loaded in from /Applications/MAMP/bin/php/php5.6.2/conf/php.iniand shows it is disabled.

I read into this and tried setting it to auto/off/false/pass, no luck. - https://www.php.net/manual/en/function.mb-http-input.php

Am I missing something? Any help greatly appreciated.


Solution

  • Disabling mbstring.http_input using php.ini file should work. But maybe you changed the php.ini file for an unloaded php version (because MAMP comes with many php versions, php5.6.2 in your case).

    You can try disabling mbstring.http_input from .htaccess file. Just copy these lines to the file.

    php_value mbstring.http_input pass
    php_value mbstring.http_output pass
    

    Or via settings.php file:

    ini_set('mbstring.http_input', 'pass');
    ini_set('mbstring.http_output', 'pass');