FATAL ERROR IN: AboutMe.ProfileController_EditMe_Create();
"Undefined property: ProfileController::$UserID"
LOCATION: /var/www/plugins/AboutMe/default.php
76: public function ProfileController_EditMe_Create(&$Sender, $params) {
77: $this->UserID = ArrayValue(0, $Sender->RequestArgs, '');
78: $this->UserName = ArrayValue(1, $Sender->RequestArgs, '');79: $Sender->GetUserInfo($Sender->UserID, $Sender->UserName);
80: // change this to use a different css stylesheet i.e. from am.default_theme.css to am.realgamerstheme.css
81: $Sender->AddCssFile('/plugins/AboutMe/design/am.default_theme.css');
82:
83: if (!is_numeric($this->UserID)) {
It works fine on my localhost, but not on the live site. I then tried using the non-modified version downloaded straight from the site and it gets the same error.
Best Answer
-
I had the same issue but it disappeared when I turned off debug in my config file.
0
Answers
I had the same issue but it disappeared when I turned off debug in my config file.
That is stupid..... would of never thought of it, anyway thanks
This is a somewhat old topic, but just ran into this.
Change this line:
$Sender->GetUserInfo($Sender->UserID, $Sender->UserName);
to
$Sender->GetUserInfo($this->UserID, $this->UserName);