Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kghbln opened this issue Dec 21, 2021 · 6 comments
Labels

Comments

@kghbln
Copy link
Member

kghbln commented Dec 21, 2021

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 kghbln added the bug label Dec 21, 2021
@hexmode
Copy link
Member

hexmode commented Dec 24, 2021

Do you have a url where we can see this?

@kghbln
Copy link
Member Author

kghbln commented Jan 2, 2022

Do you have a url where we can see this?

Yes. See here.

@hexmode
Copy link
Member

hexmode commented Jan 3, 2022

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

@kghbln
Copy link
Member Author

kghbln commented Jan 3, 2022

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

@kghbln
Copy link
Member Author

kghbln commented Apr 6, 2023

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
Copy link
Member Author

kghbln commented Jan 16, 2024

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants