http://www.yiiframework.com/forum/index.php?showtopic=7591&view=findpost&p=167620
hi thyseus…I’m newbie…I follow your user/docs/install_tutorial.txt but still can’t work for install…this is my report alert :
Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file and the file is readable.
what should I do?
this is my… config/main.php :
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'testdrive',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.modules.user.models.*',
),
'modules'=>array(
'user' => array(
'debug' => true,
),
// uncomment the following to enable the Gii tool
/*
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'Enter Your Password Here',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
*/
),
// application components
'components'=>array(
'user'=>array(
'class' => 'application.modules.user.user.components.YumWebUser',
'allowAutoLogin'=>true,
'loginUrl' => array('//user/user/login'),
),
/*'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
// uncomment the following to enable URLs in path-format
*/
'urlManager'=>array(
'urlFormat'=>'path',
/*'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),*/
),
/*'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
// uncomment the following to use a MySQL database
*/
'db'=>array(
'connectionString' => 'pgsql:host=localhost;dbname=testdrive',
'emulatePrepare' => true,
'username' => 'postgres',
'password' => 'root',
'charset' => 'utf8',
// prior to yum0.8rc7 tablePrefix is not necessary anymore, but it can not hurt
'tablePrefix' => '',
),
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
*/
),
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'webmaster@example.com',
),
);
please help me
change to this, in components configuration:
'user'=>array(
'class' => 'application.modules.user.components.YumWebUser',
I did but I have alert like this :
Alias "application.modules.user.components.YumWebUser" is invalid. Make sure it points to an existing PHP file and the file is readable.
so I fix path like this:
'user'=>array(
'class' => 'application.modules.user.user.components.YumWebUser',
still can’t work…
can you show me your directory listing, of the modules folder, please
like this :
htdocs\
testdrive
\protected
\modules
\|_avatar
|_firendship
|_membership
|_message
|_profile
|_registration
|_role
|_user
|_usergroup
|_README.md
it should be
'user'=>array(
'class' => 'application.modules.user.components.YumWebUser',
try change to this in components, and in models config, change to this
'user' => array(
'debug' => false,
'userTable' => 'TABLE_NAME',
if you still get error’s, try reinstall, and check carefully all steps
still can’t work bro …it’s third time I have been install
you downloaded the last release? from github?
yup…I downloaded from github and yii framework site too
I have problem install from your link github. can you help me …please
I have got this alert :
"Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file and the file is readable. "
i cant help you more, im newbie too, im sorry, i tried… but i cant see what is wrog… try explain your problem in Yii IRC Chat room…
i cant help you more, im newbie too, im sorry, i tried… but i cant see what is wrog… try explain your problem in Yii IRC Chat room…
or in stackoverflow…
Hi Alan…what do you mean move up one directory?do you mean like this :
\modules
\|_avatar
|_firendship
|_membership
|_message
|_profile
|_registration
|_role
|_user
|_usergroup
|_README.md
but still can’t work bro…and more problem I’ve got…help me please
okay…thanks bro
I have same problem:
I am using latest Yii version 1.1.13.
If anybody solve this problem please share with us!
im using the Yii version 1.1.12…
Apache/2.4.2 (Win32)
PHP/5.4.6
try downgrade tho this, if its possible…
I tried downgrade, nothing change.
Here is the changes i did:
'import'=>array(
'application.models.*',
'application.components.*',
'application.modules.user.models.*',
),
'modules'=>array(
'user' => array(
'debug' => true,
),
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'1234',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
),
// application components
'components'=>array(
'user'=>array(
'class' => 'application.modules.user.components.YumWebUser',
'allowAutoLogin'=>true,
'loginUrl' => array('//user/user/login'),
),
// uncomment the following to enable URLs in path-format
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
// uncomment the following to use a MySQL database
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=userman',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'tablePrefix' => '',
),
i will try create a fresh install with last Yii release and YUM and see if a can install…
if im succed i will try make one tutorial for you guys