[Module] Yii User Management Module

Never mind, had some stuff in the wrong place (still a newbie here). But now I’m getting this:

CWebUser and its behaviors do not have a method or closure named "data".

I saw something about logging out and back in, but that didn’t seem to work - what am I missing?

Made it past that error, now I’m stuck with the following:

CWebUser and its behaviors do not have a method or closure named "isAdmin".

can any one please help me on my issue ??

http://www.yiiframework.com/forum/index.php?/topic/28322-yii-user-file-upload-not-working-guys-any-help-please/

:unsure: :unsure: :unsure: :unsure:

Thanks in advance

Hi, i’m using YUM for some time and i have seen issues with accessRules and filters. I have configured YUM as google code instructions (main.php config with user, registration… modules and YumWebUser component as user component class). I have this issue:

I configured filters and accessrules in a controller as below:




    public function filters()

    {

        return array(

            'accessControl',

        );

    }

	

	public function accessRules()

	{

		return array(

			array('allow', 

				'actions'=>array('contact', 'error'),

				'users'=>array('*'),

			),

			array('allow',

				'actions'=>array('index', 'inicio'),

				'users'=>array('@'),

			),

			array('deny',

				'users'=>array('*'),

			),

		);

	}



When I try access to index or inicio action i get “you don’t have permissions” error, but my user is logged on and Yii::app()->user->id works properly. I can access to /user/user/admin url correctly. Can anyone help me?

Error when sending registration email:

The table "{{yumtextsettings}}" for active record class "YumTextSettings" cannot be found in the database.

Any ideas on how to fix this?

Add to you main.php YumTextSettings table alias:




    modules'=>array(

	'user'=>array(

            ...

            'textSettingsTable'=>'yum_config_idioma',  // for me

        ),

        ...

    ),



Check in database for a "yum_text_settings" table or something.

you can also override the sendRegistrationEmail() function and fetch

a custom text source, for example from an array, a content management

system of anywhere else. The YumTextSettings are just a example how

it could work.

I figured out how to get yumtextsettings table defined (for some reason it didn’t install) and I updated the user in the config to point to it, but now after registering a user I’m getting, by the way the user was added to the table:

Property "YumWebUser.textSettingsTable" is not defined.

/Library/WebServer/yii/framework/web/auth/CWebUser.php(155)

143

144 /**

145 * PHP magic method.

146 * This method is overriden so that persistent states can be set like properties.

147 * @param string $name property name

148 * @param mixed $value property value

149 */

150 public function __set($name,$value)

151 {

152 if($this->hasState($name))

153 $this->setState($name,$value);

154 else

155 parent::__set($name,$value);

156 }

157

158 /**

159 * PHP magic method.

160 * This method is overriden so that persistent states can also be checked for null value.

161 * @param string $name property name

162 * @return boolean

163 */

Property "YumWebUser.textSettingsTable" is not defined.

It seems like you are calling Yii::app()->user->textSettingsTable somewhere. It needs to be

Yum::module()->textSettingsTable. You can also override the function and simply set ‘yum_text_settings’,

or however your table is called.

Hi,

I have installed the Yii User Management Module. I want to add customize fields in the registration form. I have read the topic posted here http://www.yiiframework.com/wiki/195/implementing-a-registration-process-using-the-yii-user-management-module/.

I want to know how can I add new fields in the registration form comprising Yii auto complete widget and those new fields I want to save in new table other than profile table.

Thanks in advance.

I am having trouble with this whole installation(newbie) I was wondering if there is a video installation of this? I really would like to see how this works. Please!

Hi all!

many thanks for this module. it works ok. but when i tried to access "TextTranslations" i got this error "Declaration of YumTranslationController::loadModel() should be compatible with that of YumController::loadModel()"

sorry. this was second error i got. first was about ajax validation. a fixed it. but seeing this error i’m not shure if i should fix it or not.

i’m using 0.8 version from yii extensions repository.

now i’m translating messages to russian. where can i submit translation when i’m finished? i took french messages as there are most of them (544)

i finished translation. sql schema in attachment. may be there is FULL list of messages?

Hi there!

I made my first steps with yii framework (1.1.8 ). Now I want do build up a new website using the

extension yii user management.

But there is a problem I’m not able to solve.

I’ve downloaded the latest version (yii-user-management_0.8rc5.tar.bz2).

Did the installation discribed in Install_tutorial.txt.

Get the message that installation was successsfull.

But when I try to administrate the users I get a CException:


Alias "registration.RegistrationModule" is invalid. Make sure it points to an existing PHP file.

Browsing through my application directory structure I can’t find a Registration module.

Is it a separate module or submodule? It seems not be included in yii-user-management_0.8rc5.tar.bz2?

Can anybody help?

yesterday i’ve installed just this version and it works ok. try reinstalling. or may be you’ve copied not all files from tar?

the only thing is different by me - that i’m using yii 1.10… but i think that is not issue…

you should have the following folders in your /protected/modules

-membership

-avatar

-role

-profile

-usergroup

-user

-messages

-friendship

-registration

and just in last folder there is that registration module. check it out!

Hey there!

Thyseus, now that we have a fairly stable 0.8rc SVN version, I think we should add the StasuSS contribution and make a 0.8 final release. What do you think?

BTW, I started another project and I’m going to use YUM in it, so you have again a active developer on the front line. :)

Great, isn’t it? :D

I’ve updated the Installation Instructions page on the wiki with the actual content of the installation_tutorial.txt file.

http://code.google.com/p/yii-user-management/wiki/InstallationInstructions

Hi StasuSS,

thanks for your reply. I did a new installation of yii 1.1.10.

After creating a new webapp (yiic webapp <app-path>) there is no

folder ‘moduls’ under folder ‘protected’.

In folder ‘protected’ there are these folders:

      commands


      components


      config


      controllers


      data


      extensions


      messages


      migrations


      models


      runtime


      tests


      views

What’s wrong????

@klaus007 you have to create it. :)

Thanks, problem is solved! :rolleyes: