{"action":"closed","issue":{"url":"https://api.github.com/repos/mybb/mybb/issues/1956","labels_url":"https://api.github.com/repos/mybb/mybb/issues/1956/labels{/name}","comments_url":"https://api.github.com/repos/mybb/mybb/issues/1956/comments","events_url":"https://api.github.com/repos/mybb/mybb/issues/1956/events","html_url":"https://github.com/mybb/mybb/issues/1956","id":67942826,"number":1956,"title":"Division by zero FPD","user":{"login":"Destroy666x","id":3606072,"avatar_url":"https://avatars.githubusercontent.com/u/3606072?v=3","gravatar_id":"","url":"https://api.github.com/users/Destroy666x","html_url":"https://github.com/Destroy666x","followers_url":"https://api.github.com/users/Destroy666x/followers","following_url":"https://api.github.com/users/Destroy666x/following{/other_user}","gists_url":"https://api.github.com/users/Destroy666x/gists{/gist_id}","starred_url":"https://api.github.com/users/Destroy666x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Destroy666x/subscriptions","organizations_url":"https://api.github.com/users/Destroy666x/orgs","repos_url":"https://api.github.com/users/Destroy666x/repos","events_url":"https://api.github.com/users/Destroy666x/events{/privacy}","received_events_url":"https://api.github.com/users/Destroy666x/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mybb/mybb/labels/1.8","name":"1.8","color":"5319e7"},{"url":"https://api.github.com/repos/mybb/mybb/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mybb/mybb/labels/s:fixed","name":"s:fixed","color":"00b200"}],"state":"closed","locked":false,"assignee":{"login":"Devilshakerz","id":8020837,"avatar_url":"https://avatars.githubusercontent.com/u/8020837?v=3","gravatar_id":"","url":"https://api.github.com/users/Devilshakerz","html_url":"https://github.com/Devilshakerz","followers_url":"https://api.github.com/users/Devilshakerz/followers","following_url":"https://api.github.com/users/Devilshakerz/following{/other_user}","gists_url":"https://api.github.com/users/Devilshakerz/gists{/gist_id}","starred_url":"https://api.github.com/users/Devilshakerz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Devilshakerz/subscriptions","organizations_url":"https://api.github.com/users/Devilshakerz/orgs","repos_url":"https://api.github.com/users/Devilshakerz/repos","events_url":"https://api.github.com/users/Devilshakerz/events{/privacy}","received_events_url":"https://api.github.com/users/Devilshakerz/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mybb/mybb/milestones/9","html_url":"https://github.com/mybb/mybb/milestones/1.8.5","labels_url":"https://api.github.com/repos/mybb/mybb/milestones/9/labels","id":871061,"number":9,"title":"1.8.5","description":"","creator":{"login":"PirataNervo","id":1008807,"avatar_url":"https://avatars.githubusercontent.com/u/1008807?v=3","gravatar_id":"","url":"https://api.github.com/users/PirataNervo","html_url":"https://github.com/PirataNervo","followers_url":"https://api.github.com/users/PirataNervo/followers","following_url":"https://api.github.com/users/PirataNervo/following{/other_user}","gists_url":"https://api.github.com/users/PirataNervo/gists{/gist_id}","starred_url":"https://api.github.com/users/PirataNervo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PirataNervo/subscriptions","organizations_url":"https://api.github.com/users/PirataNervo/orgs","repos_url":"https://api.github.com/users/PirataNervo/repos","events_url":"https://api.github.com/users/PirataNervo/events{/privacy}","received_events_url":"https://api.github.com/users/PirataNervo/received_events","type":"User","site_admin":false},"open_issues":92,"closed_issues":50,"state":"open","created_at":"2014-11-18T11:54:46Z","updated_at":"2015-04-25T13:13:28Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-04-12T18:41:05Z","updated_at":"2015-04-25T13:13:28Z","closed_at":"2015-04-25T13:13:28Z","body":"All found issues originate from the maxwarningpoints setting being equal to zero and emit a PHP warning Division by zero.\r\n\r\nhttps://github.com/mybb/mybb/blob/feature/admin/modules/user/users.php#L1056\r\nhttps://github.com/mybb/mybb/blob/feature/admin/modules/user/users.php#L3570\r\n\r\nhttps://github.com/mybb/mybb/blob/feature/inc/datahandlers/warnings.php#L373\r\nhttps://github.com/mybb/mybb/blob/feature/inc/datahandlers/warnings.php#L374\r\nhttps://github.com/mybb/mybb/blob/feature/inc/datahandlers/warnings.php#L561\r\nhttps://github.com/mybb/mybb/blob/feature/inc/datahandlers/warnings.php#L562\r\n\r\nhttps://github.com/mybb/mybb/blob/feature/inc/functions_post.php#L377\r\n\r\nhttps://github.com/mybb/mybb/blob/feature/member.php#L2430\r\n\r\nhttps://github.com/mybb/mybb/blob/feature/usercp.php#L3694\r\n\r\nhttps://github.com/mybb/mybb/blob/feature/warnings.php#L344\r\nhttps://github.com/mybb/mybb/blob/feature/warnings.php#L411\r\nhttps://github.com/mybb/mybb/blob/feature/warnings.php#L741\r\n\r\nrepsperpage setting-related:\r\nhttps://github.com/mybb/mybb/blob/feature/reputation.php#L835\r\nhttps://github.com/mybb/mybb/blob/feature/reputation.php#L854 (zero as an argument)\r\n\r\nmembersperpage setting-related:\r\nhttps://github.com/mybb/mybb/blob/feature/managegroup.php#L355 (zero as an argument)\r\n\r\nOriginal thread: [Division by zero FPD](http://community.mybb.com/thread-169573.html)"}}