thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

The demo won't work #194

Open nakarin4350 opened 9 years ago

nakarin4350 commented 9 years ago

When click installation I get "Error 500 CDbCommand failed to execute the SQL statement: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'yii_user_management_demo.translation' doesn't exist Yii User Management version 0.9-git-wip.". Any idea ?

chelipf commented 9 years ago

Same problem, the thing is that when you open the http://localhost/testdrive/index.php/user/install calls to render function with start view as parameter, and this view uses Yum::SetFlash function that in turn uses Yum::t funcion. You can work around that issue creating the translation table like this:

CREATE TABLE IF NOT EXISTS translation ( message varbinary(255) NOT NULL, translation varchar(255) NOT NULL, language varchar(5) NOT NULL, category varchar(255) NOT NULL, PRIMARY KEY (message,language,category) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

But this is not the only problem :( , to be continued.

skworden commented 9 years ago

I had the same problem. After creating the table and running the installer I was getting "trying to get a property of a non object" from user/views/user/login.php line 124

You can register <?php echo CHtml::link('here', Yum::module('registration')->registrationUrl);?>

to fix it i added the following to the config->main->modules portion

'registration' => array( 'registrationUrl' => '../registration/registration/registration', ),

nakarin4350 commented 9 years ago

Thanks for response.