Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to install yii user module

I downloaded the latest release of Yii user module from github and extracted it under

protected/modules/

directory so my directory structure under this include the user and other modules included in the zip. I made changes to the main file as mentioned in the docs so my main.php now looks like this

'import'=>array(
    'application.modules.user.models.*',
    'application.models.*',
    'application.components.*',

),

  'modules'=>array(
    // uncomment the following to enable the Gii tool

    'gii'=>array(
        'class'=>'system.gii.GiiModule',
        'password'=>'sheikh24',
        // If removed, Gii defaults to localhost only. Edit carefully to taste.
        'ipFilters'=>array('127.0.0.1','::1'),
    ),
            'user' => array(
                    'debug' => true,
            )

),
'components'=>array(
        'user'=>array(
            'class' => 'application.modules.user.components.YumWebUser',
            'allowAutoLogin'=>true,
            'loginUrl' => array('//user/user/login'),

        ),
    // uncomment the following to use a MySQL database

        'db'=>array(
        'connectionString' => 'mysql:host=localhost;dbname=ewindow',
        'emulatePrepare' => true,
        'username' => 'root',
        'password' => '',
        'charset' => 'utf8',
                    'tablePrefix' => '',
    ),
    'errorHandler'=>array(
        // use 'site/error' action to display errors
        'errorAction'=>'index/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',
            ),
            */
        ),
    ),
)

so as you can see I have all the code setup but when I hit the url

http://localhost/ewindow/index.php?r=user/install

I got the following error

include(UserModule.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

or I try to hit some other page in my application I get the error

include(YumWebUser.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

Can anybody tell me what I am doing wrong here ? please help me .

EDIT :

here is the link to the extentsion https://github.com/thyseus/yii-user-management

like image 584
Faizan Ali Avatar asked Jul 01 '12 09:07

Faizan Ali


4 Answers

My way of figure out this issue is to turn on short_open_tag in php.ini file. It was Off before I modified it.

like image 80
ZJ Lyu Avatar answered Nov 06 '22 16:11

ZJ Lyu


Check wamp server settings also. specially the php version you are using...

like image 43
Muneeb Ahmad Avatar answered Nov 06 '22 14:11

Muneeb Ahmad


check files permisions also:

chmod -R go+rx protected/modules 
like image 33
jacktrade Avatar answered Nov 06 '22 16:11

jacktrade


It seems the module developer used short_open_tags in. i.e, <? ?> instead of <?php ?>. So just enable it in PHP.

In Xampp, locate php.ini and set short_open_tags = On

like image 1
Tizak Avatar answered Nov 06 '22 16:11

Tizak