Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

FATAL ERROR IN: AboutMe.ProfileController_EditMe_Create();

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:

Best Answer

  • Options
    Answer ✓

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

Answers

  • Options
    Answer ✓

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

  • Options

    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

  • Options
    mcu_hqmcu_hq yippie ki-yay ✭✭✭

    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.