Legacy Knowledge Base
Published Sep. 10, 2025

'The string this-site,this-site does not correspond to a valid search scope preference' console errors

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Even though the hotfix that was generated by including LPS-146763 is installed, the following errors appear.
    ERROR [default task-83][BaseJSPSettingsConfigurationAction:83] Unable to include JSP /search/bar/configuration.jsporg.apache.jasper.JasperException: java.lang.IllegalArgumentException: The string this-site,this-site does not correspond to a valid search scope preference
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:440)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
    ...........
    at com.bluedart.hooks.filter.CrossScriptingFilter.doFilter(CrossScriptingFilter.java:77) at com.liferay.bluedart.security.GlobalSecurityFilter.processFilter(GlobalSecurityFilter.java:89) at com.liferay.bluedart.security.GlobalSecurityFilter.doFilter(GlobalSecurityFilter.java:55)

Environment

  • Liferay DXP 7.2 Fix Pack 17

Resolution

  • Custom plugins are the cause of the errors shown here, as shown in the error traces below.
    • at com.bluedart.hooks.filter.CrossScriptingFilter.doFilter(CrossScriptingFilter.java:77) 
      at com.liferay.bluedart.security.GlobalSecurityFilter.processFilter(GlobalSecurityFilter.java:89)
      at com.liferay.bluedart.security.GlobalSecurityFilter.doFilter(GlobalSecurityFilter.java:55)
  • Workaround : The following are some pointers that could be useful in this type of use cases. 
    The problematic data is stored in the portletPreferences table, users use Liferay APIs to get all preferences for portletIds that match com_liferay_portal_search_web_search_bar_portlet_SearchBarPortlet, they should all have a unique instanceId on the end as well. 
    Once they have the proper portletPreference entries, users should look for a preference "search scope" and remove duplicate values.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base