Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ошибка JS при вынесении предупреждений

Опубликовано:

Добрый день!

 

Уже давно ломаю голову над внезапно возникшей ошибкой Java Script в панели вынесения предупреждений (версия форума 3.3).

Ошибка выглядит так:


TypeError: Cannot read property 'observe' of null
#6 http://www.domain.com/public/min/index.php?ipbv=51cf7eab5719ed27bdbde7ab25045b41&charset=UTF-8&f=public/js/ipb.js,cache/lang_cache/2/ipb.lang.js,public/js/ips.hovercard.js,public/js/ips.quickpm.js,public/js/ips.warn.js,public/js/ips.textEditor.js:921:69
#5 http://www.domain.com/public/min/index.php?ipbv=51cf7eab5719ed27bdbde7ab25045b41&charset=UTF-8&f=public/js/ipb.js,cache/lang_cache/2/ipb.lang.js,public/js/ips.hovercard.js,public/js/ips.quickpm.js,public/js/ips.warn.js,public/js/ips.textEditor.js:921:391 HTMLDocument.()
#4 http://www.domain.com/public/min/index.php?ipbv=51cf7eab5719ed27bdbde7ab25045b41&g=js:543:50 HTMLDocument._createResponder.responder()
#3 http://www.domain.com/public/min/index.php?ipbv=51cf7eab5719ed27bdbde7ab25045b41&g=js:568:9 fire()
#2 http://www.domain.com/public/min/index.php?ipbv=51cf7eab5719ed27bdbde7ab25045b41&g=js:60:166 HTMLDocument._methodized [as fire]()
#1 http://www.domain.com/public/min/index.php?ipbv=51cf7eab5719ed27bdbde7ab25045b41&g=js:572:575 HTMLDocument.fireContentLoadedEvent()&host=www.domain.com

 

Возникает сразу после загрузки страницы и не дает изменить вид наказания внизу. Может кто сталкивался или подскажет, за что дернуть. Самое загадочное, что в локальной версии, которая является копией серверной, ничего этого нет и все работает нормально.

Рекомендованные сообщения

Опубликовано:

Я так понимаю у вас есть backtrace, продебажите какого элемента нету на странице к которому прикреплен указанный observe. Проверьте чтобы были элементы с id:

mq_perm

rpa_perm

suspend_perm

Опубликовано:
  • Автор

М-да... Спасибо за наводку. Посмотрел по элементам: не было suspend_perm. Дернул по цепочке wacko.gif выяснил, что сам накосячил с ограничением прав модераторов. Так обычно и бывает mad.gif

 

 

 

 

 

P.S. а back trace мне дает хромовское расширение (JavaScript Errors Notifier)

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.