In the bitrix, javascript does not work for an unauthorized user. When you click on a city, a pop-up window should appear on the map, for authorized users, everything works, but for non-authorized users, the window does not open. what is it connected with? I wrapped the script separately and wrote the header separately, but it does not help.

This part of Chrome shows as an error .create("RecallPopup", null,

 function openRecallPopup() { var authPopup = BX.PopupWindowUser.create("RecallPopup", null, { autoHide: true, offsetLeft: 0, offsetTop: 0, overlay : true, draggable: {restrict:true}, closeByEsc: true, closeIcon: { right : "12px", top : "10px"}, content: '<div style="width:400px;height:400px; text-align: center;"><span style="position:absolute;left:50%; top:50%"><img src="/bitrix/templates/eshop_adapt_yellow/img/wait.gif"/></span></div>', events: { onAfterPopupShow: function() { this.setContent(BX("bx_recall_popup_form")); } } }); authPopup.show(); } 
  • Please attach the text of the error - VenZell
  • Uncaught TypeError: Cannot read property 'create' of undefined openRecallPopup @ script.js: 4onclick @ test.php: 491 error text - temaror

1 answer 1

It was necessary at the beginning to connect the core Bitrix team)) Thank you all!

  CJSCore::Init(array("popup"));