AVForums are unfortunately experiencing a major issue with permissions. Randomly throughout the day, many of their staff members are unable to access any page on the forum with the standard "You do not have permission to..."
It's been happening for a few days. There's no specific pattern to it. Nothing specific causes it. It doesn't trigger on a specific page, and nothing specific seems to resolve it, but it eventually does resolve itself automatically after a seemingly random period of time.
I implemented some pretty rudimentary logging into a text file that is triggered to log the contents of the $visitor array when it happens.
Note: If you see anything in there that is usually an array that is serialised, this was done deliberately as part of the logging process.
The interesting points to note here:
The global_permission_cache and permissions keys are blank. Presumably this is the issue.
Any advice on what we can do to debug the issue further?
Of course it may be add-on related, but I can't really think of what add-on would intermittently trigger this for some users. Is there anything in the core software that could trigger a permissions rebuild, clear these two fields and cause this issue?
It's been happening for a few days. There's no specific pattern to it. Nothing specific causes it. It doesn't trigger on a specific page, and nothing specific seems to resolve it, but it eventually does resolve itself automatically after a seemingly random period of time.
I implemented some pretty rudimentary logging into a text file that is triggered to log the contents of the $visitor array when it happens.
Code:
2013-11-01 11:21:13 *** Permission Error: Phil Hinton | Nov 1, 2013 at 11:21 AM ***
2013-11-01 11:21:13 user_id: 6724
2013-11-01 11:21:13 username: Phil Hinton
2013-11-01 11:21:13 email: phil@avforums.com
2013-11-01 11:21:13 gender:
2013-11-01 11:21:13 custom_title: Editor
2013-11-01 11:21:13 language_id: 1
2013-11-01 11:21:13 style_id: 0
2013-11-01 11:21:13 timezone: Europe/London
2013-11-01 11:21:13 visible: 1
2013-11-01 11:21:13 user_group_id: 2
2013-11-01 11:21:13 secondary_group_ids: 4,9,14,18,21,22
2013-11-01 11:21:13 display_style_group_id: 22
2013-11-01 11:21:13 permission_combination_id: 2906
2013-11-01 11:21:13 message_count: 8555
2013-11-01 11:21:13 conversations_unread: 23
2013-11-01 11:21:13 register_date: 979819200
2013-11-01 11:21:13 last_activity: 1383304218
2013-11-01 11:21:13 trophy_points: 166
2013-11-01 11:21:13 alerts_unread: 2
2013-11-01 11:21:13 avatar_date: 1383152368
2013-11-01 11:21:13 avatar_width: 260
2013-11-01 11:21:13 avatar_height: 192
2013-11-01 11:21:13 gravatar:
2013-11-01 11:21:13 user_state: valid
2013-11-01 11:21:13 is_moderator: 1
2013-11-01 11:21:13 is_admin: 0
2013-11-01 11:21:13 is_banned: 0
2013-11-01 11:21:13 like_count: 5
2013-11-01 11:21:13 warning_points: 0
2013-11-01 11:21:13 is_staff: 1
2013-11-01 11:21:13 competition_entries:
2013-11-01 11:21:13 showcase_count: 0
2013-11-01 11:21:13 moderation_mode: 0
2013-11-01 11:21:13 active_checking: 0
2013-11-01 11:21:13 dob_day: 12
2013-11-01 11:21:13 dob_month: 3
2013-11-01 11:21:13 dob_year: 1974
2013-11-01 11:21:13 status:
2013-11-01 11:21:13 status_date: 0
2013-11-01 11:21:13 status_profile_post_id: 0
2013-11-01 11:21:13 signature: [b]AVForums Editor[/b]
[url="http://twitter.com/PhilHinton"]Follow me on Twitter![/url] - [size=1]My personal opinions are not those of AVForums or any other related website.[/size]
2013-11-01 11:21:13 homepage: http://www.avforums.tv
2013-11-01 11:21:13 location: AVForums
2013-11-01 11:21:13 occupation: Editor - AV Forums
2013-11-01 11:21:13 following: 1,4882,5786,5943,6002,6504,7561,9510,10145,11882,12676,14785,28808,31579,34875,36506,39728,55108,61065,83728,87967,155875,168679,202164,407545,413150,463354,463738,502389,503783
2013-11-01 11:21:13 ignored: a:0:{}
2013-11-01 11:21:13 csrf_token: 1C1316FD4147CB5AA784E754030021420B2F283F
2013-11-01 11:21:13 avatar_crop_x: 17
2013-11-01 11:21:13 avatar_crop_y: 0
2013-11-01 11:21:13 about:
2013-11-01 11:21:13 facebook_auth_id: 0
2013-11-01 11:21:13 custom_fields: a:9:{s:14:"AVFheaderStyle";s:0:"";s:3:"aim";s:0:"";s:22:"avForumsForumListStyle";s:8:"expanded";s:8:"facebook";s:0:"";s:5:"gtalk";s:0:"";s:3:"icq";s:0:"";s:5:"skype";s:0:"";s:7:"twitter";s:0:"";s:5:"yahoo";s:0:"";}
2013-11-01 11:21:13 hotspots_created: 0
2013-11-01 11:21:13 show_dob_year: 1
2013-11-01 11:21:13 show_dob_date: 0
2013-11-01 11:21:13 content_show_signature: 1
2013-11-01 11:21:13 receive_admin_email: 1
2013-11-01 11:21:13 email_on_conversation: 1
2013-11-01 11:21:13 is_discouraged: 0
2013-11-01 11:21:13 default_watch_state:
2013-11-01 11:21:13 alert_optout:
2013-11-01 11:21:13 enable_rte: 1
2013-11-01 11:21:13 enable_flash_uploader: 1
2013-11-01 11:21:13 allow_view_profile: everyone
2013-11-01 11:21:13 allow_post_profile: none
2013-11-01 11:21:13 allow_send_personal_conversation: members
2013-11-01 11:21:13 allow_view_identities: everyone
2013-11-01 11:21:13 allow_receive_news_feed: everyone
2013-11-01 11:21:13 positive_rating_count: 5058
2013-11-01 11:21:13 positive_rating_count_incl_likes: 5063
2013-11-01 11:21:13 negative_rating_count:
2013-11-01 11:21:13 neutral_rating_count:
2013-11-01 11:21:13 total_rating_count: 5058
2013-11-01 11:21:13 fb_percent: 100
2013-11-01 11:21:13 fb_positive: 33
2013-11-01 11:21:13 pr_user_id:
2013-11-01 11:21:13 xc_trade_notify_email:
2013-11-01 11:21:13 xc_trade_notify_pm:
2013-11-01 11:21:13 xc_trade_notify_notification:
2013-11-01 11:21:13 xc_trade_is_invisible:
2013-11-01 11:21:13 csrf_token_page: 6724,1383304873,bfdef7458473fa6a81e1d0c463268e9952e85543
2013-11-01 11:21:13 customFields: a:9:{s:14:"AVFheaderStyle";s:0:"";s:3:"aim";s:0:"";s:22:"avForumsForumListStyle";s:8:"expanded";s:8:"facebook";s:0:"";s:5:"gtalk";s:0:"";s:3:"icq";s:0:"";s:5:"skype";s:0:"";s:7:"twitter";s:0:"";s:5:"yahoo";s:0:"";}
2013-11-01 11:21:13 isTrusted: 1
2013-11-01 11:21:13 referer:
2013-11-01 11:21:13 from_search:
2013-11-01 11:21:13 ignoredUsers: a:0:{}
2013-11-01 11:21:13 permissions: a:0:{}
2013-11-01 11:21:13 *** End ***
The interesting points to note here:
The global_permission_cache and permissions keys are blank. Presumably this is the issue.
Any advice on what we can do to debug the issue further?
Of course it may be add-on related, but I can't really think of what add-on would intermittently trigger this for some users. Is there anything in the core software that could trigger a permissions rebuild, clear these two fields and cause this issue?