easy_d
(David Pinezich)
1
Hi all,
I’ve recently tried to update our working environment (php 5.4.4) to the newer Yii 2.0.0 as a research for our upcoming projects 
I’ve set up everything with composer and it worked like a charm. But after I went onto the webpage, I had some mkdir() issues.
No big deal, some rights to change and everything worked fine.
But now I got the following error:
call_user_func() expects parameter 1 to be a valid callback, no array or string given
Stack:
- in (…)/basic/vendor/yiisoft/yii2/base/Component.php at line 453
Sadly I didn’t found a similar topic for this issue but maybe someone of you guys has an awesome Idea.
Thanks!
CeBe
2
Can you post the complete stacktrace please?
The line you posted does not contain much information about the error cause.
easy_d
(David Pinezich)
3
Thanks for your reply, sadly there isn’t to much info (see attached pic).
CeBe
4
You should scroll down a bit and see which code is responsible for position 2.,3., …
easy_d
(David Pinezich)
5
Yah, but position 2 & 3 are empty and the rest is only a printout of the Server Array…
I know I can suppress it if I exclude:
defined(‘YII_DEBUG’) or define(‘YII_DEBUG’, true);
defined(‘YII_ENV’) or define(‘YII_ENV’, ‘dev’);
But after it seems to be a broken layout 
easy_d
(David Pinezich)
6
Seems to be an odd problem. Same yii installation works perfect with Ubuntu and the newest 5.5.x Version of php.
But on this machine (php 5.4.4 with debian wheezy, which is our current business dev server) it just has problems with
call_user_func() in this constellation.
I seperated call_user_func() to investigate more, but it seems to work fine… I’m a bit worried about the whole story.
I’will try and error a bit on both machines and tell you the differences, maybe we find something interesting 