我已将symfony2应用程序部署到heroku。我正在使用fos和sonata用户捆绑。从终端创建用户时我得到了以下错误。
[Symfony\Component\Debug\Exception\UndefinedFunctionException]
Attempted to call function "mb_convert_case" from namespace "FOS\UserBundle\Util".
然后我运行heroku run php app/check.php
并得到以下结果。
Symfony2 Requirements Checker
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> PHP is using the following php.ini file:
/app/.heroku/php/etc/php/php.ini
> Checking Symfony requirements:
......................W....W.W.....
[OK]
Your system is ready to run Symfony2 projects
Optional recommendations to improve your setup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* mb_strlen() should be available
> Install and enable the mbstring extension.
* intl extension should be available
> Install and enable the intl extension (used for validators).
* short_open_tag should be disabled in php.ini
> Set short_open_tag to off in php.ini*.
Note The command console could use a different php.ini file
~~~~ than the one used with your web server. To be on the
safe side, please check the requirements from your web
server using the web/config.php script.
还将"ext-mbstring": "*",
置于composer.json
,但仍然存在相同的错误。
答案 0 :(得分:1)
您运行项目的系统似乎没有php-mbstring扩展名,您必须启用它。
在添加" ext-mbstring":" *"之后,您是否运行了作曲家安装? ?这应该可以解决这个问题。
相关主题: