Giter VIP home page Giter VIP logo

yii-user's People

Contributors

nayjest avatar

yii-user's Issues

tableName() functions for some models return table names that cannot be found in the database

What steps will reproduce the problem?
1. Import database schema.mysql.sql
2. Goto Registration page (/yourapp/user/registration)

What is the expected output? What do you see instead?
I expect to see the registration page.  Instead, I get this error:

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


What version of the product are you using? On what operating system?
I am using Yii 1.1.0 with a MySQL database.

Please provide any additional information below.
I was able to correct the issue by changing "{{users}}" to "tbl_users"
The same issue occurs for other models as well, including the Profile and
ProfileField models.

Original issue reported on code.google.com by [email protected] on 27 Feb 2010 at 4:08

Property "MyModule.relations" is not defined

What steps will reproduce the problem?
1. Create a new module that uses application.modules.user.models.User model.
2. Try to load the new module.
3. You'll get the message: ""

I fixed this message changing in the line #76 in User.php file for this one 
(adding isset function to the condition):
if (isset(Yii::app()->controller->module->relations)) 
array_merge($relations,Yii::app()->controller->module->relations);


Please provide any additional information below.
This always happens when modules like HRBACModule, SrbacModule and similar are 
used. I'm using YiiUser svn r50 and Yii svn r2283.

Original issue reported on code.google.com by robregonm on 23 Jul 2010 at 1:40

Table names should be a parameter in config/main.php.

I'm trying to use YiiUser module into a already developed project, but the User 
tablename is not the same, so I had to make a copy of User model and set it 
manually. (the same situation with Profile and ProfileField models)

If this is a parameter in the module it is much easier to implement in already 
developed projects. (Look at srbac module that does it)

I'm using Yii r2283 with YiiUser r50.

Original issue reported on code.google.com by robregonm on 23 Jul 2010 at 1:46

file field widget delete exception

What steps will reproduce the problem?
1. add new profile field
type: varchar
required: no
fieldsize: 50
fieldsize_min: 0
widget: filefield
widgetparams
  -allowEmpty: true
  -allowFiles: 1

2. edit profile -> upload file
3. edit profile -> delete file

What is the expected output? What do you see instead?
a) the file name is not displayed on the edit profile page,
   instead: 'no file chosen'
b) checking 'delete file' and submitting the page throws exception:
CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity 
constraint violation: 1048 Column 'avatar' cannot be null

Version: revision r66

Original issue reported on code.google.com by [email protected] on 2 Nov 2010 at 2:05

profile/edit exception

What steps will reproduce the problem?
1. login
2. edit your profile
3. edit a field e.g. First Name

Exeption is thrown, CDbException

Description

CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity 
constraint violation: 1048 Column 'password' cannot be null


What version of the product are you using? On what operating system?
version: 
http://www.yiiframework.com/extension/yii-user/files/yii-user-0.3-r64.zip/
yii version: http://yii.googlecode.com/files/yii-1.1.4.r2429.tar.gz
MySQL 5.1.48
Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 2 Nov 2010 at 10:45

Removing profile fields from registration form causes error

What steps will reproduce the problem?
1. Remove all profile fields from the registration form via the "manage profile 
fields" UI.
2. Complete and submit a registration form.

What is the expected output? What do you see instead?
The error "Undefined index: Profile" is returned. Line 32 in the registration 
controller always expects profile information to be submitted when a user 
registers. This isn't always the case since it isn't mandatory to have profile 
fields on the registration form.

Original issue reported on code.google.com by [email protected] on 10 Aug 2010 at 6:25

Field Type "Float" Won't Accept 10,2 Format

What steps will reproduce the problem?
1. Create new profile field.
2. Set field type to "Float"
3. Give it a default size value of 10,2
4. Save field.
5. Error returned saying field value must be an INT.

What is the expected output? What do you see instead?

- It should just save the field value.  The solution is to change field_size 
field in the profile_fields table from INT to VARCHAR.

What version of the product are you using? On what operating system?

Latest version of the module as of this bug report.

Please provide any additional information below.

N/A

Original issue reported on code.google.com by [email protected] on 21 Nov 2010 at 12:25

Undefined variable: list

Sorry for my bad english :)

What steps will reproduce the problem?
1. Go to user/profileField/admin
2. Delete profile field
3. Got "Undefined variable: list"

What version of the product are you using? On what operating system?
yii-user-0.2-r52


To fix it, you must change one of this files:
1. views/profileField/_menu.php
2. views/profileField/index.php

