Open ksrichard opened 10 years ago
Please, try to populate the tables in the database with some data. At least enter the roles in the "role" table. You can use the sample sql from CsnUser https://github.com/coolcsn/CsnUser/blob/master/data/SampleData.sql
Hello K.S.Richar.
Please, try to populate the tables in the database with some data. At least enter the roles in the "role" table. You can use the sample sql from CsnUser https://github.com/coolcsn/CsnUser/blob/master/data/SampleData.sql
On Wed, Oct 2, 2013 at 12:38 PM, K.S.Richard notifications@github.comwrote:
hey I setup these modules and i got this error: Fatal error: Call to a member function getRole() on a non-object in /home/ksrichard/www/zend/food_manager/vendor/coolcsn/csn-authorization/src/CsnAuthorization/Module.php on line 53 what can i do?
— Reply to this email directly or view it on GitHubhttps://github.com/coolcsn/CsnAuthorization/issues/1 .
Make sure you have populated your database with the sample data (espessially the roles). Check if the user you are logged in as is assigned a proper role. Let us know if this resolves your problem. If you want to use all of the mentioned Csn modules, you may as well, take a look at the enhanced skeleton application which will eventually save you a lot of time configuring the modules.
Also, if you do have the data properly set in your tables, you may need to clear out the cookies (i.e. restart Zend Server), as was the case with me. Your last session may have remembered a previous but currently incorrect state.
hey I setup these modules( 'DoctrineModule', 'DoctrineORMModule', 'CsnUser', 'CsnAuthorization', 'CsnAclNavigation', 'CsnCms' ) and i got this error: Fatal error: Call to a member function getRole() on a non-object in /home/ksrichard/www/zend/food_manager/vendor/coolcsn/csn-authorization/src/CsnAuthorization/Module.php on line 53 what can i do?