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.
My slideshow looks great but it doesn't work for anonymous users. It is shown as a simple list ul, li etc, one slide under another.
admin/people/permission: anonymous users can watch all published materials.
What could be wrong? I'll be grateful for help
Comments
Comment #1
brussnika CreditAttribution: brussnika commentedComment #2
Mschudders CreditAttribution: Mschudders commentedHello
Maybe a few steps to pinpoint the problem:
* Can I see it anywhere?
* Is the page cached ?
* Do you have extra permission modules ?
* Is the HTML there (for the slider, but just with an empty UL ?
Comment #3
brussnika CreditAttribution: brussnika commentedThere was JS error on page:
Uncaught TypeError: Object [object Object] has no method 'once'
$('form.user-info-from-cookie').once('user-info-from-cookie', function () {
So I googled this mistake and changed "once" to "one" in ../misc/form.js (65) and ../misc/collapse.js (98) according to errors in chrome.
Maybe it may cause some problems later (((
But now the slideshow is working for all browsers and for all roles.
Thanks
Comment #4
Mschudders CreditAttribution: Mschudders commentedWell this is not done actually.
It's good that it fixed the problem, but you are changing Drupal Core.
That's a bad idea for future updates etc.
Comment #5
Mschudders CreditAttribution: Mschudders commentedComment #6
pbeakley CreditAttribution: pbeakley commentedJust a quick note that we're having exactly the same problem. In our case, the slider works for anonymous users for a while, then mysteriously disappears on us.
What do you need from our end to help diagnose the issue?
Comment #7
Mschudders CreditAttribution: Mschudders commentedit would be helpful if I could see the problem ;-)
or
- any javascript errors on the page ?
- same in every browser ?
- views preview still works ?
- after drupal cache flush nothing changes ?
Kind regards
Comment #8
Mschudders CreditAttribution: Mschudders commentedComment #9
Mschudders CreditAttribution: Mschudders commentedComment #10
brussnika CreditAttribution: brussnika commentedHi again,
it was newby problem: wrong js including ))
Fixed.
Thanks a lot for your help!
Comment #11
Mschudders CreditAttribution: Mschudders commentedno problem glad i could help