Topic on Extension talk:Vector

Core javascript features not working after upgrading from 1.16 to 1.20.2

5
85.112.162.30 (talkcontribs)

Hello, I just upgraded a site from 1.16 to 1.20.2. The collapsible nav does not work on the front (main) page, but on all other pages. I get the following errors in Chrome:

Exception thrown by jquery.mw-jump: Object #<Object> has no method 'delegate' load.php:151
TypeError
 load.php:151
Exception thrown by ext.vector.collapsibleNav: Cannot call method 'test' of undefined load.php:151
TypeError
 load.php:151
Exception thrown by mediawiki.searchSuggest: Object #<Object> has no method 'first' load.php:151
TypeError
Krinkle (talkcontribs)

Looking at the errors I'd say it isn't just collapsenav, I suspect the search suggestions when typing in the search bar and the table of contents "Show" and "Hide" don't work either.

Based on the errors I'm pretty sure the problem lies in the fact that there is something on your wiki that is unregistering jQuery plugins, thus causing code that is loaded by MediaWiki to be dereferenced. Specifically:

  • module jquery.delegate
  • module jquery.client method test
  • jquery method jquery.fn.first (introduced in jQuery 1.4)

See also jQuery, it is important that you do not manually load some (ancient version of) jQuery. MediaWiki ships with jQuery by default. Loading your own causes both incompatibilities (since core uses a a much newer version) and it causes plugins to be dereferenced at run time.

Noti1234 (talkcontribs)

I had similar problem with BugzillaReports extension. I disabled the jquery loaded by this extension and the problems went away.

137.69.117.62 (talkcontribs)

I've hit the same problem with BugzillaReports, can you explain how you disabled the jquery for the extension?

Immewnity (talkcontribs)

I had a similar issue - try disabling CollapsibleTabs.

Reply to "Core javascript features not working after upgrading from 1.16 to 1.20.2"