C
C
Cyril2017-09-06 12:59:58
Yii
Cyril, 2017-09-06 12:59:58

I can't transfer a site made in yii to OpenServer?

Good afternoon.
There is a need to transfer the site to the local area in order to work with the front. I must say right away that I did not make the site, and I do not understand Yii. I endure everything, I get errors when opening the site:

Warning: include(StructCategory.php): failed to open stream: No such file or directory in C:\OpenServer\domains\yii\YiiBase.php on line 427

Warning: include(): Failed opening 'StructCategory.php' for inclusion (include_path='.;C:\OpenServer\domains\h-astana.dev\protected\modules\translate\models;C:\OpenServer\domains\h-astana.dev\protected\modules\translate\services;C:\OpenServer\domains\h-astana.dev\protected\modules\translate\components;C:\OpenServer\domains\h-astana.dev\protected\services;C:\OpenServer\domains\h-astana.dev\protected\extensions\extcore;C:\OpenServer\domains\h-astana.dev\protected\components;C:\OpenServer\domains\h-astana.dev\protected\models;c:/openserver/modules/php/PHP-5.5;c:/openserver/modules/php/PHP-5.5/PEAR/pear') in C:\OpenServer\domains\yii\YiiBase.php on line 427

Fatal error: Class 'StructCategory' not found in C:\OpenServer\domains\h-astana.dev\protected\components\CustomComponent.php on line 55

What is the problem, how to solve?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Bukharev, 2017-09-06
@evgenybuckharev

The problem is that the requested class StructCategory (CustomComponent.php on line 55) is missing.
Apparently you have the first version of Yii where there are no namespaces, and the script simply cannot find the class.
You need to look where it is, and specify the import directory in the project config, or manually import it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question