Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2009 at 10:10 UTC
Updated:
27 Aug 2010 at 12:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
karens commentedSame problem as #406876: Complete Pager Fail, I just committed fixes to cvs.
Comment #2
prunelle commentedI re-open this issue, because my tests show that that problem still exists with the 6.x-2.x-dev (03/26) version on the default calendar view.
Regards.
Comment #3
thepanz commentedThis issue is still in latest -dev (as today 2009-04-04).
Comment #4
thepanz commentedMarked #424938: Invalid month link into mini link as a duplicate.
Comment #5
jonline commentedis there any update?
Comment #6
Morn commentedSubscribing...
Comment #7
fpedraza commentedsubscribing.
Comment #8
mattHH commentedsame problem here (calendar-6.x-2.x-dev, date-6.x-2.x-dev)
quick&dirty workaround:
open sites/all/modules/date/theme/theme.inc
search for: theme_date_nav_title
copy whole function theme_date_nav_title to your template.php and rename it (YOURTHEME_date_nav_title)
Comment #9
Morn commented.. subscribing (need a patch)
Comment #10
fred0 commentedI'm seeing this on a clean install of Drupal 6.12, Calendar 6.x-2.x-dev (5/12/09), Date 6.x-2.x-dev (5/17/09).
Haven't tried the hack in #8 yet.
Comment #11
Morn commentedis this issue fixed in the dev Version?
Comment #12
hujia commentedThanks for the workaround solution - I used it and it works!
An associated issue for Mini Calendar Block is this: if you click on the prev. or next navigation arrow and go to another month, like 09/2009 or 06/2009, rather than the current month (like 07/2009 now), and then click on any date or the month in the title of Mini Calendar Block, the content is loaded correctly for that date or month, but then the Mini Calendar will always go back to the current month. Is it possible to keep that month one just navigates to? Thanks, Huj
Comment #13
marcuslim commentedI think the issue is that the correct month argument for the calendar block needs to be specified, otherwise when the page reloads when a date is clicked, the block has no argument, and it will default to using the current month, which is why the calendar block will revert back to the current month.
Comment #14
travisaugust commentedsubscribing
Comment #15
jecheve commentedsubscribing
Comment #16
francoud commentedI think I still have this problem, or a sort of.
What I can see, is that it works perfectly when I use it on:
windows xp + Mysql 5.0.37 + PHP 5.2.1
I still have the problem on:
linux (centos) + mysql 4.1.20 + php 4.3.0 (+ module: DATE PHP4 6.x-2.x-dev).
I tried using (on the centos server) calendar and date -dev last versions, but still not working. Also the "#8" workaround didnt help:
if the mini-calendar shows "august" and I click on "next", the september's mini calendar is really shown; but the "title" is not refreshed, it still show "august" with the same prev and next links.
I think it could be a "views" issue:
echo $view->date_info->date_arg
correctly does "2009-09" in the working test site, but gives "2009-08" in the not-working production site.
Any suggestion? Does it depend from old version of php (4, not 5)? Something that I could do?
tia
Comment #17
arlinsandbulte commentedI confirm #8 works...
If you apply the changes in #8 to the theme.inc file in located in the DATE module, it also works fine (\sites\all\modules\date\theme\theme.inc)
That actually makes this an issue for the DATE module and not necessarily the calendar module.
Can someone make a patch to test?
That should be pretty simple, but I have never done that before....
Comment #18
webwriter commentedSubscribe
I am also seeing this issue with php4, but not php5 if that helps.
Comment #19
cledman commentedHi..
in my case, the currently month is always the next month. For example: We´re in november, but the header shows "December". How could I fix that?
I just tried the #8, but no success
Comment #20
ufku commentedthe patch tries to fix the bug by using date_real_url() to create the URL of a navigation title.
Comment #21
cledman commentedthanks... I did amost the same thing few days ago.
thanks :)
Comment #22
2ndmile commentedI can confirms this problem. The fix in #8 worked for me.
Comment #23
hnln commentedsubscribe
Comment #24
vladsavitsky commentedThis is my patch (the same code in attach).
See also original issue: http://drupal.org/node/700866#comment-2651358
Comment #25
Sobrino commentedThis patch (VladSavitsky) don't work for me.
do must be change other things?
Comment #26
vladsavitsky commentedSobrino, did you use fresh Drupal and Date module to test it?
Comment #27
webwriter commentedsubscribe
Comment #28
robbertnl commented#24 doesn't work for me either, but the quick&dirty #8 works
Comment #29
karinha commentedI have php 5, but it is not working with me. Also tried work around #8... but it does not work :(. Anytime I select April, the calendar jumps back to March and the page view does not change... Is this working for anybody, or did I forget to do something?
Comment #30
hawleyal commentedsubscribing
Comment #31
timjh commentedYou've had quick & dirty - how about quicker and really filthy? I don't like applying module patches that might get lost at the next upgrade, so I fixed it in date-navigation.tpl.php. It may not work in every context, but you may be able to adapt it.
1. Copy date-navigation.tpl.php from modules/date/theme into your theme directory
2. Reload theme registry, flush every cache in sight
3. Edit your theme copy of date-navigation.tpl.php by replacing the line
with
Comment #32
webwriter commentedJust updated to most recent dev, still having this issue.
Tried #31, cleared cache, rescanned template files... still not working. I even tried overwriting the tpl file directly in the module, no luck. I still only get the current month whenever the mini-calendar title is clicked, no matter what month is navigated to.
I have also upgraded to php5, but the issue is still active.
Comment #33
Morn commentedwith #31
Got mktime error:
mktime() expects parameter 6 to be long, string given in /home/www/vtad/sites/all/themes/vtad_thema/date-navigation.tpl.php on line 51.after going to Link http://www.vtad.de/calendar/2010-03-25?page=2 (or any other day link)
I also had to add
if ($block) { .... } else { print $nav_title }so that the monthly navigation of the "Year View" works.
Comment #34
andrewsuth commentedSetting to critical - being able to select the chosen month is a fairly basic expectation from a calendar block, if you ask me.
Comment #35
-martin- commentedThis worked for me:
Date module -> themes -> date-navigation.tpl.php
Replace
width
Comment #36
andrewsuth commentedChanging back to a bug report.
Finding a hacky solution doesn't change the status of the original problem.
Comment #37
webwriter commentedThe above solution simply makes my next and previous navigation disappear entirely. I guess that's sort of a solution...
Comment #38
Gendelf_Lugansk commentedWorked for me:
in file sites/all/modules/date/theme/theme.inc change code
to
Comment #39
gnindl commentedApplied patch from #38. Works for me.
Comment #40
hnln commentedI fixed it like this (requires no hacking, replace "yourmodule" with the correct module name or do it from the theme layer)
Comment #41
wmostrey commentedThe custom function in #40 also fixed it for me, thanks!
Comment #42
Drupal Jedi commentedCan confirm that the module solution in #40 works wonderfullly.
Comment #43
karens commentedNone of the above was the right fix, which ended up being a little obscure. This should now be working. Thanks!