My configuration details


Magento version 2.1

Also installed Mbstring extension,

but still getting error

Call to undefined function Magento\Framework\Event\mb_strtolower()

After throwing reindex command,

magento indexer:reindex 
  • after installing mbstring. have you restart apache? – chirag Mar 24 '17 at 12:09
  • yes chirag. I have restarted it – Mrunmay Deswandikar Mar 24 '17 at 12:15

If you are using php-fpm you should restart it too, because the new extension is installed but not loaded yet. See similar problem here. You can detect is extension loaded using the phpinfo();: if the extension was successfully loaded you can see something like this:

mbstring extension in phpinfo

To restart php-fpm on ubuntu use the command like:

sudo service php7.0-fpm restart

You can find more info by googling "How to restart php-fpm %your distr%".

| improve this answer | |
  • @MagentoDeveloper I'm glad to help you :) – Siarhey Uchukhlebau Mar 27 '17 at 11:02
  • i already installed mbstring but still getting error why?? – prabhakaran7 Jul 24 '19 at 13:54
  • @prabhakaran7 please, check php version which your web-server using. It is possible that you have many php instances on your server. – Siarhey Uchukhlebau Jul 25 '19 at 9:04
  • shared hosting amd php 7.0 – prabhakaran7 Jul 25 '19 at 9:25

For command line, You have setup a php variable.By which you are running php and magento commands on Command line interface. A php.ini is associated with that particular php variable's php configurations. Please check in that file if php_mbstring.dll is enabled or not. Clear chache and remove generation folder in magento-root/var folder.

| improve this answer | |

Fatal error: Call to undefined function Magento\Framework\Event\mb_strtolower() in C:\Apache24\htdocs\p4p\vendor\magento\framework\Event\Manager.php on line 56

Getting this error while running my project on localhost.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.