Message Boards

Unable to update Page Configuration: Uncaught TypeError: Liferay.Store

Mohd Faizul Sulaiman, modified 2 Years ago.

Unable to update Page Configuration: Uncaught TypeError: Liferay.Store

New Member Post: 1 Join Date: 7/9/21 Recent Posts

Hi,

I'm using Liferay 7.0 GA 5 in development environment. At the beginning, everything was fine until now, I can't change page configuration. The tab SEO, Look and Feel, and Advanced is not working. The save button is working, but the data is not saved.

When I inspect the javascript console, I see the following error.
 

Uncaught TypeError: Liferay.Store is not a function

Here is the exact location:

Liferay.Loader.require('metal-uri/src/Uri', 'metal-dom/src/dom', function(metalUriSrcUri, metalDomSrcDom) {
(function() {var $ = AUI.$;var _ = AUI._;
    var dom = metalDomSrcDom.default;
    var uri = metalUriSrcUri.default;

    var redirectField = dom.toElement('input[name="_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_redirect"]');
    var tabs1Param = '_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_tabs1';

    var updateRedirectField = function(event) {
        var redirectURL = new uri(redirectField.value);

        redirectURL.setParameterValue(tabs1Param, event.id);

        redirectField.value = redirectURL.toString();

        Liferay.Store('_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_layout.form', event.id);
    };

Does anyone experience this? How can I fix this?

Thank you in advanced.