Yii Search Paths

Failed opening ‘CDBAuthManager.php’ for inclusion error when trying to run a shell command using yii.bat.

The command is RbacCommand.php to create RABC items.

Here is the full error text:

[i]Yii Interactive Tool v1.1 (based on Yii v1.1.14)

Please type ‘help’ for help. Type ‘exit’ to quit.

>> Usage: rbac <action>

Actions:

index


delete

DESCRIPTION

This command generates an initial RBAC authorization hierarchy.

>>

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

Warning: include(): Failed opening ‘CDBAuthManager.php’ for inclusion (include_path=’.;C:\xampp\htdocs\trackstar\protected\components;C:\xampp\htdocs\trackstar\protected\models;C:\xampp\php\PEAR’) in C:\yii\framework\YiiBase.php on line 427

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

Warning: include(): Failed opening ‘CDBAuthManager.php’ for inclusion (include_path=’.;C:\xampp\htdocs\trackstar\protected\components;C:\xampp\htdocs\trackstar\protected\models;C:\xampp\php\PEAR’) in C:\yii\framework\YiiBase.php on line 427

Fatal error: Class ‘CDBAuthManager’ not found in C:\yii\framework\YiiBase.php on line 217[/i]

The file exists in framework/web/auth but that folder is not in the search path shown above. Where should this search path be added or is there some other issue?

Thanks,

bwls103

The case is incorrect. It should be CDbAuthManager. Are you running on a case sensitive OS?

I am running Windows 7.

The line that errors is in the autoload section of yiibase.php. This file has not been modified.

The attached file is what I am attempting to execute. I did a grep search and the value CDBAuthManager.php does not appear in my site. Where should I look for the offending line. I am rather new to Yii.

Thanks so much for your assistance.

I am running this as a console command.

I use "C:\yii\framework\yiic.bat shell" to create the shell.

Keith,

You were 100% correct. The line that set up db authorization did have the ‘B’ in uppercase. I changed it and all is now working. Thanks so much for your guidance.

Bill S.