Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-128755

Social Activities has to be enabled manually on new instance

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.3.4 CE GA5
    • Fix Version/s: None
    • Component/s: Social Activity
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      LIMA | QA Sprint 6

      Description

      When building LR site from scratch we found social activity counters were disabled. However, counting works with same portlets on different site created n 6.x version and regularly migrated up to the current version. By inspecting both database and code we found there are missing entries in SocialActivitySetting table for particular asset type. By adding them manually it started to work.

      These entries can be added via Groovy script in the Server Administration:

      import com.liferay.social.kernel.service.SocialActivitySettingLocalServiceUtil;
      // verify groupId (20122) by SQL command: select groupid from group_ where friendlyurl='/your-site-friendly-url';
      SocialActivitySettingLocalServiceUtil.updateActivitySetting(20122, "com.liferay.message.boards.model.MBMessage", true);
      SocialActivitySettingLocalServiceUtil.updateActivitySetting(20122, "com.server.portal.app.model.MyAsset", true);

        Attachments

          Activity

            People

            Assignee:
            yvonne.han Yvonne Han
            Reporter:
            honyk Jan Tošovský
            Participants of an Issue:
            Recent user:
            Yvonne Han
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 11 weeks, 1 day ago

                Packages

                Version Package