1. At line 5 from "if (count($list)) {" to "if (isset($list) && count($list)) {"
Or
2. At line 9 from "<?php echo $this->renderPartial('_menu'); ?>" to "<?php echo 
$this->renderPartial('_menu',array('list'=> array(),));?>"

IMHO, I'll fixing _menu.php :)

Original issue reported on code.google.com by [email protected] on 3 Sep 2010 at 5:10

Delete profile field fails - sqlite

created a new profile field named 'city'
then tried to delete 'city'.

Yii generates:

ALTER TABLE tbl_profiles DROP `city`

which appears not to be supported in sqlite, at least not DROP.

This seems to be more of a Yii problem rather than the user extension problem 
but I'm going to start here.

environment:
SQLite version 3.7.3
Mac OS X 10.6.5
yii-1.1.5.r2654 - Same error with both versions of yii!
yii-1.1.3.r2247

Original issue reported on code.google.com by [email protected] on 17 Nov 2010 at 4:27

first file is broken

please use this.

sorry that it has to be this way

Original issue reported on code.google.com by thyseus on 26 Feb 2010 at 12:23

Attachments:

Profile field type text exception

What steps will reproduce the problem?
1. create new profile field
2. field type: TEXT
3. no default value is set

What is the expected output? What do you see instead?
a) input: 'default value' should be inactive/invisible
b) throw exception:

CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: Syntax error 
or access violation: 1101 BLOB/TEXT column 'signature' can't have a default 
value


What version of the product are you using? On what operating system?
0.3-R66

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 3 Nov 2010 at 10:23

pasword recovery process: Error 500

What steps will reproduce the problem?
1.go to user/login
2.click on "Lost Password?" link (without text in inputfield)
3.

What is the expected output? What do you see instead?
I see: Error 500 Undefined index: email

What version of the product are you using? On what operating system?
o.2-r43

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 27 May 2010 at 8:03

Integrate yii-user installer and the attached bugfixes to the project

i have create a whole bunch of additional features like
an messaging System and a primitive Role Manager (not to
compete with srbac - just for projects with simple
Role Management)

i also have fixed some bugs and made a lot of the translation strings
much better (thm helped me on this, thank you)

If you want you can give me checkin/commit access to your project, so i can
insert my fixes/additions much more efficently in the future.

