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

De Semantic MediaWiki - Sandbox
(Removed broadtable to see if datatables would work.)
(Changed description of error to match reality.)
Ligne 1 : Ligne 1 :
Bug demonstration for Semantic Result Formats Issue #172 (https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/172)
Bug demonstration for Semantic Result Formats Issue #172 (https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/172)


==Datatables query (buggy)==
==Control using broadtable format==
<pre>
{{#ask: [[Capital of::+]]|?Located in|?=City|format=broadtable|mainlabel=-}}
</pre>
===Result===
{{#ask: [[Capital of::+]]|?Located in|?=City|format=broadtable|mainlabel=-}}
 
==Bug in datatables format==
<pre>  
<pre>  
{{#ask: [[Capital of::+]]|?Located in|?=City|format=datatables|mainlabel=-}}
{{#ask: [[Capital of::+]]|?Located in|?=City|format=datatables|mainlabel=-}}
Ligne 8 : Ligne 15 :
{{#ask: [[Capital of::+]]|?Located in|?=City|format=datatables|mainlabel=-}}
{{#ask: [[Capital of::+]]|?Located in|?=City|format=datatables|mainlabel=-}}


Problems:
The data table fails to load and the following Javascript error appears in the console (Chrome 52.0.2743.116 m):
* The ''City'' column (the subject) is empty.
<pre>
* A Javascript popup error is generated when the page is loaded.
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
</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.
 
[[Category:Issue]]

Version du 31 août 2016 à 17:28

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

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

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.

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