Page MenuHomePhabricator

SemanticResultFormats jqplotseries Javascript exception
Closed, ResolvedPublic

Description

I'm using the master branch of SMW and Semantic Results Formats with MW 1.21.0.

The jqplotseries is throwing Javascript errors in Chrome and Safari, but not in Firefox. Test URLs:

http://semantic-mediawiki.org/wiki/Demo:Jqplotseries/Survey

http://wikiapiary.com/wiki/User:Thingles/Scratch5

If you set debug=true in Safari and Chrome it will work. Without it the errors are:

Exception thrown by ext.jquery.jqplot.enhancedlegend: Cannot set property 'EnhancedLegendRenderer' of undefined

Exception thrown by ext.srf.jqplot.chart: Object [object Object] has no method 'srfjqPlotBarChartData'


Version: master
Severity: normal

Details

Reference
bz48944

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:40 AM
bzimport set Reference to bz48944.
bzimport added a subscriber: Unknown Object (MLST).
Unknown Object (User) added a comment.May 29 2013, 4:06 PM

Using debug=true is to circumvent the ResourceLoader which indicates that the format (and its JS) itself is working (otherwise it wouldn't work at all in neither browser under no conditions).

Further it is to note that nothing has changed with this format (JS files) or its resource definitions since 2012-10-12 and earlier versions of MW 1.21 (or 1.20, 1.19) did not show any of the described behaviours which lends itself to a conclusion that something in the ResourceLoader has changed. It correlates with other findings earlier reported here [1]/[2] but MW-core developers have denied such attribution.

[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=46401#c20

[2] https://gerrit.wikimedia.org/r/#/c/64128/

Change 82757 had a related patch set uploaded by Mwjames:
(Bug 48944) RL rearrange resource dependencies

https://gerrit.wikimedia.org/r/82757

Change 82757 merged by jenkins-bot:
(Bug 48944) RL rearrange resource dependencies

https://gerrit.wikimedia.org/r/82757

Unknown Object (User) added a comment.Sep 23 2013, 9:43 AM

Mark this as solved as with the current Semantic MediaWiki (Version 1.9 alpha-3) (ac48012), Semantic Result Formats (Version 1.9 alpha) (feb2a7d) the problem can no longer be verified on MediaWiki 1.22alpha (ae44cfb) or MediaWiki 1.21.2 (2255287).