Call to undefined function yii\base\fnmatch()

That problem is solved. It was the wrong configration of MBString extension.

//////////////////////////////////////////

from 2.0.6. to 2.0.08 there are not this error, from 2.0.9 to 2.0.11 all have this error.

////////////////////////////////////////////////////

Call to undefined function yii\base\fnmatch()

1. in /home/www/advanced/vendor/yiisoft/yii2/base/ActionFilter.php at line 152


143144145146147148149150151152153154155156157158159160161





    protected function isActive($action)


    {


        $id = $this->getActionId($action);


 


        if (empty($this->only)) {


            $onlyMatch = true;


        } else {


            $onlyMatch = false;


            foreach ($this->only as $pattern) {


              [size="5"][b]  if (fnmatch($pattern, $id)) {[/b][/size]


                    $onlyMatch = true;


                    break;


                }


            }


        }


 


        $exceptMatch = false;


        foreach ($this->except as $pattern) {


            if (fnmatch($pattern, $id)) {





2. yii\base\ErrorHandler::handleFatalError()

$_COOKIE = [

'advanced-frontend' => '2gleibs3blfpbjrsjbdfr4v5g4',


'_csrf-frontend' => '0b5be30d9f4202cc4e5f29eab3cff0aa7d731289484dc1cfa3c1b129e3a38cb0a:2:{i:0;s:14:"_csrf-frontend";i:1;s:32:"cpVQSuHUpqaQlRFLEoSf65Mr4YuDDrV9";}',


'advanced-backend' => 'pppc3s3a3epktmceehbcnasmv2',


'_csrf-backend' => '4a3dd2ecf593f0f8547130d1bf7839866670229d5e9c2017f825d9bad4cd9930a:2:{i:0;s:13:"_csrf-backend";i:1;s:32:"NvrnduPXQjKzNHFGf2OAYck_98NPd75O";}',

];

Yii Framework

2017-04-17, 19:41:45

Apache

Yii Framework/2.0.11

Which OS are you running?

KVM on centOS 6.9.

That problem is solved. It was the wrong configration of MBString extension.