SemanticResultFormats icon indicating copy to clipboard operation
SemanticResultFormats copied to clipboard

[gallery] slideshow widget no longer working / Uncaught TypeError: $slide.size is not a function

Open kghbln opened this issue 3 years ago • 7 comments

Setup

  • MediaWiki | 1.37.1 (2aa4a86)18. Dez. 2021, 19:11
  • PHP | 7.3.31-1~deb10u1 (apache2handler)
  • MariaDB | 10.3.31-MariaDB-0+deb10u1
  • Semantic MediaWiki | 4.0.0-rc1 (33cd750) 20. Dez. 2021, 14:08
  • Semantic Result Formats | 3.2.0 (598c269) 29. Nov. 2021, 22:15

Issue

The slideshow widget to the gallery format is no longer working. This is the query

{{#ask:
 [[Gehört zu Sammlung::Allgemein]]
 [[Hat Dateiname::+]]
 |?Hat Dateiname
 |?Hat Dateibeschriftung
 |?Datei illustriert Funktion
 |widths=700
 |heights=560
 |captionproperty=Hat Dateibeschriftung
 |redirects=Datei illustriert Funktion
 |format=gallery
 |widget=slideshow
 |sort=Hat Dateiname
 |order=random
 |default=Zu dieser Bildvorführung wurden noch keine Bilder hinterlegt.
}}

Error log

load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:72 jQuery.Deferred exception: $slide.size is not a function TypeError: $slide.size is not a function
    at HTMLUListElement.<anonymous> (https://www.eikolo.net/w/load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides%7Cext.srf.formats.gallery%7Cext.srf.gallery.redirect%2Cslideshow%7Cjquery%7Cmediawiki.Uri&skin=strapping&version=20ubg:12:726)
    at Function.each (https://www.eikolo.net/w/load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides%7Cext.srf.formats.gallery%7Cext.srf.gallery.redirect%2Cslideshow%7Cjquery%7Cmediawiki.Uri&skin=strapping&version=20ubg:25:278)
    at jQuery.fn.init.each (https://www.eikolo.net/w/load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides%7Cext.srf.formats.gallery%7Cext.srf.gallery.redirect%2Cslideshow%7Cjquery%7Cmediawiki.Uri&skin=strapping&version=20ubg:23:93)
    at jQuery.fn.init.$.fn.responsiveSlides (https://www.eikolo.net/w/load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides%7Cext.srf.formats.gallery%7Cext.srf.gallery.redirect%2Cslideshow%7Cjquery%7Cmediawiki.Uri&skin=strapping&version=20ubg:12:588)
    at HTMLDivElement.<anonymous> (https://www.eikolo.net/w/load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides%7Cext.srf.formats.gallery%7Cext.srf.gallery.redirect%2Cslideshow%7Cjquery%7Cmediawiki.Uri&skin=strapping&version=20ubg:18:1444)
    at Function.each (https://www.eikolo.net/w/load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides%7Cext.srf.formats.gallery%7Cext.srf.gallery.redirect%2Cslideshow%7Cjquery%7Cmediawiki.Uri&skin=strapping&version=20ubg:25:278)
    at jQuery.fn.init.each (https://www.eikolo.net/w/load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides%7Cext.srf.formats.gallery%7Cext.srf.gallery.redirect%2Cslideshow%7Cjquery%7Cmediawiki.Uri&skin=strapping&version=20ubg:23:93)
    at srf.formats.gallery.slideshow (https://www.eikolo.net/w/load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides%7Cext.srf.formats.gallery%7Cext.srf.gallery.redirect%2Cslideshow%7Cjquery%7Cmediawiki.Uri&skin=strapping&version=20ubg:18:1035)
    at HTMLDivElement.<anonymous> (https://www.eikolo.net/w/load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides%7Cext.srf.formats.gallery%7Cext.srf.gallery.redirect%2Cslideshow%7Cjquery%7Cmediawiki.Uri&skin=strapping&version=20ubg:19:135)
    at Function.each (https://www.eikolo.net/w/load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides%7Cext.srf.formats.gallery%7Cext.srf.gallery.redirect%2Cslideshow%7Cjquery%7Cmediawiki.Uri&skin=strapping&version=20ubg:25:278) undefined
jQuery.Deferred.exceptionHook @ load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:72
load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:72 Uncaught TypeError: $slide.size is not a function
    at HTMLUListElement.<anonymous> (load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:12)
    at Function.each (load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:25)
    at jQuery.fn.init.each (load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:23)
    at jQuery.fn.init.$.fn.responsiveSlides (load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:12)
    at HTMLDivElement.<anonymous> (load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:18)
    at Function.each (load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:25)
    at jQuery.fn.init.each (load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:23)
    at srf.formats.gallery.slideshow (load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:18)
    at HTMLDivElement.<anonymous> (load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:19)
    at Function.each (load.php?lang=de-formal&modules=ext.jquery.blockUI%2Cresponsiveslides|ext.srf.formats.gallery|ext.srf.gallery.redirect%2Cslideshow|jquery|mediawiki.Uri&skin=strapping&version=20ubg:25)

kghbln avatar Dec 21 '21 19:12 kghbln

Do you have a url where we can see this?

hexmode avatar Dec 24 '21 15:12 hexmode

Do you have a url where we can see this?

Yes. See here.

kghbln avatar Jan 02 '22 16:01 kghbln

From my JS console:

Uncaught TypeError: $slide.size is not a function
    jQuery 4
    slideshow .../SemanticResultFormats/formats/gallery/resources/ext.srf.gallery.slideshow.js?91a37:88
    jQuery 2
    slideshow .../SemanticResultFormats/formats/gallery/resources/ext.srf.gallery.slideshow.js?91a37:57
    <anonymous> .../extensions/SemanticResultFormats/formats/gallery/resources/ext.srf.gallery.slideshow.js?91a37:112
    jQuery 2
    <anonymous> .../extensions/SemanticResultFormats/formats/gallery/resources/ext.srf.gallery.slideshow.js?91a37:110
    jQuery 9
    <anonymous> .../SemanticResultFormats/formats/gallery/resources/ext.srf.gallery.slideshow.js?91a37:109
    <anonymous> .../SemanticResultFormats/formats/gallery/resources/ext.srf.gallery.slideshow.js?91a37:116
jquery.responsiveslides.js:52:25

hexmode avatar Jan 03 '22 00:01 hexmode

Indeed. See the first line in the first error log of my report.

kghbln avatar Jan 03 '22 10:01 kghbln

Also happening in ...

Setup

Software Version
MediaWiki 1.39.3 (8e86232)
PHP 8.0.28 (apache2handler)
MariaDB 10.5.17-MariaDB-log
ICU 67.1
Semantic MediaWiki 4.1.1
Semantic Result Formats 4.1.0-beta

Issue

... with something like this:

{{#ask:
 [[Datei:+]]
 [[D Ist Hauptseitenbild::wahr]]
 |?D Hat Beschriftung
 |sort=D Hat Beschriftung
 |order=random
 |format=gallery
 |captionproperty=D Hat Beschriftung
 |heights=340
 |widths=340
 |limit=25
 |widget=slideshow
 |navigation=pager
 |autocaptions=no
 |overlay=no
 |searchlabel=
}}

kghbln avatar Apr 06 '23 18:04 kghbln

Indeed, the carousel widget is also affected by "jQuery.Deferred exception: this.clip.size is not a function TypeError: this.clip.size is not a function" followed by "Uncaught TypeError: this.clip.size is not a function"

kghbln avatar Jan 16 '24 09:01 kghbln