Problem/Motivation
The blocks created by Countdown do not load for anonymous users.
Steps to reproduce
- Enable module.
- Edit Layout on page.
- Add countdown block.
- Save.
When logged in, block is visible.
When logged out, block does not render.
It might be a jQuery issue but I loaded the jQuery Once module which is supposed to help with jQuery issues but there was no change. It is possible it is a cache problem since the block shouldn't really be cached?
Other EBT modules seem to be unaffected, it is only this module. I also checked all permissions and they look fine to me.
Issue fork ebt_countdown-3521289
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:
- 3521289-block-does-not
changes, plain diff MR !2
Comments
Comment #2
shane birley commentedComment #3
shane birley commentedI went through everything to make sure I wasn't crazy, but I do think there are a couple of issues here. I ran through a few implementations of adding declarations in the theme and it works fine but the real issue is just an update of the module itself since it has particular requirements:
1. The ebt_countdown is making a declaration for Drupal.behaviors and it isn't available in Drupal 11. So I added the declarations I made in the theme in the modules libraries.yml file.
I then took a quick peek at the ebt_countdown.js and added the declarations:
Hopefully this helps.
Comment #6
levmyshkinHi Shane Birley, thank you for your report and patch! I applied it and released 1.4.6 version for EBT Countdown.
Comment #7
levmyshkinComment #8
levmyshkin