简体   繁体   中英

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.ini and shows it is disabled.

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

Am I missing something? Any help greatly appreciated.

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');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM