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

'Permission Problem: You don't have permission to do that.' [SOLVED]

CodyLogsCodyLogs United Kingdom New
edited April 2015 in Vanilla 2.0 - 2.8

A Vanilla-based forum I started some weeks ago is showing the following error:

Permission Problem

You don't have permission to do that.

However, it is not showing any error codes or messages, neither the permissions it requires. The debug plugin isn't helping either.

  • What it is showing is a page with a link to bookmark the page on the top left, the title of the discussion the test user is trying to open, the error (Permission Problem) and the error message (You don't have permission to do that.).
  • The error message only shows when non-administrator roles attempt to view a discussion.
  • The page also has some sort of a circle with two dots that seems like ports in the background.
  • All my role and category permissions are set to default with no changes but a few SSO and plugins enabled.

Any help would be greatly appreciated.

PS What WYSIWYG editor does this forum use? It doesn't seem at all as unstable or feature-lacking as the Vanilla 2.1.9 build I am currently using. Am I using an older build? Because this build seems vastly superior to my build.

Comments

  • Options
    CodyLogsCodyLogs United Kingdom New

    I would also like to know what sharing tools (Facebook, Twitter, etc) and post rating (Insightful, Awesome, LOL, etc.) plugins are used on this build, if possible.

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @CodyLogs

    Welcome to the community.

    I would suggest that you start by setting the theme to default, and turning off any enabled plugins, and see if the issue persists.

    Use 'social' as a search term in the addons to see social login options for open source.

    The editor used here is proprietary, limited to hosted sites, but will be made available in 2.2.

    The gamification features on here are proprietary, and will not be released.

    See this application:

    http://vanillaforums.org/addon/yaga-application

    for an open source gamification solution.

  • Options
    CodyLogsCodyLogs United Kingdom New

    Thanks for the quick reply, I really appreciate it. Also, which plugin enables us to @whu606 ?

    I just disabled a few plugins and the Debug plugin seems to be finally working now! Any help regarding this log would be greatly appreciated :)

    Debug Trace

    Info Need to re-index theme cache
    Info Need to re-index plugin cache
    Info CommentModel->PageWhere()
    Info Comment.Page.30.8.1: false

    Debug Information

    Canonical Url: https://forumurl/home/permission

    Cache Information
    Cache Revision: 1
    Permissions Revision: 1

    19 queries in 0.217350006104s
    Gdn_Model->GetWhere(array('UserID' => '9'))0.102135sselect *
    from vf_User User
    where UserID = '9';
    PermissionModel->PermissionColumns()0.000845sselect *
    from vf_Permission Permission
    limit 1;
    PermissionModel->CachePermissions('9')0.001162sselect MAX(p.PermissionID) as PermissionID, MAX(p.Garden.Settings.Manage) as Garden.Settings.Manage, MAX(p.Garden.Settings.View) as Garden.Settings.View, MAX(p.Garden.Messages.Manage) as Garden.Messages.Manage, MAX(p.Garden.SignIn.Allow) as Garden.SignIn.Allow, MAX(p.Garden.Applicants.Manage) as Garden.Applicants.Manage, MAX(p.Garden.Users.Add) as Garden.Users.Add, MAX(p.Garden.Users.Edit) as Garden.Users.Edit, MAX(p.Garden.Users.Delete) as Garden.Users.Delete, MAX(p.Garden.Users.Approve) as Garden.Users.Approve, MAX(p.Garden.Activity.Delete) as Garden.Activity.Delete, MAX(p.Garden.Activity.View) as Garden.Activity.View, MAX(p.Garden.Profiles.View) as Garden.Profiles.View, MAX(p.Garden.Profiles.Edit) as Garden.Profiles.Edit, MAX(p.Garden.Moderation.Manage) as Garden.Moderation.Manage, MAX(p.Garden.Curation.Manage) as Garden.Curation.Manage, MAX(p.Garden.PersonalInfo.View) as Garden.PersonalInfo.View, MAX(p.Garden.AdvancedNotifications.Allow) as Garden.AdvancedNotifications.Allow, MAX(p.Vanilla.Discussions.View) as Vanilla.Discussions.View, MAX(p.Vanilla.Discussions.Add) as Vanilla.Discussions.Add, MAX(p.Vanilla.Discussions.Edit) as Vanilla.Discussions.Edit, MAX(p.Vanilla.Discussions.Announce) as Vanilla.Discussions.Announce, MAX(p.Vanilla.Discussions.Sink) as Vanilla.Discussions.Sink, MAX(p.Vanilla.Discussions.Close) as Vanilla.Discussions.Close, MAX(p.Vanilla.Discussions.Delete) as Vanilla.Discussions.Delete, MAX(p.Vanilla.Comments.Add) as Vanilla.Comments.Add, MAX(p.Vanilla.Comments.Edit) as Vanilla.Comments.Edit, MAX(p.Vanilla.Comments.Delete) as Vanilla.Comments.Delete, MAX(p.Garden.Email.View) as Garden.Email.View, MAX(p.Conversations.Moderation.Manage) as Conversations.Moderation.Manage, MAX(p.Conversations.Conversations.Add) as Conversations.Conversations.Add, MAX(p.Vanilla.Approval.Require) as Vanilla.Approval.Require, MAX(p.Vanilla.Comments.Me) as Vanilla.Comments.Me, MAX(p.Plugins.Flagging.Notify) as Plugins.Flagging.Notify, MAX(p.Plugins.Tagging.Add) as Plugins.Tagging.Add, MAX(p.Plugins.Signatures.Edit) as Plugins.Signatures.Edit, MAX(p.Plugins.Resolved.Manage) as Plugins.Resolved.Manage, MAX(p.Garden.Formatting.Manage) as Garden.Formatting.Manage, MAX(p.Plugins.FacebookID.View) as Plugins.FacebookID.View, MAX(p.Plugins.AlwaysEdit.Edit) as Plugins.AlwaysEdit.Edit, MAX(p.Plugins.Debugger.View) as Plugins.Debugger.View, MAX(p.Plugins.Debugger.Manage) as Plugins.Debugger.Manage, p.JunctionTable as JunctionTable, p.JunctionColumn as JunctionColumn, p.JunctionID as JunctionID
    from vf_Permission p
    join vf_UserRole ur on p.RoleID = ur.RoleID
    where ur.UserID = '9'
    group by p.JunctionTable, p.JunctionColumn, p.JunctionID;
    Gdn_Model->GetWhere(array('UserID' => 9))0.000665sselect *
    from vf_User User
    where UserID = '9';
    DiscussionModel->GetID('8')0.001035sselect d.*, w.DateLastViewed as DateLastViewed, w.Dismissed as Dismissed, w.Bookmarked as Bookmarked, w.CountComments as CountCommentWatch, d.DateLastComment as LastDate, d.LastCommentUserID as LastUserID
    from vf_Discussion d
    left join vf_UserDiscussion w on d.DiscussionID = w.DiscussionID and w.UserID = 9
    where d.DiscussionID = '8';
    UserModel->GetIDs(array('0' => 9))0.000595sselect *
    from vf_User User
    where UserID in ('9');
    CategoryModel::Categories(2)0.001154sselect c.*, lc.DateInserted as DateLastComment
    from vf_Category c
    left join vf_Comment lc on c.LastCommentID = lc.CommentID
    order by c.TreeLeft asc;
    CategoryModel::JoinRecentPosts(array(8))0.000811sselect *
    from vf_Discussion Discussion
    where DiscussionID in ('8', '7');
    CategoryModel::JoinRecentPosts(array(8))0.000622sselect *
    from vf_Comment Comment
    where CommentID in ('2');
    CategoryModel::JoinUserData(array(8), 1)0.001047sselect *
    from vf_UserCategory UserCategory
    where UserID = '9';
    CommentModel->Get('8', '30', 0)0.000958sselect c.*
    from vf_Comment c
    join (select CommentID
    from vf_Comment c
    where c.DiscussionID = 8
    order by c.DateInserted asc
    limit 30) c2 on c.CommentID = c2.CommentID;
    DraftModel->Get('9', 0, 1, 8)0.001013sselect d.*, coalesce(d.Name, di.Name) as Name
    from vf_Draft d
    left join vf_Discussion di on d.discussionID = di.DiscussionID
    where d.InsertUserID = '9'
    and d.DiscussionID = '8'
    order by d.DateInserted desc
    limit 1;
    VanillaInThisDiscussionPlugin->DiscussionController_BeforeDiscussionRender_Handler(Object:DiscussionController, array('PagerType' => 'Pager'), 'discussioncontroller_beforediscussionrender_handler')0.000973sselect u.UserID as UserID, u.Name as Name, u.Photo as Photo, max(c.DateInserted) as DateLastActive
    from vf_User u
    join vf_Comment c on u.UserID = c.InsertUserID
    where c.DiscussionID = '8'
    group by u.UserID, u.Name
    order by u.Name asc;
    Gdn_Model->GetWhere(array('UserID' => 0), 'Name')0.000934sselect *
    from vf_UserMeta UserMeta
    where UserID = '0'
    order by Name asc;
    MessageModel::Messages()0.000440sselect *
    from vf_Message Message
    order by Sort asc;
    Gdn_Model->GetWhere(array('UserID' => 9))0.000861sselect *
    from vf_User User
    where UserID = '9';
    PermissionModel->CachePermissions(9)0.001315sselect MAX(p.PermissionID) as PermissionID, MAX(p.Garden.Settings.Manage) as Garden.Settings.Manage, MAX(p.Garden.Settings.View) as Garden.Settings.View, MAX(p.Garden.Messages.Manage) as Garden.Messages.Manage, MAX(p.Garden.SignIn.Allow) as Garden.SignIn.Allow, MAX(p.Garden.Applicants.Manage) as Garden.Applicants.Manage, MAX(p.Garden.Users.Add) as Garden.Users.Add, MAX(p.Garden.Users.Edit) as Garden.Users.Edit, MAX(p.Garden.Users.Delete) as Garden.Users.Delete, MAX(p.Garden.Users.Approve) as Garden.Users.Approve, MAX(p.Garden.Activity.Delete) as Garden.Activity.Delete, MAX(p.Garden.Activity.View) as Garden.Activity.View, MAX(p.Garden.Profiles.View) as Garden.Profiles.View, MAX(p.Garden.Profiles.Edit) as Garden.Profiles.Edit, MAX(p.Garden.Moderation.Manage) as Garden.Moderation.Manage, MAX(p.Garden.Curation.Manage) as Garden.Curation.Manage, MAX(p.Garden.PersonalInfo.View) as Garden.PersonalInfo.View, MAX(p.Garden.AdvancedNotifications.Allow) as Garden.AdvancedNotifications.Allow, MAX(p.Vanilla.Discussions.View) as Vanilla.Discussions.View, MAX(p.Vanilla.Discussions.Add) as Vanilla.Discussions.Add, MAX(p.Vanilla.Discussions.Edit) as Vanilla.Discussions.Edit, MAX(p.Vanilla.Discussions.Announce) as Vanilla.Discussions.Announce, MAX(p.Vanilla.Discussions.Sink) as Vanilla.Discussions.Sink, MAX(p.Vanilla.Discussions.Close) as Vanilla.Discussions.Close, MAX(p.Vanilla.Discussions.Delete) as Vanilla.Discussions.Delete, MAX(p.Vanilla.Comments.Add) as Vanilla.Comments.Add, MAX(p.Vanilla.Comments.Edit) as Vanilla.Comments.Edit, MAX(p.Vanilla.Comments.Delete) as Vanilla.Comments.Delete, MAX(p.Garden.Email.View) as Garden.Email.View, MAX(p.Conversations.Moderation.Manage) as Conversations.Moderation.Manage, MAX(p.Conversations.Conversations.Add) as Conversations.Conversations.Add, MAX(p.Vanilla.Approval.Require) as Vanilla.Approval.Require, MAX(p.Vanilla.Comments.Me) as Vanilla.Comments.Me, MAX(p.Plugins.Flagging.Notify) as Plugins.Flagging.Notify, MAX(p.Plugins.Tagging.Add) as Plugins.Tagging.Add, MAX(p.Plugins.Signatures.Edit) as Plugins.Signatures.Edit, MAX(p.Plugins.Resolved.Manage) as Plugins.Resolved.Manage, MAX(p.Garden.Formatting.Manage) as Garden.Formatting.Manage, MAX(p.Plugins.FacebookID.View) as Plugins.FacebookID.View, MAX(p.Plugins.AlwaysEdit.Edit) as Plugins.AlwaysEdit.Edit, MAX(p.Plugins.Debugger.View) as Plugins.Debugger.View, MAX(p.Plugins.Debugger.Manage) as Plugins.Debugger.Manage, p.JunctionTable as JunctionTable, p.JunctionColumn as JunctionColumn, p.JunctionID as JunctionID
    from vf_Permission p
    join vf_UserRole ur on p.RoleID = ur.RoleID
    where ur.UserID = '9'
    group by p.JunctionTable, p.JunctionColumn, p.JunctionID;
    Gdn_Model->GetWhere(array('UserID' => 9))0.000720sselect *
    from vf_User User
    where UserID = '9';
    Gdn_Model->GetWhere(array('UserID' => 9))0.000598sselect *
    from vf_User User
    where UserID = '9';

    Page completed in 4.95s

    Controller Data
    BodyClass: 'Dashboard Home permission Section-Discussion Section-Category-news'

  • Options
    CodyLogsCodyLogs United Kingdom New

    Issue resolved. NoIndex plugin is outdated.

Sign In or Register to comment.