Legacy Knowledge Base
Published Jul. 2, 2025

Unable to expand accordion panels for OAuth2 due to "Uncaught TypeError: Cannot read property 'querySelectorAll' of null"

Written By

Alfonso Crisci

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

  • While trying to expand the accordion sections of "Scopes" for the OAuth2 Administration tab in Control Panel, customers may face the inability to do so as well as the below error in the browser's console:
    Uncaught TypeError: Cannot read property 'querySelectorAll' of null 
    at Collapse._getParent
    This will happen even when Liferay DXP 7.1 is patched to Fix Pack 13+, therefore having the solution for https://issues.liferay.com/browse/LPS-94202

Environment

  • Liferay DXP 7.1 Fix Pack 13+
  • Liferay Plugin for OAuth 2.0 version 1.0.0

Resolution

  • 1) Go to Control Panel - Configuration - Gogo Shell
    2) Type command lb oauth and click on Execute:

    Is your Liferay Plugin for OAuth 2.0 (API and Impl) minor than 1.1.1?

    If it is, please proceed with the below steps:

    3) Go to Liferay Plugin for OAuth 2.0 page on the Liferay Marketplace
    4) On top-right, click on the "Free" button
    5) Fill in the required info, if you agree on the terms
    6) Click on "See Purchased"
    7) Click on "Past Versions"
    8) Click on the "App" button for Version 1.1.1 if you are running a 7.1 version below Fix Pack 17, otherwise, select Version 1.1.2 
    9) Deploy the .lpkg file to the affected Liferay instance
    10) Wait for successful deployment and the message asking to restart the server
    11) Stop the server
    12) Empty the content of the following folders:
    -- Liferay/osgi/state
    -- Liferay/work
    -- Tomcat/work and Tomcat/temp
    13) Clear the browser's cache
    14) Restart the server
    15) Upon successful startup, the issue should be resolved

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base