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.

Roletitle and core 2.1?

This discussion is related to the Role Titles addon.
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.

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

  • cnickcnick New
    edited October 2012

    Ok ... and thanks :)

Sign In or Register to comment.