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.
It seems there is a bug in the pager -- when moving forward a month from March 2015, it goes to May 2015 and skips April. When you go back a month from May, it will then show April.
This happens consistently and only seems to happen with April. The other months move forward normally.
"Skip empty pages" option from #2 can slow down server. My server is always slow under Drupal, it is not a solution.
Comments
Comment #1
zombree CreditAttribution: zombree commentedHey, I had this issue too. The calendar was skipping not just April, but also February, June, September, and November -- but only when you clicked forwards in time, not if you were going backwards in time (wtf?!). It was driving me crazy, but I think I fixed it. Here's how:
In your calendar view, you should have a contextual filter called something like Date: Date (node) (Content: Date - start date (field_date)).
Click on that contextual filter, and scroll down to the granularity settings. When I changed the granularity from Month to Day, it solved my issue.
Comment #2
jszupi CreditAttribution: jszupi commented#1 is not a solution - it comes to show month calendar with day granurality, what is not something we want to have
Problem with month can be save when "Skip empty pages" option is checked in pager options in views.
But the problem is bigger - it happens also in week view. Clicking next button calendar goes 2 weeks forward. Prevoius button works fine.
So the problem happens for months and weeks. Pagers at days and years views are working fine.
Comment #3
umberto. CreditAttribution: umberto. commentedWe have this problem too, solution #2 solved the problem
Comment #4
TommyK CreditAttribution: TommyK commentedComment #1 describes the issue correctly. All those months are skipped.
Comment #2 provides a workaround. It doesn't seem like a solution because one could expect empty months to be presented along with months that contain entries when viewing a calendar.
UPDATE: Tested with the current HEAD (as of this writing) of Views, Date, and Calendar.
Comment #5
zombree CreditAttribution: zombree commentedAfter 2 months of stability, I updated some modules on my site and this issue reared its ugly head again.
I tried the solution in comment #2 and it did not work for me.
I managed to resolve it once more by updating my version of the Date module and applying the patch found here: https://www.drupal.org/node/2375235#comment-9855523
Comment #6
4x3 CreditAttribution: 4x3 as a volunteer and commentedAlso experiencing this issue. Looks like it is skipping months with less than 31 days.
Comment #7
Max1 CreditAttribution: Max1 commentedI also ran in this issue.
By the way, in clean installation on simplytest.me the bug does not reproduce. I compare all options of the calendar view in my server and in clean installed server - they are about the same.
"Skip empty pages" from #2 will slow down server, it is not a solution.
Comment #8
Max1 CreditAttribution: Max1 commentedComment #9
Jaypan CreditAttribution: Jaypan at Jaypan commentedNot sure if it's related, but with the update to 7.35, the forward button stopped working altogether for me.
Comment #10
dscl CreditAttribution: dscl at Trellon, LLC commentedHey guys,
I've ran into this issue, but after debugging it for a while I notice the pager is actually controlled by the Date module.
Looking into the Date module's issue queue I've found out that the same was reported there and a working patch was already provided.
I'm closing this one because of this and adding the Date's issue as a related issue. Please refer to there.
Comment #11
dscl CreditAttribution: dscl at Trellon, LLC commentedI didn't know I couldn't refer to other project's issues as related.
Here is the link: https://www.drupal.org/node/2375235
Comment #12
Jaypan CreditAttribution: Jaypan at Jaypan commentedI also figured out the issue was with the Date module. The patch failed for me though, so I was not able to apply it. For the time being, I'm using Calendar 3.5 (current) with Date 2.7 (one back) and it's all working.
Comment #13
Max1 CreditAttribution: Max1 commentedComment #14
Max1 CreditAttribution: Max1 commentedComment #15
Max1 CreditAttribution: Max1 commented