Jump to content

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


Alien2001
 Share

Recommended Posts

Добрый день!

 

Уже давно ломаю голову над внезапно возникшей ошибкой 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

 

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

Link to comment
Share on other sites

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

mq_perm

rpa_perm

suspend_perm

  • Upvote 1
Link to comment
Share on other sites

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

 

 

 

 

 

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...