Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After upgrading to Drupal 9.0.7. I am getting the following message in the browser console when clicking the back to top button. The button does not work:
jquery.min.js?v=3.5.1:2 Uncaught TypeError: S.easing[this.easing] is not a function
at init.run (jquery.min.js?v=3.5.1:2)
at u (jquery.min.js?v=3.5.1:2)
at Function.S.fx.tick (jquery.min.js?v=3.5.1:2)
at st (jquery.min.js?v=3.5.1:2)
Jquery version seems to be the same as drupal 8, so i'm kind of at a loss here.
Issue fork back_to_top-3179532
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
nikhitarathore CreditAttribution: nikhitarathore commentedI had same problem with my drupal 9 project . i just added js library to show back to top for long page.
web/themes/custom/mytheme/mytheme.libraries.yml
js:
https://code.jquery.com/ui/1.8.5/jquery-ui.min.js: {type: external, attributes: {integrity: sha256-fOse6WapxTrUSJOJICXXYwHRJOPa6C1OUQXi7C9Ddy8=, crossorigin: anonymous }}
dependencies:
- core/jquery
- core/drupal.ajax
- core/drupal
- core/drupalSettings
- core/jquery.once
Comment #3
toomanynights CreditAttribution: toomanynights commentedSame problem on the same Drupal version. The solution above unfortunately crashes the site.
Comment #4
nikhitarathore CreditAttribution: nikhitarathore commented@toomanynights Try above solution now. it should work. I updated code
Comment #5
toomanynights CreditAttribution: toomanynights commented@nikhitarathore Same =( I'm running Bootstrap Barrio. Maybe those are incompatible or something.
Comment #6
VladimirAusCan replicate on both claro and olivero themes running Drupal 9.0 and Drupal 9.1
Comment #7
dendrmx CreditAttribution: dendrmx commented#2 Works for me.
Drupal 9.0.7 with a custom Bootstrap-based theme.
Thank you @nikhitarathore
Comment #9
Bagz CreditAttribution: Bagz as a volunteer commentedjquery ui is deprecated in 9.x which is why this module doesn't work (see https://www.drupal.org/node/3067969)
A work around is to install the jquery_ui_effects module and add the dependency "jquery_ui_effects/fade" to your theme's libraries.yml file.
Comment #10
ivnish CreditAttribution: ivnish commentedDuplicate of https://www.drupal.org/project/back_to_top/issues/3151196