« Issue/SRF/172 » : différence entre les versions

De Semantic MediaWiki - Sandbox
(→‎Result : clarified console output.)
Ligne 38 : Ligne 38 :
</pre>
</pre>


If the same is tried with debugging enabled, then instead of (or perhaps as well as) the console error, a popup appears and the data loads but the ''City'' column will not be populated.
This is not the error I am seeing in my own installation. There seems to be a problem with the datatables format altogether here, because the above datatables control (without the subject printout) isn't working either.
 
[[Category:Issue]]
[[Category:Issue]]

Version du 31 août 2016 à 17:50

Bug demonstration for Semantic Result Formats Issue #172 (https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/172)

Control using datatables format

 
{{#ask: [[Capital of::+]]|?Located in|format=datatables}}

Result

Control using broadtable format

 
{{#ask: [[Capital of::+]]|?Located in|?=City|format=broadtable|mainlabel=-}}

Result

Located inCity
Angoulême
GreeceAthens
IndiaBangalore
ChinaBeijing
GermanyBerlin
GermanyDemoBerlin
DemoSMW
GermanyDemoSMW2017
GermanyDemoSW
GermanyDemoSWErrors
GermanyDemoSWM
GermanyDemoSWUth
Alexey Gorobecky
Helsinki
Indonesia
IndonesiaJakarta
England
United Kingdom
London
München
California
Sacramento County, California
Sacramento (CA)
Vkopey/Sandbox
PolskaWarszawa

Bug in datatables format

 
{{#ask: [[Capital of::+]]|?Located in|?=City|format=datatables|mainlabel=-}}

Result

The data table fails to load and the following Javascript error appears in the console (Chrome 52.0.2743.116 m):

Exception in module-execute in module jquery.dataTables.extras:
load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:178 TypeError: Cannot read property 'aTypes' of undefined TypeError: Cannot read property 'aTypes' of undefined
    at eval (eval at <anonymous> (http://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:4:681), <anonymous>:170:1011)
    at eval (eval at <anonymous> (http://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:4:681), <anonymous>:171:303)
    at Object.<anonymous> (http://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:163:74)
    at fire (http://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:45:122)
    at Object.add [as done] (http://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:45:656)
    at Object.always (http://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:46:874)
    at runScript (http://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:162:955)
    at checkCssHandles (http://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:163:774)
    at execute (http://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:164:477)
    at Object.implement (http://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:170:737)log @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:178handler @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:155fire @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:45fireWith @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:46fire @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:46track @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:155runScript @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:163checkCssHandles @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:163execute @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:164implement @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:170(anonymous function) @ VM430:170(anonymous function) @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:4globalEval @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:4work @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:166request @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:165load @ load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=feYQYEvp:172(anonymous function) @ 172_(SRF):215startUp @ load.php?debug=false&lang=fr&modules=startup&only=scripts&skin=vector:43script.onload.script.onreadystatechange @ load.php?debug=false&lang=fr&modules=startup&only=scripts&skin=vector:43

This is not the error I am seeing in my own installation. There seems to be a problem with the datatables format altogether here, because the above datatables control (without the subject printout) isn't working either.

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.