D
D
Danil Solovyov2017-02-09 11:31:29
Yii
Danil Solovyov, 2017-02-09 11:31:29

How to fix "Setting unknown property: yii\web\AssetManager::linksAssets" error?

Advanced template, version 2.0.6 stable. The error appears only in \backend, AppAsset did not change for it. The \vendor folder has not changed. Reverting to previous project commits doesn't help.
Error title:

Unknown Property – yii\base\UnknownPropertyException
Setting unknown property: yii\web\AssetManager::linksAssets

Errors in \backend files:
in F:\OpenServer\domains\eyii2.ru\backend\views\layouts\main.php at line 14 – yii\web\AssetBundle::register(yii\web\View)

use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use yii\widgets\Menu;
use common\widgets\Alert;
use backend\models\BackendMenu;
 
AppAsset::register($this);  //Ошибка здесь.

in F:\OpenServer\domains\eyii2.ru\backend\controllers\SiteController.php at line 62 – yii\base\Controller::render('index')

public function actionIndex() {
        return $this->render('index'); //Еще одна ошибочка
    }

in F:\OpenServer\domains\eyii2.ru\backend\web\index.php at line 18 – yii\base\Application::run()

$application = new yii\web\Application($config);
$application->run(); // И здесь ошибка

And also a lot of errors in \vendor, which I think it makes no sense to list. In general terms, these are: errors in yii\base, yii\web and a little bit in yii\di.
Does anyone have any idea how this amazing bug came about and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-02-09
@SolovyevDanil

Good morning.
"linkAssets" would be more correct, not "linksAssets"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question