Call_User_Func() Issue After Installation

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:

  1. 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!

Can you post the complete stacktrace please?

The line you posted does not contain much information about the error cause.

Thanks for your reply, sadly there isn’t to much info (see attached pic).

You should scroll down a bit and see which code is responsible for position 2.,3., …

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 :(

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 :)