Alias "citizenToolKit.models.*" is invalid
Created by: gturri
Hi,
TL;DR:
I've been following the README, but at the step where I go to http://localhost/pixelhumain/ph/index.php/test
, I get the exception Alias "citizenToolKit.models.*" is invalid. Make sure it points to an existing directory or file
.
More details: I'm trying to launch the platform on Ubuntu 16.04. I have a working php server (Apache, which I'm using for other projects).
- I cloned the repo
pixelhumain
. (I'm on the currentmaster
, ie: 2f569178) - I created the mongo db and created the expected
ph/protected/config/dbconfig.php
file (btw, the README refers to adbconfig.example.php
file, but it doesn't seem to exist in the repo) - I created both directories
runtime
andasset
- and I launched the two composer commands (
composer update
andcomposer install
. Btw, I don't know if it's relevant, but the second command just told meNothing to install or update
)
and then, when I try to access http://localhost/pixelhumain/ph/index.php/test ; I get the error:
Alias "citizenToolKit.models.*" is invalid. Make sure it points to an existing directory or file.
/var/www/html/pixelhumain/ph/vendor/yiisoft/yii/framework/base/CModule.php(513)
Stack Trace
#0 /var/www/html/pixelhumain/ph/vendor/yiisoft/yii/framework/base/CModule.php(226): YiiBase::import("citizenToolKit.models.*")
#1 /var/www/html/pixelhumain/ph/vendor/yiisoft/yii/framework/base/CComponent.php(152): CModule->setImport(array("application.models.*", "application.components.*", "citizenToolKit.models.*", "citizenToolKit.components.*", ...))
#2 /var/www/html/pixelhumain/ph/vendor/yiisoft/yii/framework/base/CModule.php(513): CComponent->__set("import", array("application.models.*", "application.components.*", "citizenToolKit.models.*", "citizenToolKit.components.*", ...))
#3 /var/www/html/pixelhumain/ph/vendor/yiisoft/yii/framework/base/CApplication.php(161): CModule->configure(array("name" => "Communecter", "theme" => "ph-dori", "sourceLanguage" => "00", "language" => "en", ...))
#4 /var/www/html/pixelhumain/ph/vendor/yiisoft/yii/framework/YiiBase.php(125): CApplication->__construct(array("name" => "Communecter", "theme" => "ph-dori", "sourceLanguage" => "00", "language" => "en", ...))
#5 /var/www/html/pixelhumain/ph/vendor/yiisoft/yii/framework/YiiBase.php(98): YiiBase::createApplication("CWebApplication", "/var/www/html/pixelhumain/ph/protected/config/main.php")
#6 /var/www/html/pixelhumain/ph/index.php(22): YiiBase::createWebApplication("/var/www/html/pixelhumain/ph/protected/config/main.php")
Since I'm just discovering the platform, I'm rather clueless. Any pointer is welcome!