Yii-User is a good module and can advance to a de-facto User Management
Module (i don't like grbac). 

I really would like to contribute to this project, please take a look at my
file.

Original issue reported on code.google.com by thyseus on 26 Feb 2010 at 12:12

Attachments:

error

What steps will reproduce the problem?
1. Trying to create new field in the profile.

What is the expected output? What do you see instead?
Yii show an error "Undefined variable: list" in the file:

H:\mowes_portable\www\lw1\protected\modules\user\views\profileField\_menu.p
hp(5)

00001: <ul class="actions">
00002:     <li><?php echo CHtml::link(UserModule::t('Manage 
User'),array('/user/admin')); ?></li>
00003:     <li><?php echo CHtml::link(UserModule::t('Manage Profile 
Field'),array('admin')); ?></li>
00004: <?php 
00005:     if (count($list)) {
00006:         foreach ($list as $item)
00007:             echo "<li>".$item."</li>";
00008:     }
00009: ?>
00010: </ul><!-- actions -->

What version of the product are you using? On what operating system?
yii-user-0.2-r43

Please provide any additional information below.
I just changed line
<?php echo $this->renderPartial('_menu'); ?>
to
<?php echo $this->renderPartial('_menu', array('list'=>array())); ?>
in the file "\user\views\profileField\create.php" to fix this.

Original issue reported on code.google.com by [email protected] on 21 May 2010 at 8:47

file field widget url error

What steps will reproduce the problem?
1. add new profile field
type: varchar
required: no
fieldsize: 50
fieldsize_min: 0
widget: filefield
widgetparams
  -allowEmpty: true

2. edit profile -> upload file
3. view profile

What is the expected output? What do you see instead?
On the user profile page the url is given as relative e.g. 
assets/avatars/noavatar-1288705759.jpg
The Yii base url (in my case /yiitest/index.php) is missing, so the link is 
wrong.




What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 2 Nov 2010 at 2:00

md5 not working

What steps will reproduce the problem?
1. Register
2. look at mysql record
3. password is readable.

What is the expected output? What do you see instead?
encrypted

What version of the product are you using? On what operating system?
latest

Please provide any additional information below.
[email protected]

Original issue reported on code.google.com by [email protected] on 22 Sep 2010 at 2:07

Error after installation: Property "User.isGuest" is not defined.

What steps will reproduce the problem?
1. Do a clean install of yii
2. Install the tarball and make the config changes as described in the
installation documentation.
3. Try to load the application and take note of the described error message
below.

=======

CException

Omschrijving

Property "User.isGuest" is not defined.
Bronbestand

D:\wwwroot\YIIDemo\framework\db\ar\CActiveRecord.php(106)

        00094:      */
00095:     public function __get($name)
00096:     {
00097:         if(isset($this->_attributes[$name]))
00098:             return $this->_attributes[$name];
00099:         else if(isset($this->getMetaData()->columns[$name]))
00100:             return null;
00101:         else if(isset($this->_related[$name]))
00102:             return $this->_related[$name];
00103:         else if(isset($this->getMetaData()->relations[$name]))
00104:             return $this->getRelated($name);
00105:         else
00106: return parent::__get($name);
00107:     }
00108: 
00109:     /**
00110:      * PHP setter magic method.
00111:      * This method is overridden so that AR attributes can be
accessed like properties.
00112:      * @param string property name
00113:      * @param mixed property value
00114:      */
00115:     public function __set($name,$value)
00116:     {
00117:         if($this->setAttribute($name,$value)===false)
00118:         {


Stack Trace

        #0 D:\wwwroot\YIIDemo\framework\db\ar\CActiveRecord.php(106):
CComponent->__get('isGuest')
#1 D:\wwwroot\YIIDemo\CJWApp\protected\views\layouts\main.php(34):
CActiveRecord->__get('isGuest')
#2 D:\wwwroot\YIIDemo\framework\web\CBaseController.php(119):
require('D:\wwwroot\YIID...')
#3 D:\wwwroot\YIIDemo\framework\web\CBaseController.php(88):
CBaseController->renderInternal('D:\wwwroot\YIID...', Array, true)
#4 D:\wwwroot\YIIDemo\framework\web\widgets\CContentDecorator.php(78):
CBaseController->renderFile('D:\wwwroot\YIID...', Array, true)
#5 D:\wwwroot\YIIDemo\framework\web\widgets\CContentDecorator.php(56):
CContentDecorator->decorate('<div class="con...')
#6 D:\wwwroot\YIIDemo\framework\web\widgets\COutputProcessor.php(45):
CContentDecorator->processOutput('<div class="con...')
#7 D:\wwwroot\YIIDemo\framework\web\CBaseController.php(193):
COutputProcessor->run()
#8 D:\wwwroot\YIIDemo\framework\web\CBaseController.php(288):
CBaseController->endWidget('CContentDecorat...')
#9 D:\wwwroot\YIIDemo\CJWApp\protected\views\layouts\column1.php(7):
CBaseController->endContent()
#10 D:\wwwroot\YIIDemo\framework\web\CBaseController.php(119):
require('D:\wwwroot\YIID...')
#11 D:\wwwroot\YIIDemo\framework\web\CBaseController.php(88):
CBaseController->renderInternal('D:\wwwroot\YIID...', Array, true)
#12 D:\wwwroot\YIIDemo\framework\web\CController.php(676):
CBaseController->renderFile('D:\wwwroot\YIID...', Array, true)
#13 D:\wwwroot\YIIDemo\CJWApp\protected\controllers\SiteController.php(32):
CController->render('index')
#14 D:\wwwroot\YIIDemo\framework\web\actions\CInlineAction.php(32):
SiteController->actionIndex()
#15 D:\wwwroot\YIIDemo\framework\web\CController.php(300): CInlineAction->run()
#16 D:\wwwroot\YIIDemo\framework\web\CController.php(278):
CController->runAction(Object(CInlineAction))
#17 D:\wwwroot\YIIDemo\framework\web\CController.php(257):
CController->runActionWithFilters(Object(CInlineAction), Array)
#18 D:\wwwroot\YIIDemo\framework\web\CWebApplication.php(320):
CController->run('')
#19 D:\wwwroot\YIIDemo\framework\web\CWebApplication.php(120):
CWebApplication->runController('')
#20 D:\wwwroot\YIIDemo\framework\base\CApplication.php(135):
CWebApplication->processRequest()
#21 D:\wwwroot\YIIDemo\CJWApp\index.php(12): CApplication->run()
#22 {main}        

=============

System Specs:

Yii 1.1.0
yii-user 0.1.1
Windows vista (using WAMP)
Apache 2.2.8
PHP 5.2.8
MySQL 5.1.30




Original issue reported on code.google.com by [email protected] on 14 Feb 2010 at 10:30

Enh: Relational Fields

It will be a great idea to have the possibility of have relational field in 
Profile fields and having the possibility of choosing the "remote" table with 
the field to be shown.
Ex: I'd like to have a Country field, and I have a table with Countries, I'd 
like to create a relational field since Profiles Module for that.

Original issue reported on code.google.com by robregonm on 2 Aug 2010 at 11:42

it would be nice to allow dont use username at all, only email as login

It would be nice to add configuration parameter, that allow dont display 
username field in registration/profile editing  and use only email as login
-----------------
(sorry for my english, usually i speak russian, previous issue about uppercase 
character in profile field variable names is reported by me too)

Original issue reported on code.google.com by vitaliy.step on 23 Sep 2010 at 11:32

требуется оптимизация работы модуля с БД

What steps will reproduce the problem?
1. заходим на страницу редактирования 
профиля /index.php?r=user/profile/edit
2. и видим, что запрос выполняется 5 раз "SELECT * 
FROM `profile_fields` `t` WHERE visible>=1"

What is the expected output? What do you see instead?
думаю достаточно было бы и одного )

What version of the product are you using? On what operating system?
yii-user-0.3-r63

Please provide any additional information below.
Yii ver: 1.1.4 

Original issue reported on code.google.com by [email protected] on 26 Oct 2010 at 7:54

API for role Management

One more thing: i have written an API doc for the use of the 'role' manager
in Yii Applications. It would be cool if i can get access to the project
wiki, too so i can include it there, thank you.

p.s. how is it possible to change the issue-type ? it's always 'defect' -
can't find the switch :)

Original issue reported on code.google.com by thyseus on 26 Feb 2010 at 12:15

Allow uppercase symbols for varname in ProfileField Model

Its useful for further integration of yii-user with other code.
For example, i need to send user profiles via SOAP in my project, and i have 
predefined names of parameters that contain uppercase symbols in SOAP 
procedure, so it would be nice to give a names for profile fields that is 
similar to parameter nemes in SOAP procedure, like 'firstName', 'lastName' for 
avoiding unnecessary code.

ProfileField.php -> line  59:
array('varname', 'match', 'pattern' => '/^[A-Za-z_0-9]+$/u','message' => 
UserModule::t("Incorrect symbol's.")),

Original issue reported on code.google.com by [email protected] on 23 Sep 2010 at 11:24

Invalid argument supplied for foreach() on the profile page

What steps will reproduce the problem?
1. Right after installation
2. Successful login
3. Invalid argument supplied for foreach() on the profile page

What is the expected output? What do you see instead?
form fields

What version of the product are you using? On what operating system?
1.1.5 (SQLite) (r.69)

Please provide any additional information below.

Description

Invalid argument supplied for foreach()

Source File

/var/www/yii-1.1.5.r2654/framework/db/ar/CActiveFinder.php(758)

Stack trace:
Invalid argument supplied for foreach()
(/var/www/yii-1.1.5.r2654/framework/db/ar/CActiveFinder.php:758)
Stack trace:
#0 /var/www/yii-1.1.5.r2654/framework/db/ar/CActiveFinder.php(166):
CJoinElement->lazyFind()
#1 /var/www/yii-1.1.5.r2654/framework/db/ar/CActiveRecord.php(240):
CActiveFinder->lazyFind()
#2 /var/www/yii-1.1.5.r2654/framework/db/ar/CActiveRecord.php(108):
User->getRelated()
#3
/var/www/p/Project-J/protected/modules/user/controllers/ProfileController.php(19
):
User->__get()
#4 /var/www/yii-1.1.5.r2654/framework/web/actions/CInlineAction.php(57):
ProfileController->actionProfile()
#5 /var/www/yii-1.1.5.r2654/framework/web/CController.php(300):
CInlineAction->run()
#6 /var/www/yii-1.1.5.r2654/framework/web/CController.php(278):
ProfileController->runAction()
#7 /var/www/yii-1.1.5.r2654/framework/web/CController.php(257):
ProfileController->runActionWithFilters()
#8 /var/www/yii-1.1.5.r2654/framework/web/CWebApplication.php(324):
ProfileController->run()
#9 /var/www/yii-1.1.5.r2654/framework/web/CWebApplication.php(121):
CWebApplication->runController()
#10 /var/www/yii-1.1.5.r2654/framework/base/CApplication.php(135):
CWebApplication->processRequest()
#11 /var/www/p/Project-J/index.php(26): CWebApplication->run()
REQUEST_URI=/p/Project-J/index.php?r=user/profile
in
/var/www/p/Project-J/protected/modules/user/controllers/ProfileController.php
(19)
in /var/www/p/Project-J/index.php (26)

Original issue reported on code.google.com by [email protected] on 27 Dec 2010 at 8:35

Match must be an integer ???

public function rules(){
  return array(
....
  array('field_size, field_size_min, required, 

match, 

 position, visible', 'numerical', 'integerOnly'=>true),

Original issue reported on code.google.com by [email protected] on 13 Feb 2010 at 12:40

change $modle to $form

Undefined variable: model
Source File
D:\wamp\www\yii\users\protected\views\user\login.php(78)

Original issue reported on code.google.com by [email protected] on 13 Feb 2010 at 12:50

redirection circle

What steps will reproduce the problem?
1. register as a new user
2. log in as an another user
3. click the activation link in the activation mail (new user from p.1)


What is the expected output? What do you see instead?
and you're in a redirection circle

What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 7 Apr 2010 at 8:55

bug: new user see last login as 1.1.1970

1. look at RegistrationController for model->lastvisit it gets sometimes 0
2. look at your profile after logging in

a condition which just tells "never logged in" when time is 0 would look more 
nice - i guess most people don't know what the unix-time is (:

Original issue reported on code.google.com by [email protected] on 20 Aug 2010 at 5:08

bad german translation

Better one:

<?php

return array(
    'Registration' => 'Registrierung',
    'Login' => 'Login',
    'Logout' => 'Logout',
    'username' => 'Benutzername',
    'username or email' => 'Benutzername oder E-Mail',
    'password' => 'Passwort',
    'Remember me next time' => 'Das nächste Mal an mich erinnern',
    'Username is incorrect.' => 'Benutzername ist falsch.',
    'Email is incorrect.' => 'E-Mail ist nicht korrekt.',
    'This user\'s name already exists.' => 'Der Benutzer Name existiert bereits.',
    'This user\'s email adress already exists.' => 'Der Benutzer
E-Mail-Adresse existiert bereits.',
    'You account is not activated.' => 'Ihr Konto wurde nicht aktiviert.',
    'You account is blocked.' => 'Ihr Konto wurde blockiert.',
    'Password is incorrect.' => 'Passwort ist falsch.',
    'E-mail' => 'E-mail',
    'Verification Code' => 'Verification Code',
    'Retype Password' => 'Passwort wiederholen',
    'Retype Password is incorrect.' => 'Wiederholtes Passwort ist falsch.',
    'Incorrect password (minimal length 4 symbols).' => 'Falsches Passwort
(minimale Länge 4 Zeichen).',
    'Incorrect username (length between 3 and 20 characters).' => 'Falscher
Benutzername (Länge zwischen 3 und 20 Zeichen).',
    'Incorrect symbol\'s. (A-z0-9)' => 'Im Benutzernamen sind nur Buchstaben
und Zahlen erlaubt.',
    'Please enter the letters as they are shown in the image above.' => 'Bitte
geben Sie die, oben im Bild angezeigten, Buchstaben ein.',
    'Letters are not case-sensitive.' => 'Zwischen Groß-und Kleinschreibung
wird nicht unterschieden.',
    'Minimal password length 4 symbols.' => 'Minimale Länge des Passworts 4
Zeichen.',
    'Lost Password?' => 'Passwort vergessen?',
    'Profile' => 'Profil',
    'activation key' => 'Aktivierungsschlüssel',
    'User activation' => 'User-Aktivierung',
    'You account is active.' => 'Ihr Konto ist aktiv.',
    'You account is activated.' => 'Ihr Konto wurde aktiviert.',
    'Incorrect activation URL.' => 'Falsche Aktivierungs URL.',
    'Registration date' => 'Anmeldedatum',
    'Last visit' => 'Letzter Besuch',
    'Superuser' => 'Superuser',
    'Status' => 'Status',
    'Ok' => 'Ok',
    'Save' => 'Sichern',
    'New password is saved.' => 'Neues Passwort wird gespeichert.',
    'Change password' => 'Passwort ändern',
    'Your profile' => 'Ihr Profil',
    'Thank you for your registration. Please check your email or login.' =>
'Vielen Dank für Ihre Anmeldung. Bitte überprüfen Sie Ihre E-Mails oder
loggen Sie sich ein.',
    'Thank you for your registration. Please check your email.' => 'Vielen
Dank für Ihre Anmeldung. Bitte überprüfen Sie Ihre E-Mails.',
    'Please check your email. An instructions was sent to your email address.'
=> 'Bitte überprüfen Sie Ihre E-Mails. Eine Anleitung wurde an Ihre
E-Mail-Adresse geschickt.',
    'Restore' => 'Wiederherstellen',
    'Please enter your login or email addres.' => 'Bitte geben Sie Ihren
Benutzernamen oder E-Mail-Adresse ein.',
    'Incorrect recovery link.' => 'Recovery link ist falsch.',
    'Already exists.' => 'Existiert bereits.',
    'First Name' => 'Vorname',
    'Last Name' => 'Nachname',
    'No' => 'Nein',
    'Yes' => 'Ja',
    'Not active' => 'Nicht aktiv',
    'Active' => 'Aktiv',
    'Banned' => 'Verbannt',
    'Please fill out the following form with your login credentials:' =>
'Bitte Ihren Login-Daten eingeben:',
    'Fields with <span class="required">*</span> are required.' => 'Felder mit
<span class="required"> * </ span> sind erforderlich.',
    'List User' => 'Benutzer auflisten',
    'Edit' => 'Bearbeiten',
    'Edit profile' => 'Meine Daten bearbeiten',
    'Create User' => 'Benutzer anlegen',
    'Manage' => 'Verwalten',
    'Manage User' => 'Benutzer verwalten',
    'Users' => 'Benutzer',
    'Update User' => 'Benutzer bearbeiten',
    'Delete User' => 'Benutzer löschen',
    'View User' => 'Benutzer anzeigen',
    'Are you sure to delete this item?' => 'Sind Sie sicher, dass Sie dieses
Element wirklich löschen wollen? ',
    'Changes is saved.' => 'Änderungen wurde gespeichert.',
    'Mange Profile Field' => 'Mange Profil Field',
    'Variable name' => 'Variablen name',
    'Title' => 'Titel',
    'Field Type' => 'Feldtyp',
    'Field Size' => 'Feldgröße',
    'Field Size min' => 'min Feldgröße',
    'Required' => 'Benötigt',
    'Match' => 'Treffer',
    'Range' => 'Bereich',
    'Error Message' => 'Fehlermeldung',
    'Other Validator' => 'Andere Validatoren',
    'Default' => 'Default',
    'Position' => 'Position',
    'Visible' => 'Sichtbar',
    'Registered users' => 'Registrierte Benutzer',
    'For all' => 'Für alle',
    'Only owner' => 'Nur Besitzer',
    'Hidden' => 'Verstecken',
);

Original issue reported on code.google.com by [email protected] on 12 Feb 2010 at 7:44

Untranslatable string

There is untranslatable string in RegistrationController.php (line 49):

UserModule::sendMail($model->email,"You registered from 
".Yii::app()->name,"Please activate you account go to $activation_url.");

Original issue reported on code.google.com by [email protected] on 3 Aug 2010 at 10:41

enhancement: captcha-config

Hello - hopefully this is the right place to post a patch.
I made an additional config option which lets you specify in which places to 
allow or disallow captchas - i've written it a bit more generic in case you 
plan more captchas later

thanks for your module.. looks very clean with my first impression

Original issue reported on code.google.com by [email protected] on 20 Aug 2010 at 4:41

Attachments:

missing issets

I made some changes on ActivationController.php, because I got some undefined 
variable errors (on my dev environment error_report = E_ALL and display_errors 
= On),

12 $email   = urldecode(Yii::app()->request->getQuery('email'));
13 $activkey    = Yii::app()->request->getQuery('activkey');

16 if( isset($find->status) && $find->status ) {

18 } elseif( isset($find->activkey) && ($find->activkey==$activkey) ) {


Original issue reported on code.google.com by [email protected] on 6 Aug 2010 at 11:17

how to run using Command Prompt?

What steps will reproduce the problem?
1.How this can be implement trough command prompt.
2.I have done it using command prompt but the error show below occurs every 
time. Please help me by giving some instructions about how to customize it.

What is the expected output? What do you see instead?


CDbException
Description

The table "{{users}}" for active record class "User" cannot be found in the 
database.
Source File

C:\xampp\htdocs\yii\framework\db\ar\CActiveRecord.php(1930)

01918:     private $_model;
01919: 
01920:     /**
01921:      * Constructor.
01922:      * @param CActiveRecord the model instance
01923:      */
01924:     public function __construct($model)
01925:     {
01926:         $this->_model=$model;
01927: 
01928:         $tableName=$model->tableName();
01929:         if(($table=$model->getDbConnection()->getSchema()-
>getTable($tableName))===null)
01930: throw new CDbException(Yii::t('yii','The table "{table}" for active 
record class "{class}" cannot be found in the database.',
01931:                 
array('{class}'=>get_class($model),'{table}'=>$tableName)));
01932:         if($table->primaryKey===null)
01933:             $table->primaryKey=$model->primaryKey();
01934:         $this->tableSchema=$table;
01935:         $this->columns=$table->columns;
01936: 
01937:         foreach($table->columns as $name=>$column)
01938:         {
01939:             if(!$column->isPrimaryKey && $column-
>defaultValue!==null)
01940:                 $this->attributeDefaults[$name]=$column-
>defaultValue;
01941:         }
01942: 

Stack Trace

#0 C:\xampp\htdocs\yii\framework\db\ar\CActiveRecord.php(328): 
CActiveRecordMetaData->__construct(Object(User))
#1 C:\xampp\htdocs\yii\register\protected\models\User.php(41): 
CActiveRecord::model('User')
#2 C:\xampp\htdocs\yii\register\protected\models\User.php(160): 
User::model()
#3 
C:\xampp\htdocs\yii\register\protected\controllers\UserController.php(39): 
User->getAdmins()
#4 C:\xampp\htdocs\yii\framework\web\CController.php(982): UserController-
>accessRules()
#5 C:\xampp\htdocs\yii\framework\web\filters\CInlineFilter.php(59): 
CController->filterAccessControl(Object(CFilterChain))
#6 C:\xampp\htdocs\yii\framework\web\filters\CFilterChain.php(126): 
CInlineFilter->filter(Object(CFilterChain))
#7 C:\xampp\htdocs\yii\framework\web\CController.php(283): CFilterChain-
>run()
#8 C:\xampp\htdocs\yii\framework\web\CController.php(257): CController-
>runActionWithFilters(Object(CInlineAction), Array)
#9 C:\xampp\htdocs\yii\framework\web\CWebApplication.php(320): CController-
>run('profile')
#10 C:\xampp\htdocs\yii\framework\web\CWebApplication.php(120): 
CWebApplication->runController('user/profile')
#11 C:\xampp\htdocs\yii\framework\base\CApplication.php(135): 
CWebApplication->processRequest()
#12 C:\xampp\htdocs\yii\register\index.php(11): CApplication->run()
#13 {main}

2010-02-25 11:48:36 Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 
OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 
Yii Framework/1.1.0


What version of the product are you using? On what operating system?

OS- Windows XP, Product- yii-user-0.1.1(http://code.google.com/p/yii-
user/downloads/list) --- featured version 

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 25 Feb 2010 at 6:19

'sendActivationMail' parameter ignored

What steps will reproduce the problem?
1. Set 'sendActivationMail' in main.php config file as false
2. Register a new user
3. An error will occur for no SMTP server

What is the expected output? What do you see instead?

Just user's profile page.

What version of the product are you using? On what operating system?

yii-user-0.2-r48

Please provide any additional information below.

I fixed in RegistrationController.php (line 49):
if (Yii::app()->controller->module->sendActivationMail) 
UserModule::sendMail($model->email,"You registered from 
".Yii::app()->name,"Please activate you account go to $activation_url.");

Original issue reported on code.google.com by [email protected] on 27 Jul 2010 at 1:19

Attachments:

relations between model and the user module

What steps will reproduce the problem?
1.I want to create relations between a model of Comments to the user module, 
but I get an error when I writing:
'creator'=>array(self::HAS_ONE, 'User', 'id')
or
'creator'=>array(self::HAS_ONE, '../modules/user/models/User', 'id')

What is the expected output? What do you see instead?
I get a php error:
include(User.php) failed to open stream: No such file or directory

What version of the product are you using? On what operating system?
yii-user-0.2-r52 with yii1.1.3

Please provide any additional information below.
Thanks!

Original issue reported on code.google.com by [email protected] on 6 Sep 2010 at 12:03

Inconsistency

In some cases there is Yii::app()->user... and there is also Yii::app()-
>User... This may work on windows but won't it give errors on systems like 
linux

Original issue reported on code.google.com by [email protected] on 12 Feb 2010 at 3:57

Registration buttons and links should be relabelled Register

What steps will reproduce the problem?
1. Goto the Registration page.

What is the expected output? What do you see instead?
The Registration button should be "Register", not "Registration"

What version of the product are you using? On what operating system?
The trunk.

Please provide any additional information below.
The localization files will need to be changed as well.

Original issue reported on code.google.com by [email protected] on 27 Feb 2010 at 4:14

File field options error

What steps will reproduce the problem?
1. add profile field - file field widget
2. edit widget options see below
3. save field

What is the expected output? What do you see instead?
Error: Other Validator is too long (maximum is 255 characters).

Options:
{"file":{"allowEmpty":"true","maxFiles":"1","maxSize":"16000000","minSize":"1000
","tooLarge":"image too large (max xxxkB)","tooMany":"only one image 
allowed","tooSmall":"image too small (min 
xxxkB)","types":"jpg;png;gif","wrongType":"only jpg, png, gif allowed"}}

What version of the product are you using? On what operating system?
0.3-r66

Please provide any additional information below.
Widget options need a larger db field.

Original issue reported on code.google.com by [email protected] on 3 Nov 2010 at 10:15

Security Issue : List of users are displayed without login authentication

What steps will reproduce the problem?
1. install yii-user on a standard yii installation
2. Browse to  <site>/index.php?r=user
3. Displays list of users present in the system

What is the expected output? What do you see instead?

Ideally I would expect only Admin user to see the list of all users. If not,  
atleast the DefaultController should expect one to authenticate before 
presenting the list of users.


What version of the product are you using? On what operating system?

yii-user-0.3-r69 and yii-1.1.5.r2654  / Linux 

Please provide any additional information below.

would be helpful if Index and View operations of Users can be restricted to 
Admins via module configuration or some other means


Original issue reported on code.google.com by [email protected] on 31 Dec 2010 at 4:01

Inconsistent 'username' validation rules

What steps will reproduce the problem?
1. Register a new user with a username containing spaces, e.g. "John Smith"
2. Login using username containing spaces.
3. Try and update the user profile (won't accept spaces on save).

What is the expected output? What do you see instead?

The registration form allows usernames to be created containing spaces, whereas 
this contravenes the rules allowed when updating the user profiles. I noticed 
this when trying to work out why the 'lastvisit' field did not populate in the 
tbl_users table for users with usernames containing spaces.

What version of the product are you using? On what operating system?

yii-user-0.3-r69

Mac OS X 10.6 (Snow Leopard) running MAMP 1.9.2

Please provide any additional information below.

I noticed there is a difference in the regular expressions used for validation 
of the username fields, i.e.

Registration Form [modules/user/models/RegistrationForm.php]:

'pattern' => '/^[A-Za-z0-9\s,]+$/u'

Update User Form [modules/user/models/User.php]:

'pattern' => '/^[A-Za-z0-9_]+$/u'

NOTE: changing the Registration Form pattern to match the User form corrects 
the inconsistency and ensures usernames cannot contain spaces, which I presume 
is the original intention.


Original issue reported on code.google.com by [email protected] on 28 Dec 2010 at 9:33

Add ukrainian messages translation

Translated messages/ua/user.php file:
http://nayjest.ru/userfiles/external/yii-user.messages.ua.rar

Original issue reported on code.google.com by vitaliy.step on 20 Sep 2010 at 12:13

User notsafe method not exist

What steps will reproduce the problem?
1.go to registration page
2.compile and confirm
3.Active the account by email 

What is the expected output? What do you see instead?
the activation success.

What version of the product are you using? On what operating system?
yii-user-0.2-r52

Please provide any additional information below.
notsafe method not exist in User Class

Original issue reported on code.google.com by [email protected] on 26 Aug 2010 at 4:23

Strictness

Please use directive error_reporting(-1); and fix all errors displayed
I've found following:
 - a lot of methods which are using in static context, e.g. UserModule::t
are not defined as such
 - not all menus have defined $list attribute therefore we have error/dump
for them

Original issue reported on code.google.com by [email protected] on 10 Mar 2010 at 9:31

typo[ user's -> users's ]

What steps will reproduce the problem?

modules/user/models/RegistrationForm.php
line 18,

What is the expected output? What do you see instead?
This user's email adress already exists. -> This users's email adress
already exists.

What version of the product are you using? On what operating system?
yii-user-0.2-r43

Please provide any additional information below.
Yii PHP framework 1.1.0

Original issue reported on code.google.com by [email protected] on 21 Mar 2010 at 9:19

Property "ProfileField.widget" is not defined

When i updated yii-user from last revision, i got exception:
Property "ProfileField.widget" is not defined.

Original issue reported on code.google.com by vitaliy.step on 22 Sep 2010 at 3:14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.