{"action":"created","issue":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/8413","labels_url":"https://api.github.com/repos/Elgg/Elgg/issues/8413/labels{/name}","comments_url":"https://api.github.com/repos/Elgg/Elgg/issues/8413/comments","events_url":"https://api.github.com/repos/Elgg/Elgg/issues/8413/events","html_url":"https://github.com/Elgg/Elgg/issues/8413","id":85224919,"number":8413,"title":"Clicking on site notifications: \"Unexpected error while performing an AJAX call. Maybe the connection to the server is lost.\"","user":{"login":"iionly","id":1773681,"avatar_url":"https://avatars.githubusercontent.com/u/1773681?v=3","gravatar_id":"","url":"https://api.github.com/users/iionly","html_url":"https://github.com/iionly","followers_url":"https://api.github.com/users/iionly/followers","following_url":"https://api.github.com/users/iionly/following{/other_user}","gists_url":"https://api.github.com/users/iionly/gists{/gist_id}","starred_url":"https://api.github.com/users/iionly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iionly/subscriptions","organizations_url":"https://api.github.com/users/iionly/orgs","repos_url":"https://api.github.com/users/iionly/repos","events_url":"https://api.github.com/users/iionly/events{/privacy}","received_events_url":"https://api.github.com/users/iionly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Elgg/Elgg/labels/major","name":"major","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-06-04T18:47:02Z","updated_at":"2015-09-27T18:04:32Z","closed_at":null,"body":"This error is thrown each time you click on a site notification (link)."},"comment":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/comments/143581358","html_url":"https://github.com/Elgg/Elgg/issues/8413#issuecomment-143581358","issue_url":"https://api.github.com/repos/Elgg/Elgg/issues/8413","id":143581358,"user":{"login":"iionly","id":1773681,"avatar_url":"https://avatars.githubusercontent.com/u/1773681?v=3","gravatar_id":"","url":"https://api.github.com/users/iionly","html_url":"https://github.com/iionly","followers_url":"https://api.github.com/users/iionly/followers","following_url":"https://api.github.com/users/iionly/following{/other_user}","gists_url":"https://api.github.com/users/iionly/gists{/gist_id}","starred_url":"https://api.github.com/users/iionly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iionly/subscriptions","organizations_url":"https://api.github.com/users/iionly/orgs","repos_url":"https://api.github.com/users/iionly/repos","events_url":"https://api.github.com/users/iionly/events{/privacy}","received_events_url":"https://api.github.com/users/iionly/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T18:04:32Z","updated_at":"2015-09-27T18:04:32Z","body":"For the error when clicking on a site notification the reason is no error/success handling within the function elgg.site_notifications.auto_delete() in /mod/site_notifications/views/default/site_notifications.js and the delete action of the site_notification plugin respectively.\r\n\r\nAny suggestions / solutions how the correct handling for the site notifications deletion should be implemented? This would fix the problem at least for site notifications.\r\n\r\nBut the same problem might occur in a lot of other cases where no custom success / error handling is implemented. In all these cases there would be a fallback to the generic error handler in /js/lib/ajax.js that was introduced in Elgg 1.10. Is this really as it is supposed to be?\r\n\r\n"}}