Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 11

CurtisOdenericgillettefh111tc74422 +6 guests

FATAL ERROR IN: AboutMe.ProfileController_EditMe_Create();

This discussion is related to the AboutMe addon.

"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

  • Posts: 1 Accepted Answer

    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

  • Posts: 63

    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.