A
A
Alexander2019-01-06 18:08:59
Yii
Alexander, 2019-01-06 18:08:59

What does the error mean when running a YII2 template?

I decided to use the application template for YII2 advanced ( Here is the template ), but when I try to view the start page, an error occurs


Warning: require(C:\Users\AnarCom\Desktop\OSPanel\domains\yii2-core\frontend\web/../../vendor/autoload.php): failed to open stream: No such file or directory in C :\Users\AnarCom\Desktop\OSPanel\domains\yii2-core\frontend\web\index.php on line 7
Fatal error: require(): Failed opening required 'C:\Users\AnarCom\Desktop\OSPanel\domains\ yii2-core\frontend\web/../../vendor/autoload.php' (include_path='.;c:/users/anarcom/desktop/ospanel/modules/php/PHP-7.1;c:/users/ anarcom/desktop/ospanel/modules/php/PHP-7.1/PEAR/pear') in C:\Users\AnarCom\Desktop\OSPanel\domains\yii2-core\frontend\web\index.php on line 7

(line 1-13 of the file, frontend\web\index.php):
<?php

use yii\helpers\ArrayHelper;
use yii\web\Application;

// Composer
require __DIR__ . '/../../vendor/autoload.php';

// Environment
require __DIR__ . '/../../common/env.php';

// Yii2
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';

And in fact, the question is: How can this error be corrected ?, because there is an error, and attempts to correct it did not lead to any result

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-01-06
@AnarCom

Everything turned out to be simpler - the error meant that the pear
manual was not installed on the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question