{"id":409,"date":"2016-02-15T14:20:21","date_gmt":"2016-02-15T13:20:21","guid":{"rendered":"http:\/\/www.ume.li\/blog\/?p=409"},"modified":"2016-02-15T14:23:54","modified_gmt":"2016-02-15T13:23:54","slug":"connections-5-mentions-kills-the-activity-streams","status":"publish","type":"post","link":"https:\/\/www.ume.li\/blog\/2016\/02\/15\/connections-5-mentions-kills-the-activity-streams\/","title":{"rendered":"Connections 5 &#8211; @Mentions kills the Activity Streams"},"content":{"rendered":"<p>Problem: The activity stream for @mentions keeps loading on a users homepage. \u00a0For other users, the activity stream loads as usual.<\/p>\n<p>Steps for troubleshooting:<\/p>\n<p>Login as the user in Firefox and opening the WebDeveloper you see the following messages in the Console.<a href=\"http:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1.png\" rel=\"attachment wp-att-411\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-411\" src=\"http:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1.png\" alt=\"Auswahl_004\" width=\"1362\" height=\"180\" srcset=\"https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1.png 1362w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1-300x40.png 300w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1-768x101.png 768w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1-1024x135.png 1024w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1-100x13.png 100w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1-150x20.png 150w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1-200x26.png 200w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1-450x59.png 450w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1-600x79.png 600w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_004-1-900x119.png 900w\" sizes=\"auto, (max-width: 1362px) 100vw, 1362px\" \/><\/a><\/p>\n<p>Second error message is Error: Invalid template<\/p>\n<p>The JSON gets loaded by the URL\u00a0https:\/\/[FQDN]\/connections\/opensocial\/rest\/activitystreams\/@me\/@all\/@all .<\/p>\n<p>Copy the JSON into a decent viewer for example\u00a0<a href=\"http:\/\/www.jsoneditoronline.org\/\" target=\"_blank\">JsonEditor Online<\/a>\u00a0and search for the ID in my case it was 99e81c4d-<a href=\"http:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_005.png\" rel=\"attachment wp-att-412\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-412\" src=\"http:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_005.png\" alt=\"Auswahl_005\" width=\"847\" height=\"269\" srcset=\"https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_005.png 847w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_005-300x95.png 300w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_005-768x244.png 768w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_005-100x32.png 100w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_005-150x48.png 150w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_005-200x64.png 200w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_005-450x143.png 450w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2016\/02\/Auswahl_005-600x191.png 600w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/a><\/p>\n<p>If I try to open the URL in a browser I got an error: Page not found. Testing some other URLs from the JSON. They all open other JSON streams.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Resolving the Issue:<\/p>\n<p>open your SQL Client of choice. for example DB2 Data Studio. Connect to the homepage db.<\/p>\n<p>Remove the content under @Mentions<br \/>\nDELETE FROM HOMEPAGE.NR_MENTIONS_READERS where STORY_ID=&#8217;99e81c4d-11&#8230;.&#8217;<\/p>\n<p>Remove the Content under My Activities<br \/>\nDELETE FROM HOMEPAGE.NR_RESPONSES_READERS where STORY_ID=&#8217;99e81c4d&#8230;&#8230;&#8217;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: The activity stream for @mentions keeps loading on a users homepage. \u00a0For other users, the activity stream loads as<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-409","post","type-post","status-publish","format-standard","hentry","category-connections"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/comments?post=409"}],"version-history":[{"count":3,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/409\/revisions"}],"predecessor-version":[{"id":415,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/409\/revisions\/415"}],"wp:attachment":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/media?parent=409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/categories?post=409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/tags?post=409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}