Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

FATAL ERROR IN: AboutMe.ProfileController_EditMe_Create();

This discussion is related to the AboutMe addon.
clethrillclethrill ✭✭
edited December 2011 in Vanilla 2.0 - 2.8

"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.

Tagged:

Comments

  • I had the same issue but it disappeared when I turned off debug in my config file.

  • hschin said:
    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

  • mcu_hqmcu_hq yippie ki-yay Arizona, USA ✭✭✭

    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);

Sign In or Register to comment.