Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12056

Error on contentViewController when opening a page

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0
    • 4.8.0
    • None
    • None
    • 4.8.0 RC1

      When opening page "Publier une annonce" on intranet CMS, following error is displayed : 
       

         TypeError: Cannot read properties of null (reading 'org.ametys.web.default.Content.article')
      TypeError: Cannot read properties of null (reading 'org.ametys.web.default.Content.article')
      at constructor.<anonymous> (https://demo.ametys.org/nightly-intranet-cms/plugins/web/resources/js/Ametys/plugins/web/zone/controller/ContentViewController.js:92:42)
      at constructor.each (https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:47281:20)
      at constructor.<anonymous> (https://demo.ametys.org/nightly-intranet-cms/plugins/web/resources/js/Ametys/plugins/web/zone/controller/ContentViewController.js:86:27)
      at constructor.each (https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:47281:20)
      at constructor._updateStateCb (https://demo.ametys.org/nightly-intranet-cms/plugins/web/resources/js/Ametys/plugins/web/zone/controller/ContentViewController.js:83:30)
      at constructor.<anonymous> (https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:675:33)
      at Array.forEach (<anonymous>)
      at Ext.Array.ExtArray.forEach (https://demo.ametys.org/nightly-intranet-cms/plugins/extjs7/resources/ext-all.js:3346:23)
      at constructor._callProcessed (https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:672:23)
      at constructor.<anonymous> (https://demo.ametys.org/nightly-intranet-cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:1324:54)           Ok     << Détails  

          [CMS-12056] Error on contentViewController when opening a page

          After moving a zone item (a zone item with a search service in intranet skin, moved from secondary to default zone) I have a similar JS error

          TypeError: Cannot read properties of null (reading 'org.ametys.web.default.Content.article')
          TypeError: Cannot read properties of null (reading 'org.ametys.web.default.Content.article')
          at constructor.<anonymous> (http://localhost:8080/cms/plugins/web/resources/js/Ametys/plugins/web/zone/controller/ContentViewController.js:92:37)
          at constructor.each (http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:47281:20)
          at constructor.<anonymous> (http://localhost:8080/cms/plugins/web/resources/js/Ametys/plugins/web/zone/controller/ContentViewController.js:86:27)
          at constructor.each (http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:47281:20)
          at constructor._updateStateCb (http://localhost:8080/cms/plugins/web/resources/js/Ametys/plugins/web/zone/controller/ContentViewController.js:83:30)
          at constructor.<anonymous> (http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:675:33)
          at Array.forEach (<anonymous>)
          

          Laurence Aumeunier added a comment - After moving a zone item (a zone item with a search service in intranet skin, moved from secondary to default zone) I have a similar JS error TypeError: Cannot read properties of null (reading 'org.ametys.web.default.Content.article') TypeError: Cannot read properties of null (reading 'org.ametys.web.default.Content.article') at constructor.<anonymous> (http://localhost:8080/cms/plugins/web/resources/js/Ametys/plugins/web/zone/controller/ContentViewController.js:92:37) at constructor.each (http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:47281:20) at constructor.<anonymous> (http://localhost:8080/cms/plugins/web/resources/js/Ametys/plugins/web/zone/controller/ContentViewController.js:86:27) at constructor.each (http://localhost:8080/cms/plugins/extjs7/resources/ext-all.js:47281:20) at constructor._updateStateCb (http://localhost:8080/cms/plugins/web/resources/js/Ametys/plugins/web/zone/controller/ContentViewController.js:83:30) at constructor.<anonymous> (http://localhost:8080/cms/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:675:33) at Array.forEach (<anonymous>)

            raphael Raphaël Franchet
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: