Skip to content

Instantly share code, notes, and snippets.

@tatsuya-yokoyama
Last active August 29, 2015 14:13
Show Gist options
  • Save tatsuya-yokoyama/5f97b3f114ca889e3d5a to your computer and use it in GitHub Desktop.
Save tatsuya-yokoyama/5f97b3f114ca889e3d5a to your computer and use it in GitHub Desktop.
Herokuで、DBアクセスするPHPのアプリ動かすと、call_user_func関数がうんたらというエラーが出て困った話 ref: http://qiita.com/yonell/items/fbed7f66d804794a42b4
--- a/composer.json
+++ b/composer.json
@@ -5,7 +5,8 @@
"slim/extras": "2.0.*",
"twig/twig": "1.*",
"Respect/Validation" : "0.5.*",
- "illuminate/database" : "4.0.*"
+ "illuminate/database" : "4.0.*",
+ "ext-mbstring": "*"
},
"autoload": {
"psr-0": {"":"lib/"}
Slim Application Error
The application could not run because of the following error:
Details
Type: ErrorException
Code: 2
Message: call_user_func() expects parameter 1 to be a valid callback, function 'mb_strtolower' not found or invalid function name
File: /app/vendor/illuminate/support/Illuminate/Support/Pluralizer.php
Line: 234
Trace
#0 [internal function]: Slim\Slim::handleErrors(2, 'call_user_func(...', '/app/vendor/ill...', 234, Array)
# 以下略
--- a/composer.json
+++ b/composer.json
@@ -5,7 +5,8 @@
"slim/extras": "2.0.*",
"twig/twig": "1.*",
"Respect/Validation" : "0.5.*",
- "illuminate/database" : "4.0.*"
+ "illuminate/database" : "4.0.*",
+ "ext-mbstring": "*"
},
"autoload": {
"psr-0": {"":"lib/"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment