Loading...
 

Slider doesn't work

Status
Pending
Subject
Slider doesn't work
Version
22.x
Category
  • Regression
Feature
Slideshow
Resolution status
Won't Fix
Submitted by
ilkkao
Lastmod by
ilkkao
Rating
(0)
Description

Because this bug report supports {SLIDER}, below is a demo that demonstrates the error. See the JS error this bug report page generates in developer console.

Copy to clipboard
{SLIDER( width="80%" theme="mini-light" expand="n" resizecontents="n" buildarrows="y" buildnavigation="y" buildstartstop="n" togglearrows="y" togglecontrols="y" enablearrows="y" enablenavigation="y" enablekeyboard="y" autoplay="y" autoplaylocked="n" autoplaydelayed="y" pauseonhover="y" stopatend="n" delay="4000" animationtime="1000" hashtags="n")}{img fileId=1522} {SLIDER}


START OF DEMO

{SLIDER( width="80%" theme="mini-light" expand="n" resizecontents="y" buildarrows="y" buildnavigation="y" buildstartstop="n" togglearrows="y" togglecontrols="y" enablearrows="y" enablenavigation="y" enablekeyboard="y" autoplay="y" autoplaylocked="n" autoplaydelayed="y" pauseonhover="y" stopatend="n" delay="4000" animationtime="1000" hashtags="n")}Tiki Admin Theme
{SLIDER}

END OF DEMO

This resulted in a working slider in 21. After upgrade I get the following JS error:

Copy to clipboard
jquery.min.js:2 Uncaught TypeError: b.replace is not a function at Function.ga.matchesSelector (jquery.min.js:2) at Object.add (jquery.min.js:3) at jquery.min.js:3 at Function.each (jquery.min.js:2) at a.fn.init.each (jquery.min.js:2) at ya (jquery.min.js:3) at a.fn.init.on (jquery.min.js:3) at a.fn.init.a.fn.<computed> (min_main_124e21a7d76a2835b01c446b47408413.js:formatted:194) at a.fn.init.jQuery.fn.load (min_main_124e21a7d76a2835b01c446b47408413.js:formatted:63128) at $.anythingSlider.base.updateSlider (min_main_bb326a0cdb1e9f74c977e7507c0fafb4.js:formatted:226)


Web page where this happens: https://kipinapartio.fi/

I debugged this a bit and tracked it down to git commit
Copy to clipboard
70b0df71119d5592677ba37b1a801f5fb406bba6 which adds a new load jQuery method. This method calls element.tikiModal(tr('Loading...'));
In the case of slider element is Window object. Modal doesn't support window as it tries to modify or read z-index which doesn't exists for window. Maybe just add if statement around tikiModal line and not call it if the element is window?


Update:
Actually I (@luciash d' being 🧙) see this in Chrome console:

Copy to clipboard
Uncaught TypeError: Cannot read property 'defaultView' of undefined at Ie (min_main_3da61fe09f318f29e486129fa2ff5e86.js:184) at Be (min_main_3da61fe09f318f29e486129fa2ff5e86.js:184) at Function.css (min_main_3da61fe09f318f29e486129fa2ff5e86.js:184) at min_main_3da61fe09f318f29e486129fa2ff5e86.js:184 at $ (min_main_3da61fe09f318f29e486129fa2ff5e86.js:184) at a.fn.init.css (min_main_3da61fe09f318f29e486129fa2ff5e86.js:184) at min_main_3da61fe09f318f29e486129fa2ff5e86.js:5502 at Function.each (min_main_3da61fe09f318f29e486129fa2ff5e86.js:184) at a.fn.init.each (min_main_3da61fe09f318f29e486129fa2ff5e86.js:184) at a.fn.init.$.fn.tikiModal (min_main_3da61fe09f318f29e486129fa2ff5e86.js:5502)


Weirdly demoing the SLIDER here prevents displaying of the comments below the tracker item? (not particularly weird, the comments are loaded by ajax so if the javascript in the page is broken it doesn't get to that call )

Workaround

This slider plugin is based on anything slider which seems to have been abandoned and it uses a function that has now been removed from jQuery 3.x - i guess we should delete the wiki plugin?

You can work round this by using resizecontents="y" in the plugin, or, i would recommend, move to using the bootstrap carousel in plugin list, or use a more modern slider plugin like PluginSwiper (as seen on Slider Comparison )

Importance
8
Easy to solve?
6
Priority
48
Demonstrate Bug (Tiki 19+)
Please demonstrate your bug on show2.tiki.org
 About show2.tiki.org

To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.

Version: Create show2.tiki.org instance
Demonstrate Bug (older Tiki versions)
Please demonstrate your bug on show.tikiwiki.org
 About show.tikiwiki.org

To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.

Version: Create show.tikiwiki.org instance
Ticket ID
7600
Created
Sunday 08 November, 2020 17:55:08 GMT-0000
by ilkkao
LastModif
Wednesday 24 March, 2021 12:00:46 GMT-0000

Attachments

 filenamecreatedhitscommentversionfiletype 
No attachments for this item


Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Diagram
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw -superseded by Diagram
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Gantt
Group
Groupmail
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Kanban
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links
Share
Shopping Cart
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags
Task
Tell a Friend
Terms and Conditions
Theme
TikiTests
Federated Timesheets
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools