Yii Framework Forum: User Management Problem - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

User Management Problem Can not create anything---- Rate Topic: -----

#1 User is offline   FredT 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 12-August 12

Posted 12 August 2012 - 11:17 AM

Hello everybidy, after spending 1 day installing yii, I am fithing now with USer Management Module. Every thing looks like ok until I try to create something ( user, role, etc etc ...)

I have got this error when system trying to diplay the creation from and or update form.:

Fields with * are required.

Superuser *
Status *
User belongs to these roles


( ! ) Fatal error: Cannot re-assign auto-global variable _POST in C:\xampp\htdocs\wba\protected\modules\user\components\Relation.php on line 723
Call Stack


Can someone help or have some ideawhere to look for ?

Thanks

Fred
0

#2 User is offline   alirz23 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 716
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 12 August 2012 - 11:35 AM

fred post some code
0

#3 User is offline   lienmt 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 05-September 12

Posted 05 September 2012 - 03:40 PM

View PostFredT, on 12 August 2012 - 11:17 AM, said:

Hello everybidy, after spending 1 day installing yii, I am fithing now with USer Management Module. Every thing looks like ok until I try to create something ( user, role, etc etc ...)

I have got this error when system trying to diplay the creation from and or update form.:

Fields with * are required.

Superuser *
Status *
User belongs to these roles


( ! ) Fatal error: Cannot re-assign auto-global variable _POST in C:\xampp\htdocs\wba\protected\modules\user\components\Relation.php on line 723
Call Stack


Can someone help or have some ideawhere to look for ?

Thanks

Fred


Hello Fred, did you solve the issue? because i have the same problem :-/ but with yiishop module!!!

could be someting about php version?
0

#4 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,688
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 05 September 2012 - 04:52 PM

That is caused by some dirty code like

public function handleAjaxRequest($_POST) {
//                                ^^^^^^ WTF?!
    print_r($_POST);
}


PHP v5.4 finally has begun to complain about this.
God is real unless declared as integer
0

#5 User is offline   Rats 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 12-October 12

Posted 07 November 2012 - 07:12 AM

public function handleAjaxRequest($POST) {
     print_r($POST);
}


Changing this in Relation.php worked for me
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users