Search Results

Knowledge Base 1395
Sort By
Resource Type
Applicable Versions
Deployment Approach
Capability
Feature
How to execute verify.frequency in Liferay DXP 7.3
Issue The property verify.frequency was deprecated in Liferay DXP 7.3. Environment Liferay DXP 7.3. Resolution To check for available verify processes, go to Control Panel > System > Gogo shell and enter the command verify:list. To run a verify process, enter:...
Logs rotation based on size
Issue How to implement the log rotation for Liferay logs based on the size Environment Liferay Portal 6.2 Liferay DXP 7.0 Resolution The logs can be rotated based on the size and it can be achieved through a very slight change in portal-log4j.xml. This file can be found...
In a thread dump there are many blocked threads inside InitFilter class
Issue When I analyze a thread dump there are multiple threads in BLOCKED status with stacktraces such as this: "http-nio-8080-exec-129" Id=325 BLOCKED on com.liferay.portal.init.servlet.filter.internal.InitFilter@4334dad owned by "http-nio-8080-exec-130" Id=326 at...
How to acquire Liferay PaaS logs in a file on a local machine without requiring browser interaction
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue Our team would like to transfer Liferay PaaS logging into a file on our local machines -- however, we would like to automate this if...
How to enable web content and user logs in server console?
Issue In this article, we'll know how to display logs of web content and user creation in the server console. Environment Liferay DXP 7.1 Resolution For Web Content logs: Navigate to Control Panel→ Server Administration→ Logs Level and change the log level of 'com.liferay.journal.api'...
Setting up Microsoft Server AD with Liferay
Issue This article provides you detailed steps to set up and configure Microsoft Server AD to Liferay. Environment Liferay DXP 7.1 Resolution Changing Computer Name: Control Panel → System and Security → System Computer name, domain and workgroup settings → Change Settings Click Change....
Approaching database support
Issue Approaching database support issues in the Liferay. Environment Liferay DXP 7.0 Resolution There are two ways to set up database connections in the portal-ext.properties file. If both JDBC properties and JNDI name are set then JNDI takes preference. If neither is set, then the...
Stopping scheduled tasks in Liferay
Issue I would like to stop the out-of-the-box scheduled tasks in Liferay. Environment Liferay Portal Liferay DXP Resolution Most of the scheduled tasks included in Liferay can be found by searching for .check in the list of the Liferay version's portal properties. Once the scheduled...
How to check Java's TZData (Timezone Data) version
Issue In countries where Daylight Savings Time (Summer Time) is defined each year the timezone data (TZData) can be outdated. This procedure can help you fetch the version of the TZData currently in use in your Java Virtual Machine, which can be later cross-referenced with Oracle's or...
Documents and Media: Disable permission for users to add new folder
Issue A user assigned a 'Site Role' is able to create a new folder in Documents and Media How can I prevent a user creating new folders? Environment DXP 7.1    DXP 7.2    DXP 7.3    Resolution By default, Site Members are given the 'Add Folders' permission within the 'Documents and...
How to set up a clean bundle in your local environment
This article has been machine translated from its original language for your convenience. Please use discretion as this translation may include some inaccuracies. If you encounter issues with the translation, please use the feedback button to let us know. Issue What is a clean bundle?...
Where can I get the database query logs for my Liferay PaaS project?
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue Where can I get database query logs for my Liferay PaaS project? Environment Liferay PaaS Dynatrace Add-On Resolution Ensure to...
JavaScript Loader OSGI config settings don't appear to be applied following an upgrade to 7.2+
Issue When upgrading to DXP 7.3, we moved our previously modified OSGi .config files to the new bundle, but the settings from the JavaScript Loader .config file do not appear to be taking effect, as the default values look to be in use. Environment Pre-upgrade environment: DXP 7.0 or DXP...
Changes to Tomcat classloading order as of Tomcat 8+
Issue In Tomcat 7 and earlier versions, class loading for EXT JAR files were done in alphabetical order. However, with Tomcat 8 and later, class loading has been changed to be decided by the underlying file system. Environment Liferay Portal 6.2 Tomcat 8+ Resolution If the order that EXT...
How do I implement a JNDI database connection on Liferay PaaS
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue Portal Administrators may require a connection to the database through a Java Naming and Directory Interface (following: JNDI)...
Auto Upgrade in DXP 7.3 and Above
Issue Starting from Liferay 7.3, new upgrades for modules won't run automatically on startup by default. Resolution The following options are available to run the upgrades we may include in fix/service packs: Recover the old behavior with the property upgrade.database.auto.run set to...
Groovy Script to truncate the data of UserTrackPath Table
Issue If you want to truncate the data from UserTrackPath Table Environment Liferay DXP 7.2 Resolution Below is the Groovy Script which might help to truncate the data from UserTrackPath table. import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import...
Delay when fetching data from headless-admin-user/v1.0/user-accounts for the first time after server restart
Issue When running a REST API call as below:...
Is it possible to schedule LDAP imports for a specific time of day in Liferay DXP?
Issue In Liferay Portal 6.2, it was possible to create a cron trigger in the liferay-portlet.xml file to accomplish LDAP imports for a specific time of day without creating a customization. These types of scheduled imports were typically utilized to accomplish import processes during...
Is It Possible To Change Deployed War Location?
Issue The default location of the deployed war is ${liferay.home}/osgi/war folder. Is it possible to change the location?   Environment Liferay DXP 7.0+   Resolution You can use the following property to change the directory.  # # Set the directory where the module framework WAR...
Persisting a Secret Environment Variable upon deleting and redeploying a service
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue For business reasons, we have a custom service that we occasionally need to delete and recreate with a new deployment. However, when...
Cache Override
Issue This article describes how to override the cache in 7.0 taking into account two different aspects: EhCache settings and Replication settings. The first one implies creating a new module, while the second is accomplished via portal-ext.properties Environment Liferay DXP 7.0...
Enable BundleStartStopLogger debug log traces
Issue How to enable BundleStartStopLogger debug log traces to see module lifecycle events during startup. Environment Liferay DXP 7.0+ Resolution Stop the server. If it doesn't exist create a folder named log4j inside $LIFERAY_HOME/osgi Inside the recently created folder: Deploy the...
Portlet Management in a clustered Liferay DXP using WebLogic
Issue How can I manage portlets in a clustered Liferay DXP environment using WebLogic?    Environment Liferay DXP 7.x WebLogic   Resolution Since Liferay DXP 7.x, you will have no access to any modules deployed within the OSGI container from the Weblogic console. The traditional way of...
How to manually remove / delete a portlet
Issue How can I completely delete a portlet so that I can redeploy an older version? When I uninstall a portlet from the App Manager, it's only Blacklisted and not uninstalled. How do I remove a custom module in Liferay? Environment DXP 7.0   DXP 7.1   DXP 7.2 Resolution To completely...
The default Liferay DXP site's name cannot be localized/translated
Issue I am using the default Liferay DXP site, renamed it, but I do not see the language button or an option to add the site name in different languages. Environment Portal 6.2 DXP 7.0+ Resolution The default site's name cannot be localized, there isn't an option to do that Workarounds...
How to update our Tomcat server?
Issue We've found a security issue in our current Tomcat server version The issue has been fixed in the latest version of Tomcat Does Liferay provide a fix for the issue? If not, how can we upgrade our application server to that version? Environment Liferay Portal 6.2+ Liferay DXP 7.0+...
Disable Footer Section
Issue How to hide the footer section("Powered by Liferay" section)? Environment Liferay DXP 7.2 Resolution The below steps can be followed to disable the footer section: 1) Go to Site Builder > Pages. 2) Click on the Gear Icon of the Public Pages. 3) In the Look and Feel section, disable...
Adjusting Log Levels to persist after portal restart
Issue Log levels that have been adjusted through the Server Administration are reset after a server restart. I'd like the log levels adjustments to persist after restarts. Environment DXP 7.0+ Resolution Adjust log levels using a portal-log4j-ext.xml file. Please note that this method...
[CKEditor] Paragraph tag is appended to content in blogs by default
Issue We are using CKEditor instead of the regular editor. When putting some content into the HTML field while creating blogs <p> and </p> tags are appended by default. We would like to remove these tags or change them to another one. Environment DXP 7.2 Resolution This is the normal...
Groovy Script for deleting users from the database
Directly modifying the database is not advised because we are unable to provide assistance regarding the damage it might do. The suggested approach in these cases is a groovy script that uses Liferay's API. Environment Liferay DXP 7.0 Liferay DXP 7.1 Liferay DXP 7.2 Resolution Here is a...
Remove portlets programmatically with the removePortletId method
Issue I would like to remove portlets from pages programmatically (e.g. with a script or a background job) with the use of the removePortletId method, but without permission checking.  Environment Liferay DXP 7.0+ Resolution The removePortletId method always invokes the permission...
Is it possible to change how much memory Gradle uses during a Liferay PaaS build in Jenkins?
Issue Since our Jenkins builds are using Gradle Daemons, we would like to increase the memory available to control how much memory Gradle uses, so that it is increased from this default: org.gradle.jvmargs=-Xmx512m Environment Liferay PaaS Resolution This property can be adjusted by...
Avoid user login after every session timeout
Issue On every session expire it is asking for user login again Environment Liferay 7.0 Resolution Login after each session timeout is the default functionality of the Liferay portal. In order to avoid login after every session timeout, need to modify the session.timeout property through...
Is there any way to retrieve the User account's creator
Issue Is there any way or SQL statement to retrieve the User account's creator? Environment Liferay DXP 7.0 Resolution There have two ways to retrieve the User account's creator. The user account's creator can be retrieved by API.  Use the UserLocalService* (doesn't check permissions)...
How to check the number of retained sessions
This article has been machine translated from its original language for your convenience. Please use discretion as this translation may include some inaccuracies. If you encounter issues with the translation, please use the feedback button to let us know. Issue Is it possible to see how...
How to view and construct an adaptive media URL for a document
Issue You might have some trouble in figuring out how the URL for Environment Liferay DXP 7.2+ Resolution Guide through an exact example: The URL pattern you should use looks like this: /o/adaptive-media/image/id/Thumbnail-300x300/url.png?t= Upload an image to Documents and Media Open...
How to update and deploy only a single service with Liferay PaaS
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue Is there any way to deploy updates for only one Liferay PaaS service at a time? Only a minor configuration change is needed, and it...
How can I change the email template of the Password Changed Notification?
Issue When the password is changed, users get a notification email. I would like to change the template of that email. Environment Liferay DXP 7.0+ Resolution Navigate to Control Panel > Configuration > Instance Settings On the "Configurations" tab scroll down to "Email Notifications"...
How to find the default CKeditor version in the Liferay instance
Issue How to find the default CKeditor version in the Liferay instance. Environment Liferay DXP 7.0 Liferay DXP 7.2 Resolution Steps to find the version of the CKeditor in the Liferay instance: In the portal, click on "add the blog entry" which will open the CKEditor in the UI of the...
How can I disable the Document Library File Rank Service in DXP 7.1 and 7.2?
Issue I would like to disable the Document Library File Rank Service In Liferay Portal 6.2 and DXP 7.0, there used to be a property which is now removed: dl.file.rank.enabled=false Environment Liferay DXP 7.1 Liferay DXP 7.2 Resolution As of DXP 7.1, the Document Library File Rank...
Not able to download the logs of more than 10000 lines
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue How to download more logs as the default "Download Logs" option is downloading only 10000 lines of logs? Environment Liferay PaaS...
Read the data of portal-ext.properties from custom portlet
Issue How to read the configured properties in the portal-ext.properties file from the custom module or custom portlet? Environment Liferay DXP 7.1 Resolution Please Note: The following procedures involve customizations that are beyond the scope of Liferay Support.  Please exercise...
Configuring multiple virtual hosts so that both www and non-www can be used
Issue To configure multiple virtual hosts on one site(for example, both www.aaa.com and aaa.com). The Virtual Host can not be configured by using both of the different hosts. Environment Liferay DXP 7.2 Resolution "aaa.com" and "www.aaa.com" are considered as two different domains. Prior...
Deploying Liferay 6.2 SP 15 on Jboss EAP 6.2
Issue This article will outline a basic walkthrough on how-to deploy Liferay 6.2 SP 15 on Jboss EAP 6.2 specific to EAP version.          Environment Liferay 6.2 JBoss EAP 6.2  Resolution Prerequisite Download 6.2EE-SP-15 version of the Liferay Portal .war file Download 6.2EE-SP-15...
I cannot configure the "Look and Feel" of widgets on the Content Page
Issue A new Content Page is created and a widget is added to it. There is no kebab menu on it (3 dots) and there is no Look and Feel Configuration button either. Environment Liferay DXP 7.2 Resolution The menu is no longer visible, create a Widget Page in order to have widgets with the...
The work folder is no longer appearing since DXP 7.2 SP1
Issue After updating to SP1 (fix pack dxp-2) on DXP 7.2 the $[Liferay-home]/work folder is no longer there or no longer generates new content Environment DXP 7.2 SP1 or above. Resolution The $[Liferay-home]/work folder was used for two purposes: Save the precompiled JSP files from each...
What configuration needs to be done to bypass the proxy in Liferay?
Issue What are the proxy configurations to be done at Liferay to bypass the proxy available in the network? Environment Liferay Portal 6.2 Liferay DXP 7.0, 7.1, 7.2, 7.3, 7.4 Resolution The configurations done at Liferay side to configure proxy are listed below, Adding these properties...
Read the data of portlet.properties from custom portlet
Issue How to read the data from the portlet.properties from the custom portlet? Environment Liferay DXP 7.1 Resolution Please Note: The following procedures involve customizations that are beyond the scope of Liferay Support.  Please exercise appropriate discretion in the use of this...
How to Change the Session Timeout Value
Issue How do I modify Liferay's default session-timeout of any logged-in user? Environment DXP 7.2 DXP 7.3 DXP 7.4 Resolution This value is set on the [App_Server_HOME]/webapps/ROOT/WEB-INF/web.xml file. You can manually adjust the property below, replacing X for the timeout value in...
How to automatically log thread dumps when the portal is too slow in Liferay?
Issue How to automatically generate thread dumps when the portal is slow? Environment Liferay Portal 6.2 Liferay DXP 7.0,7.1,7.2,7.3, and  7.4 Resolution Liferay has provided the below two properties which will generate the thread dump in the Liferay logs when the portal is slow. # # The...
How to identify the filename for a System Settings configuration file
Issue This article documents how to determine the filename that should be used for a Systems Settings configuration file (.config) that can be inserted into $LIFERAY.HOME/osgi/configs. Why? The creation of System Settings .config files permits you to transfer configurations between one...
How to generate the crt and key of a certificate on base64 for a custom domain on Liferay PaaS?
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM). Issue As stated on this documentation you'll need to add both the crt and the key on base 64 on the LCP.json file. { "id": "webserver",...
How to disable Scripting Console
Issue Even if Scripting Console is restricted to those with the server administration role, we would like to disable this scripting functionality in our 7.0 portal. Environment DXP 7.0 Resolution Scripting from Scripting Console can be disabled by blacklisting the following modules:...
How to Configure Multiple Site Names with Different HostNames
Issue How Multiple Sites can be configured with Different HostNames in the portal? The below example illustrates the requirement. If there are two sites Site A and Site B then, 1) Site A should be mapped with a.site.com 2) Site B should be mapped with b.site.com  That is when...
CacheFilter Expiration time
Issue The cache filter caches processed web content.  To change the cache expiration time to live ehcache.xml needs to be modified. So where can we set the expiration time. Environment Liferay DXP 7.0 Resolution The ehcahce.xml referred in this property is the /liferay-single-vm.xml and...
Login issue when configuring the SSL on JBoss EAP 7.0
Issue Login issue when configuring the SSL on JBoss EAP 7.0 Environment Portal: Liferay DXP 7.0 Application Server: JBoss EAP 7.0 Operating System: Ubuntu 19.04 Resolution Please Note: The following procedures and unofficial links involve customizations that are beyond the scope of...
How to delete page scope
Please be aware that the page you are viewing has been machine translated from Japanese into English and may contain some translation errors. If you observe any issues with the translation, please contact us. Issue How do you delete page scopes? Environment Liferay DXP 7.0, Liferay DXP...
Why is the server now timing out users after 15 minutes instead of 30?
Issue After updating past de-68 for Liferay DXP 7.0 or past dxp-5 for Liferay DXP 7.1 users are now timing out after 15 minutes. Environment Liferay DXP 7.0 using the Tomcat application server Liferay DXP 7.1 using the Tomcat application server Resolution LPE-16597 modifies the default...
Upgrading from Liferay DXP 7.1 to 7.2
This paper is a high-level overview of the effort involved in moving from Liferay DXP 7.1 to 7.2. It contains an upgrade checklist, the upgrade steps, and what to do after a successful upgrade. The paper is available for download here., content:...

Showing 1,201 to 1,260 of 1,394 entries.