{"action":"created","issue":{"url":"https://api.github.com/repos/kulttuuri/DiscordNotifications/issues/18","repository_url":"https://api.github.com/repos/kulttuuri/DiscordNotifications","labels_url":"https://api.github.com/repos/kulttuuri/DiscordNotifications/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/kulttuuri/DiscordNotifications/issues/18/comments","events_url":"https://api.github.com/repos/kulttuuri/DiscordNotifications/issues/18/events","html_url":"https://github.com/kulttuuri/DiscordNotifications/issues/18","id":354173704,"node_id":"MDU6SXNzdWUzNTQxNzM3MDQ=","number":18,"title":"Protect page error","user":{"login":"BlackDuke07","id":7662424,"node_id":"MDQ6VXNlcjc2NjI0MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7662424?v=4","gravatar_id":"","url":"https://api.github.com/users/BlackDuke07","html_url":"https://github.com/BlackDuke07","followers_url":"https://api.github.com/users/BlackDuke07/followers","following_url":"https://api.github.com/users/BlackDuke07/following{/other_user}","gists_url":"https://api.github.com/users/BlackDuke07/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackDuke07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackDuke07/subscriptions","organizations_url":"https://api.github.com/users/BlackDuke07/orgs","repos_url":"https://api.github.com/users/BlackDuke07/repos","events_url":"https://api.github.com/users/BlackDuke07/events{/privacy}","received_events_url":"https://api.github.com/users/BlackDuke07/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-27T04:13:52Z","updated_at":"2018-12-17T10:11:35Z","closed_at":"2018-12-17T10:11:35Z","author_association":"NONE","body":"When I try to protect a page with DiscordNotifications installed I get the following error:\r\n\r\n[W4N5pjbmAHgAjUUkWSvWIAAAABA] /index.php?title=Main_Page&action=protect ArgumentCountError from line 212 of /home/retror/public_html/extensions/DiscordNotifications/DiscordNotificationsCore.php: Too few arguments to function DiscordNotifications::discord_article_protected(), 4 passed in /home/retror/public_html/includes/Hooks.php on line 177 and exactly 5 expected\r\n\r\nBacktrace:\r\n\r\n#0 /home/retror/public_html/includes/Hooks.php(177): DiscordNotifications::discord_article_protected(WikiPage, User, array, string)\r\n#1 /home/retror/public_html/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)\r\n#2 /home/retror/public_html/includes/page/WikiPage.php(2521): Hooks::run(string, array)\r\n#3 /home/retror/public_html/includes/page/Article.php(2593): WikiPage->doUpdateRestrictions(array, array, boolean, string, User)\r\n#4 /home/retror/public_html/includes/ProtectionForm.php(312): Article->doUpdateRestrictions(array, array, boolean, string, User)\r\n#5 /home/retror/public_html/includes/ProtectionForm.php(187): ProtectionForm->save()\r\n#6 /home/retror/public_html/includes/page/Article.php(1544): ProtectionForm->execute()\r\n#7 /home/retror/public_html/includes/actions/ProtectAction.php(52): Article->protect()\r\n#8 /home/retror/public_html/includes/MediaWiki.php(500): ProtectAction->show()\r\n#9 /home/retror/public_html/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)\r\n#10 /home/retror/public_html/includes/MediaWiki.php(861): MediaWiki->performRequest()\r\n#11 /home/retror/public_html/includes/MediaWiki.php(524): MediaWiki->main()\r\n#12 /home/retror/public_html/index.php(42): MediaWiki->run()\r\n#13 {main}"},"comment":{"url":"https://api.github.com/repos/kulttuuri/DiscordNotifications/issues/comments/447790991","html_url":"https://github.com/kulttuuri/DiscordNotifications/issues/18#issuecomment-447790991","issue_url":"https://api.github.com/repos/kulttuuri/DiscordNotifications/issues/18","id":447790991,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Nzc5MDk5MQ==","user":{"login":"kulttuuri","id":3810422,"node_id":"MDQ6VXNlcjM4MTA0MjI=","avatar_url":"https://avatars1.githubusercontent.com/u/3810422?v=4","gravatar_id":"","url":"https://api.github.com/users/kulttuuri","html_url":"https://github.com/kulttuuri","followers_url":"https://api.github.com/users/kulttuuri/followers","following_url":"https://api.github.com/users/kulttuuri/following{/other_user}","gists_url":"https://api.github.com/users/kulttuuri/gists{/gist_id}","starred_url":"https://api.github.com/users/kulttuuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kulttuuri/subscriptions","organizations_url":"https://api.github.com/users/kulttuuri/orgs","repos_url":"https://api.github.com/users/kulttuuri/repos","events_url":"https://api.github.com/users/kulttuuri/events{/privacy}","received_events_url":"https://api.github.com/users/kulttuuri/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T10:11:35Z","updated_at":"2018-12-17T10:11:35Z","author_association":"OWNER","body":"Closing as no reply."}}
{"actor":{"display_login":"kulttuuri"}}