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

    • Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • 7.3.4 CE GA5
    • None
    • Social Activity
    • None
    • 3
    • 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

            yvonne.han Yvonne Han
            honyk Jan Tošovský
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 3 weeks, 1 day ago

              Packages

                Version Package