JQuery does not work when enabled in Update 26

Issue

  • JQuery does not work when enabled if Liferay DXP 7.4 Update 26 is installed.
  • It was working at least up til Update 23
  • When JQuery is enabled in the Control Panel, if web content is added that contains the following script, the content does not display.
     <div id='temp'></div>
        <script type="text/javascript"> jQuery(document).ready(function(){
         jQuery("#temp").html("Hello World from jQuery");
        }); </script>
  • The browser console can contain get a 404 error for the following URL:
    http://localhost:8080/&&&&&&&&&/combo?browserId=firefox&minifierType=js&languageId=en_US&t=1653583188518&/o/frontend-js-jquery-web/jquery/ajax.js?&mac=oBTgsLtnTiplpsR5SuV2x46X+VQ=&browserId=firefox&languageId=en_US&minifierType=js&/o/frontend-js-jquery-web/jquery/fm.js?&mac=dvlJa6TJ4wrY9YMQajXrUSWbBfM=&browserId=firefox&languageId=en_US&minifierType=js&/o/frontend-js-jquery-web/jquery/init.js?&mac=vYtaQGLEwayI2KMp3ovbcTQtZVU=&browserId=firefox&languageId=en_US&minifierType=js&/o/frontend-js-jquery-web/jquery/bootstrap.bundle.min.js?&mac=JlpzPLf7xIH9JRCmWaha1VyTyJU=&browserId=firefox&languageId=en_US&minifierType=js&/o/frontend-js-jquery-web/jquery/form.js?&mac=lV8M+MLs2qnl/93OFjT3c7z6810=&browserId=firefox&languageId=en_US&minifierType=js&/o/frontend-js-jquery-web/jquery/popper.min.js?&mac=bbzoiu4VtC8pCD33oHUTzztIa6A=&browserId=firefox&languageId=en_US&minifierType=js&/o/frontend-js-jquery-web/jquery/side_navigation.js?&mac=bRmUf1w47lefBMr069JXYVGOZ/E=&browserId=firefox&languageId=en_US&minifierType=js&/o/frontend-js-jquery-web/jquery/collapsible_search.js?&mac=lEjSNVkre7Qm2ssh4B7qNO3z9do=&browserId=firefox&languageId=en_US&minifierType=js&/o/frontend-js-jquery-web/jquery/jquery.min.js?&mac=yOHIs4bcW3qRhMdjyI0Zo0brM0I=&browserId=firefox&languageId=en_US&minifierType=js

Environment

  • Liferay DXP 7.2 update 26

Resolution

  • This issue is resolved with a fix found in LPS-154782. This fix has not been released in an update yet, but will be released in a future update.
  • In the meanwhile, as a workaround, the JS minifier can be disabled in properties to resolve this issue.

Additional Information

这篇文章有帮助吗?
3 人中有 1 人觉得有帮助