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.

Roletitle and core 2.1?

cnickcnick New
edited October 2012 in Vanilla 2.0 - 2.8

Installed this plugin with core 2.1 alpha and I get this error when posting a coment

Fatal error: Call to a member function Result() on a non-object in .../public_html/plugins/RoleTitle/class.roletitle.plugin.php on line 75

Tagged:

Comments

  • Open /public_html/plugins/RoleTitle/class.roletitle.plugin.php and find line 75
    See which object is before the Result() method, for example $database->Result();
    That object is interesting for the problem handling in this topic.

    There was an error rendering this rich post.

  • this is the line 75 RoleModel::SetUserRoles($Sender->CommentData->Result(), 'InsertUserID');

  • $Sender->CommentData is either not available in that context (or it's not an object, as the error message says. Try finding out why by examining the code 'around' line 75. Usually 10 lines above, 10 lines under line 75 will do. If for example a function starts at line 71, you don't have to look above that line, but if a function starts at line 68 or 69 then look at that part of the function till line 75 (and a bit below).
    Basically, you will need to find out why $Sender->CommentData is not an object, you'll find that in the code you need to take a look at.

    There was an error rendering this rich post.

  • cnickcnick New
    edited October 2012

    Ok ... and thanks :)

Sign In or Register to comment.