Last modified: 2012-11-10 01:46:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43750, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41750 - Uncaught TypeError: Cannot call method 'initialize' of undefined
Uncaught TypeError: Cannot call method 'initialize' of undefined
Status: RESOLVED DUPLICATE of bug 41937
Product: MediaWiki extensions
Classification: Unclassified
CentralNotice (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-03 20:52 UTC by Helder
Modified: 2012-11-10 01:46 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2012-11-03 20:52:52 UTC
I got
Uncaught TypeError: Cannot call method 'initialize' of undefined
on
https://www.wikidata.org/wiki/Q3092
from this script:

<div id="siteNotice"><!-- CentralNotice --><script>mw.centralNotice.initialize();</script></div>
Comment 1 Peter Gehres 2012-11-03 21:23:08 UTC
CentralNotice is working just fine for me on wikidata.  I wonder if the ResourceLoader dependencies are not set correctly and sometimes the initialization happens too early.

The bigger question, though, is why is CentralNotice being shown on WikiData at the moment.  It hasn't been added to meta, so we have no way of targeting it.  There must be a misconfiguration somewhere.
Comment 2 Matt Walker 2012-11-03 21:34:18 UTC
To the best of my knowledge the only way this error could have occurred is if ResourceLoader failed to load the CN controller script. mw.centralNotice.initialize() has been in existence since we moved to RL...

Do we have any further details about what browser this was experienced under? That might play a part...

For the record, CN seems to be working fine for me on Opera 12
Comment 3 Helder 2012-11-03 22:30:39 UTC
(In reply to comment #2)
> Do we have any further details about what browser this was experienced under?
> That might play a part...

Google Chrome 22.0.1229.94, on a slow connection. So far it only happened once.
Comment 4 Andre Klapper 2012-11-04 23:57:34 UTC
(In reply to comment #1)
> The bigger question, though, is why is CentralNotice being shown on WikiData at
> the moment.  It hasn't been added to meta, so we have no way of targeting it. 
> There must be a misconfiguration somewhere.

CC'ing wikidata-bugs@ and setting wikibugs keyword.
Comment 5 Matt Walker 2012-11-05 17:54:57 UTC
WikiData target is enabled as of https://gerrit.wikimedia.org/r/31859 -- LocalSettings will need to be changed for WikiData, $wgNoticeProject should be set to 'wikidata'.

Bug still open on slow/chrome 22 -- need to take a look at how the skin hooks are generated and where.
Comment 6 Ryan Kaldari 2012-11-05 21:01:25 UTC
It's probably not related to this specific bug, but $wgResourceLoaderExperimentalAsyncLoading affects where some of the hooks are generated. I think this is only turned on on test2.wiki though.
Comment 7 Matt Walker 2012-11-10 01:46:45 UTC
Hopefully the patch in the other bug solves this problem *crosses fingers*

*** This bug has been marked as a duplicate of bug 41937 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links