简体   繁体   English

mbstring扩展名丢失了吗?

[英]The mbstring extension is missing?

i know there's tons of topics about my problem, but i can't find a solution. 我知道关于我的问题有很多话题,但是我找不到解决方案。

I'm using wamp and i've changed my version of PHP from 5.5.12 to 5.6.16 then when i go to localhost/phpmyadmin i have this error displayed : 我使用的是wamp,我将PHP版本从5.5.12更改为5.6.16,然后当我转到localhost / phpmyadmin时显示此错误:

Fatal error: Call to undefined function mb_detect_encoding() in C:\\wamp\\apps\\phpmyadmin4.1.14\\libraries\\php-gettext\\gettext.inc on line 177 致命错误:在第177行上的C:\\ wamp \\ apps \\ phpmyadmin4.1.14 \\ libraries \\ php-gettext \\ gettext.inc中调用未定义函数mb_detect_encoding()

so i update phpmyadmin from 4.1.14 to 4.5.2. 所以我将phpmyadmin从4.1.14更新到4.5.2。

And i have this **** error: 我有这个****错误:

phpMyAdmin - Error The mbstring extension is missing. phpMyAdmin-错误mbstring扩展名丢失。 Please check your PHP configuration. 请检查您的PHP配置。

My php.ini, phpForApache.ini is configured, i have un-commented the extension, set extension_dir to C:\\wamp\\bin\\php\\php5.6.16\\ext, i stumbled on many topics/forum but none of the solution works. 我的php.ini,phpForApache.ini已配置,我未注释扩展名,将extension_dir设置为C:\\ wamp \\ bin \\ php \\ php5.6.16 \\ ext,但我偶然发现了许多主题/论坛,但没有解决方案。

Do you have any idea ? 你有什么主意吗 ? Thanks. 谢谢。 (and sorry for my bad english) (对不起,我的英语不好)

Please check #36254548 请检查#36254548

Copying the php.ini file to "wamp64\\bin\\apache\\apache2.4.17\\bin" has solved my problem. 将php.ini文件复制到“ wamp64 \\ bin \\ apache \\ apache2.4.17 \\ bin”已解决了我的问题。

Sometimes the extensions directory is well pointed to, the dll files have been uncommented but it still doesn't work. 有时会很好地指向扩展目录,但dll文件没有注释,但仍然无法正常工作。

The next solution to use, that is if your extensions directory is correct and dll files for the mbstring has been uncommented, then copy the php.ini file and paste it into the windows directory (ie C:\\Windows). 下一个要使用的解决方案是,如果您的扩展目录正确,并且mbstring的dll文件已取消注释,则复制php.ini文件并将其粘贴到Windows目录(即C:\\ Windows)。

You then restart your wamp/xampp and it will work. 然后,您重新启动wamp / xampp,它将起作用。

Hope you smile after this :) 希望你在此之后微笑:)

Thank you. 谢谢。

check your php.ini file. 检查您的php.ini文件。 In the extensions part of the configuration you should find: 在配置的扩展部分,您应该找到:

;extension=php_mbstring.dll

remove the leading ';' 删除开头的“;” to uncomment and enable the extension so it looks like this: 取消注释并启用扩展,因此如下所示:

extension=php_mbstring.dll

restart your apache and it should work. 重新启动您的Apache,它应该可以工作。

I faced the same issue when I start wamp, suddenly my project was not working and when I check the phpmyadmin, it gives the same above error. 当我启动wamp时,我遇到了同样的问题,突然我的项目无法正常工作,当我检查phpmyadmin时,也出现了相同的上述错误。

My debugging process found php.ini file is missing. 我的调试过程发现php.ini文件丢失。 However I already installed two PHP versions, 5.6.19 and 7.0.4. 但是我已经安装了两个PHP版本5.6.19和7.0.4。 I changed the version to 7.0.4 and then re-changed to 5.6.19. 我将版本更改为7.0.4,然后重新更改为5.6.19。 It started work. 它开始工作。

What I guess, while changing the version, all the configuration files getting re-installed in wamp folder. 我猜想,在更改版本时,所有配置文件都会重新安装在wamp文件夹中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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