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.
'Permission Problem: You don't have permission to do that.' [SOLVED]
CodyLogs
New
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.
0
Comments
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.
@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.
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
) asPermissionID
, MAX(p.Garden.Settings.Manage
) asGarden.Settings.Manage
, MAX(p.Garden.Settings.View
) asGarden.Settings.View
, MAX(p.Garden.Messages.Manage
) asGarden.Messages.Manage
, MAX(p.Garden.SignIn.Allow
) asGarden.SignIn.Allow
, MAX(p.Garden.Applicants.Manage
) asGarden.Applicants.Manage
, MAX(p.Garden.Users.Add
) asGarden.Users.Add
, MAX(p.Garden.Users.Edit
) asGarden.Users.Edit
, MAX(p.Garden.Users.Delete
) asGarden.Users.Delete
, MAX(p.Garden.Users.Approve
) asGarden.Users.Approve
, MAX(p.Garden.Activity.Delete
) asGarden.Activity.Delete
, MAX(p.Garden.Activity.View
) asGarden.Activity.View
, MAX(p.Garden.Profiles.View
) asGarden.Profiles.View
, MAX(p.Garden.Profiles.Edit
) asGarden.Profiles.Edit
, MAX(p.Garden.Moderation.Manage
) asGarden.Moderation.Manage
, MAX(p.Garden.Curation.Manage
) asGarden.Curation.Manage
, MAX(p.Garden.PersonalInfo.View
) asGarden.PersonalInfo.View
, MAX(p.Garden.AdvancedNotifications.Allow
) asGarden.AdvancedNotifications.Allow
, MAX(p.Vanilla.Discussions.View
) asVanilla.Discussions.View
, MAX(p.Vanilla.Discussions.Add
) asVanilla.Discussions.Add
, MAX(p.Vanilla.Discussions.Edit
) asVanilla.Discussions.Edit
, MAX(p.Vanilla.Discussions.Announce
) asVanilla.Discussions.Announce
, MAX(p.Vanilla.Discussions.Sink
) asVanilla.Discussions.Sink
, MAX(p.Vanilla.Discussions.Close
) asVanilla.Discussions.Close
, MAX(p.Vanilla.Discussions.Delete
) asVanilla.Discussions.Delete
, MAX(p.Vanilla.Comments.Add
) asVanilla.Comments.Add
, MAX(p.Vanilla.Comments.Edit
) asVanilla.Comments.Edit
, MAX(p.Vanilla.Comments.Delete
) asVanilla.Comments.Delete
, MAX(p.Garden.Email.View
) asGarden.Email.View
, MAX(p.Conversations.Moderation.Manage
) asConversations.Moderation.Manage
, MAX(p.Conversations.Conversations.Add
) asConversations.Conversations.Add
, MAX(p.Vanilla.Approval.Require
) asVanilla.Approval.Require
, MAX(p.Vanilla.Comments.Me
) asVanilla.Comments.Me
, MAX(p.Plugins.Flagging.Notify
) asPlugins.Flagging.Notify
, MAX(p.Plugins.Tagging.Add
) asPlugins.Tagging.Add
, MAX(p.Plugins.Signatures.Edit
) asPlugins.Signatures.Edit
, MAX(p.Plugins.Resolved.Manage
) asPlugins.Resolved.Manage
, MAX(p.Garden.Formatting.Manage
) asGarden.Formatting.Manage
, MAX(p.Plugins.FacebookID.View
) asPlugins.FacebookID.View
, MAX(p.Plugins.AlwaysEdit.Edit
) asPlugins.AlwaysEdit.Edit
, MAX(p.Plugins.Debugger.View
) asPlugins.Debugger.View
, MAX(p.Plugins.Debugger.Manage
) asPlugins.Debugger.Manage
, p.JunctionTable asJunctionTable
, p.JunctionColumn asJunctionColumn
, p.JunctionID asJunctionID
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 asDismissed
, w.Bookmarked asBookmarked
, w.CountComments asCountCommentWatch
, d.DateLastComment asLastDate
, d.LastCommentUserID asLastUserID
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 asName
, u.Photo asPhoto
, max(c.DateInserted) asDateLastActive
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
) asPermissionID
, MAX(p.Garden.Settings.Manage
) asGarden.Settings.Manage
, MAX(p.Garden.Settings.View
) asGarden.Settings.View
, MAX(p.Garden.Messages.Manage
) asGarden.Messages.Manage
, MAX(p.Garden.SignIn.Allow
) asGarden.SignIn.Allow
, MAX(p.Garden.Applicants.Manage
) asGarden.Applicants.Manage
, MAX(p.Garden.Users.Add
) asGarden.Users.Add
, MAX(p.Garden.Users.Edit
) asGarden.Users.Edit
, MAX(p.Garden.Users.Delete
) asGarden.Users.Delete
, MAX(p.Garden.Users.Approve
) asGarden.Users.Approve
, MAX(p.Garden.Activity.Delete
) asGarden.Activity.Delete
, MAX(p.Garden.Activity.View
) asGarden.Activity.View
, MAX(p.Garden.Profiles.View
) asGarden.Profiles.View
, MAX(p.Garden.Profiles.Edit
) asGarden.Profiles.Edit
, MAX(p.Garden.Moderation.Manage
) asGarden.Moderation.Manage
, MAX(p.Garden.Curation.Manage
) asGarden.Curation.Manage
, MAX(p.Garden.PersonalInfo.View
) asGarden.PersonalInfo.View
, MAX(p.Garden.AdvancedNotifications.Allow
) asGarden.AdvancedNotifications.Allow
, MAX(p.Vanilla.Discussions.View
) asVanilla.Discussions.View
, MAX(p.Vanilla.Discussions.Add
) asVanilla.Discussions.Add
, MAX(p.Vanilla.Discussions.Edit
) asVanilla.Discussions.Edit
, MAX(p.Vanilla.Discussions.Announce
) asVanilla.Discussions.Announce
, MAX(p.Vanilla.Discussions.Sink
) asVanilla.Discussions.Sink
, MAX(p.Vanilla.Discussions.Close
) asVanilla.Discussions.Close
, MAX(p.Vanilla.Discussions.Delete
) asVanilla.Discussions.Delete
, MAX(p.Vanilla.Comments.Add
) asVanilla.Comments.Add
, MAX(p.Vanilla.Comments.Edit
) asVanilla.Comments.Edit
, MAX(p.Vanilla.Comments.Delete
) asVanilla.Comments.Delete
, MAX(p.Garden.Email.View
) asGarden.Email.View
, MAX(p.Conversations.Moderation.Manage
) asConversations.Moderation.Manage
, MAX(p.Conversations.Conversations.Add
) asConversations.Conversations.Add
, MAX(p.Vanilla.Approval.Require
) asVanilla.Approval.Require
, MAX(p.Vanilla.Comments.Me
) asVanilla.Comments.Me
, MAX(p.Plugins.Flagging.Notify
) asPlugins.Flagging.Notify
, MAX(p.Plugins.Tagging.Add
) asPlugins.Tagging.Add
, MAX(p.Plugins.Signatures.Edit
) asPlugins.Signatures.Edit
, MAX(p.Plugins.Resolved.Manage
) asPlugins.Resolved.Manage
, MAX(p.Garden.Formatting.Manage
) asGarden.Formatting.Manage
, MAX(p.Plugins.FacebookID.View
) asPlugins.FacebookID.View
, MAX(p.Plugins.AlwaysEdit.Edit
) asPlugins.AlwaysEdit.Edit
, MAX(p.Plugins.Debugger.View
) asPlugins.Debugger.View
, MAX(p.Plugins.Debugger.Manage
) asPlugins.Debugger.Manage
, p.JunctionTable asJunctionTable
, p.JunctionColumn asJunctionColumn
, p.JunctionID asJunctionID
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'
Issue resolved. NoIndex plugin is outdated.