Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have a test machine and a live site and just noticed that there are no navigation menus at the top of the calendar to switch between the month, day, week views. I upgraded from the old calendar module and chose a default view and "reverted". What am I missing?
Comment | File | Size | Author |
---|---|---|---|
#41 | dissapearing-tabs-fix-1265590-38.patch | 1.27 KB | kristiaanvandeneynde |
#30 | path_fix_for_navigation-1265590-30.patch | 789 bytes | mErilainen |
#25 | 0001-Fix-for-base_path-of-which-causes-the-Year-Month-Wee.patch | 1.07 KB | drewkeller |
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedClear your caches, probably several times.
Comment #2
flightrisk CreditAttribution: flightrisk commentedNot sure how many times to do it, but I've cleared the views cache and the main cache in Drupal 7.7 several times. I have the same issue on a localhost machine and on my live site. Here is the link: http://mckenziehoa.org/calendar-event/month I have added two displays to the "cal_event" view I cloned, so maybe I broke something? I keep getting messed up by having to remember to switch the dropdown in the views setting to apply to only this view and not globally.
Comment #3
KarenS CreditAttribution: KarenS commentedI don't know what to tell you, they work fine for me and apparently everyone else, since no one else is reporting this. The links are constructed automatically from every display on your view that has a path, so the other option is that you don't have anything with a path.
For things like this, if all else fails it is often far less work in the long run to just start over, using a clone of the default calendar view as a starting point. Make sure the default view has been reverted before you clone it or you may pick up crufty old stuff from older versions.
Comment #4
flightrisk CreditAttribution: flightrisk commentedI was writing to tell you all that I did and it still was not working, but something fixed it in my localhost site. The last thing I did was disable the iCal module and re-enable it. It worked right after that. I have all the dev versions of calendar, ctools, date and views as of Aug 31 on that machine.
I noticed that when I click on the iCal display on the live machine, I get:
Parse error: syntax error, unexpected '!', expecting '(' in /home/mckenzie/public_html/sites/all/modules/calendar/calendar_ical/calendar-style-ical.tpl.php on line 13
Don't think it is a coincidence. I am going to upgrade all the modules now on the live machine and see what happens. The versions I had were all aug 8, aug 10 and aug 29
Comment #5
flightrisk CreditAttribution: flightrisk commentedThis was a strange one. The fix was to edit the view, go to the "Format" section for the "month" display. Open the Format and Show settings and just save them again to rewrite the values back to the database. Everything then works. I also updated to all the latest versions just in case.
Comment #6
graytoby CreditAttribution: graytoby commentedReopening. I've encountered the same issue. Clearing caches doesn't do a thing. in addition I get this error:
Notice: Undefined index: access in calendar_menu_local_tasks_alter() (line 50 of /public_html/sites/all/modules/calendar/calendar.module).
Comment #7
graytoby CreditAttribution: graytoby commentedComment #8
KarenS CreditAttribution: KarenS commentedTry to edit the view and re-save it.
Comment #9
ellen.davis CreditAttribution: ellen.davis commentedI can report the same problem. I updated calendar/date/ctools/views on my site today.
Calendar 7.x-3.x-dev (2011-Aug-31)
Date 7.x-2.x-dev (2011-Aug-31)
Ctools 7.x-1.x-dev (2011-Aug-31)
Views 7.x-3.x-dev (2011-Sep-01)
And am not seeing this error: Undefined index: access in calendar_menu_local_tasks_alter() (line 50
The navigation menu items do not display.
Clearing caches does not help.
Editing the view and re-saving does not help.
I was also working on this yesterday on another site. I updated to the lastest -dev of all four modules there, and this error did not come up then.
Comment #10
chemicalroman CreditAttribution: chemicalroman commentedI have the same problem
Notice: Undefined index: access in calendar_menu_local_tasks_alter() (line 50 of /public_html/sites/all/modules/calendar/calendar.module).
Calendar, Views, Date and Ctools upgraded to lastest devs.
Comment #11
ellen.davis CreditAttribution: ellen.davis commentedI had other modules to upgrade. So, I went ahead and did them. I also ran cron. After I was finished, I looked at the calendar again. The navigation links are still missing. But the Undefined index: access error is gone. I did not do any updates to calendar.
I wouldn't think installing/updating other modules would have an affect on calendar. Would running cron?
Comment #12
graytoby CreditAttribution: graytoby commentedI've tried editing, flushing caches, running cron, flushing again, flushing just views caches, I've tried every possible combination to no avail.
Comment #13
zabelc CreditAttribution: zabelc commentedI'm seeing the same "Undefined index: access in calendar_menu_local_tasks_alter" error after updating to all the latest development releases, despite clearing my caches, and even restarting Apache.
Comment #14
CrashNet CreditAttribution: CrashNet commentedI am seeing the same issue with the latest dev as well. Tried clearing the caches and reverting the view with no success.
Comment #15
ellen.davis CreditAttribution: ellen.davis commentedUgh. The error is back today. I get the "Undefined index: access in calendar_menu_local_tasks_alter() (line 50" message three times.
Comment #16
Scyther CreditAttribution: Scyther commentedAlso got this problem, using all latest dev versions.
Comment #17
Scyther CreditAttribution: Scyther commentedThe
Undefined index: access in calendar_menu_local_tasks_alter
seems to come from that the $item is NULL because of a incorrect value for $tab['path'], generated by this issue #1268780: $part_path in calendar_preprocess_date_views_pager() seems to be incorrect when base_path() is '/'.Comment #18
wusel CreditAttribution: wusel commented@KarenS:
What do you meen with #3: "Make sure the default view has been reverted"?
How to do this on a existing Drupal-installation?
Thank you very much!
Comment #19
Geex2011 CreditAttribution: Geex2011 commentedalso getting this error but 4 times after updating my calendar from the alpha version to the dev version!!!!
Notice: Undefined index: access in calendar_menu_local_tasks_alter() (line 50 of C:\wamp\www\rms1\sites\all\modules\calendar\calendar.module).
Notice: Undefined index: access in calendar_menu_local_tasks_alter() (line 50 of C:\wamp\www\rms1\sites\all\modules\calendar\calendar.module).
Notice: Undefined index: access in calendar_menu_local_tasks_alter() (line 50 of C:\wamp\www\rms1\sites\all\modules\calendar\calendar.module).
Notice: Undefined index: access in calendar_menu_local_tasks_alter() (line 50 of C:\wamp\www\rms1\sites\all\modules\calendar\calendar.module).
If this issue is related to the local actions included on the calendar, how can I disable the local action since i really don't need them???
PS: Despite the issues.... I want to say "THANK YOU - YOU ROCK" for all maintainers for this module and the date module
Thanks,
Hashim
Comment #20
mErilainen CreditAttribution: mErilainen commentedNo navigation here either, after updating to the latest dev-version.
Comment #21
Geex2011 CreditAttribution: Geex2011 commentedI did some testing and found that the Calendar 7.x-3.x-dev (2011-Aug-24) version works fine but I am having new issues with customizing the date field settings which i don't know if they are related or not to this version...
Thanks,
Hashim
Comment #22
ccurwen CreditAttribution: ccurwen commentedsubscribe. I didn't realize the nav menu had gone until suddenly it appeared. Now, sadly it is gone again. Hoping to get to the bottom of this soon. Thanks for the great module though!
Comment #23
drewkeller CreditAttribution: drewkeller commentedSeems like the OP is not the only one reporting this any more... also not sure what more information to provide.
Took me a while to figure out how to revert the view. You have to enable the Date Tools module. Then the dropdown in the view will have an option to revert the view.
1. So I reverted the 'Calendar' view and removed the clones I had before.
2. I 'Flushed all caches' FIVE times (hopefully that is considered enough... if not, please indicated how many times is enough).
3. Emptied all cache tables from the drupal database in phpmyadmin
4. Accessed the /calendar/month url.
5. The month page DOES NOT have the links.
At the end of the calendar_preprocess_date_views_pager() function, I added 'dvr($calendar_links)' which outputs
So the links are being processed... but they are not getting added to the output. From a comment in the code, apparently there are some tabs that are supposed to be created? I looked in the calendar-month.tpl.php template and the template_preprocess functions, but I don't see anything in them about the calendar_links. I tried setting my drupal theme back to the default theme in case something was weird in the theme, but I still don't see any links or tabs. At this point, it's beyond my drupal knowledge where they might be hiding.
Comment #24
Scyther CreditAttribution: Scyther commented@drewkeller is your base_path '/' ?
I have same output as you. This issue is about this http://drupal.org/node/1268780
Comment #25
drewkeller CreditAttribution: drewkeller commented@scyther: Yes, fixing the urls seems to fix it and allow the tabs to appear.
Patch attached.
Comment #26
Scyther CreditAttribution: Scyther commentedPlease read this http://drupal.org/patch/submit to submit a patch to a issue properly, so you know how next time.
Comment #27
arlinsandbulte CreditAttribution: arlinsandbulte commentedSounds like this is a duplicate of #1268780: $part_path in calendar_preprocess_date_views_pager() seems to be incorrect when base_path() is '/'
Comment #28
ccollins61 CreditAttribution: ccollins61 commentedThe issue is most likely, as it was in my case, a theme refresh issue. Go to Advanced Settings, Theme: Information from any of the calendar views and do a "Rescan Template Files." That should fix it.
Comment #29
mErilainen CreditAttribution: mErilainen commentedI'm also still experiencing this error, although the navigation was working before updating again to latest dev.
I have cleared caches and run cron, reverted and saved the original view and also rescanned template files several times.
No errors are thrown to apache log, only notices in watchdog:
Comment #30
mErilainen CreditAttribution: mErilainen commentedHere is the patch from comment 25 in, hopefully, proper format. Works for me.
EDIT: Ups, I didn't notice this is already waiting to be committed in the other thread.
Comment #31
trigdog CreditAttribution: trigdog commentedI am also having this issue with the latest dev (Sept 17). Did this patch get committed?
Comment #32
middlenewman CreditAttribution: middlenewman commentedAlso having this issue. Running the latest dev version... Have tried all suggestions with no luck...
Comment #33
Scyther CreditAttribution: Scyther commentedHave you tested with this issue? #1268780: $part_path in calendar_preprocess_date_views_pager() seems to be incorrect when base_path() is '/'
Comment #34
middlenewman CreditAttribution: middlenewman commentedI don't think that is relevant to my issue. Does that fix the fact that this latest dev version removes the sort options of "Month Week Day Year"?
And I know for a fact that it is this latest version, because luckily I found my backed up version and my events are placed on the correct day now (that's another issue I posted, all the events were posting on the first day of the month, week, etc.) and I have the sort by links.
I don't know... I am going to suggest everyone roll back if they can until another dev fixes these issues.
I had all the view settings the same on both version of the 7.x-3.x- devs and the latest one fails on so many levels.
Comment #35
Scyther CreditAttribution: Scyther commentedThis issue is about My "month | week | day | year " navigation menus are gone from the calendar not other issues that you seems to have what I can understand from your comment.
And this issue is caused by the issue here http://drupal.org/node/1268780 so your issues is not relevant to this.
Comment #36
middlenewman CreditAttribution: middlenewman commentedNo sorry, I was having this issue as well.
Comment #37
Scyther CreditAttribution: Scyther commentedStill duplicate of this http://drupal.org/node/1268780 as maintainer arlinsandbulte wrote in #27
Comment #38
kristiaanvandeneyndeLast commit in assumed 'duplicate' did not fix the issue.
For instance, I have the following variables:
Which would lead to a $parth_path of '/localhost/prof/calendar/month/2011-09' using
$part_path = substr($href,strlen(base_path()));
This is not a duplicate issue, seeing as the other issue is specifically about a base_path() being '/'.
The issue here is obviously that there should not be a 'http://localhost' in the $href.
If you look at the called date_pager_url() function in date/date_views/date_views.module, you'll find the following at the bottom:
Change it to:
And the tabs will work.
However, this breaks features such as day number links in the Month view.
Therefore, I suggest you change the way $href is built.
Comment #39
kristiaanvandeneyndeReopening, see post above.
Addendum:
calendar/theme/theme.inc calls
date_pager_url($view, $type, NULL, TRUE, FALSE);
While the function signature in date/date_views/date_views.module is:
function date_pager_url($view, $date_type = NULL, $date_arg = NULL, $force_view_url = FALSE) {
Four parameters specified, five supplied...
Comment #40
rv0 CreditAttribution: rv0 commentedsubscribe
as reported in #38, latest dev does not fix issue.
Comment #41
kristiaanvandeneyndeSeeing as there has been no maintainer answer for a week, I'm supplying a patch of my own.
It seems to work just fine for me, although a third party review would be nice.
For reference, the patch changes lines 45 and 46 in calendar/theme/theme.inc to:
Comment #42
flightrisk CreditAttribution: flightrisk commentedHi Karen,
You've disappeared. Busy, Vacation? It looks like while you've been away, a generous contributor has fixed the disappearing view links issue and the issue where clicking the links takes you to the wrong dates and you have to keep manually selecting them again. You mentioned weeks ago changing the links to tabs, have you done anything with that? Thanks.
Fred
Comment #43
presleyd CreditAttribution: presleyd commentedHmmm when applied against the latest dev version this patch doesn't seem to do anything for me. The tabs still don't appear after reverting the view and clearing the cache.
edit: Hmm it is working now after a ctools update I had missed.
edit2: The tabs now appear for me with or without this patch.
Comment #44
kristiaanvandeneynde@presleyd:
The tabs apparently already worked if your base_path() was '/'.
The patch above fixes it for all other SEO friendly paths.
Comment #45
Tobion CreditAttribution: Tobion commentedThe links to the different views do not appear for me too.
I have all the latest dev-versions and cleared the cache and tried patch #41.
Nothing works.
I also have another issue: The "prev" and "next" text is missing for the "year"-view. And the clear pager format option does not work. But only for the year view...
See http://www.kwobadminton.de/kalender/jahr
Comment #46
rwilson0429 CreditAttribution: rwilson0429 commentedsubscribing
Comment #47
TechNikh CreditAttribution: TechNikh commentedI have same issue. I manually made these changes but didn't work
Chaos tools 7.x-1.0-rc1
Date 7.x-2.0-alpha4
Calendar 7.x-3.0-alpha1
Views 7.x-3.0-rc1
Comment #48
flightrisk CreditAttribution: flightrisk commentedSo two months and counting now without a word from a maintainer unless I missed it. This has become "The Drupal Way". For anyone who has seen this working, Did Karen add these as tabs, or are they still just hyperlinks to the different views?
Comment #49
kkuhnen CreditAttribution: kkuhnen commentedsubscribe
Comment #50
peteruithoven CreditAttribution: peteruithoven commentedSubscribe
Comment #51
flightrisk CreditAttribution: flightrisk commentedIt is incredibly frustrating to wait months and have no reply from a maintainer. We realize people have other projects and busy lives and mostly volunteer, but can't Karen or someone at least answer this thread? Thanks.
Comment #52
kristiaanvandeneyndeComment #53
KarenS CreditAttribution: KarenS commentedThey are tabs. If you are not seeing them see if they work in a core theme (maybe it is a theme problem).
I have been spending several hours a day working my issue queues, including nights, weekends, and holidays, and still can't get to everything fast enough to keep people from yelling at me.
I'm trying to get a stable release of Date out the door. Calendar is dependent on that. If I stop and fix Calendar issues Date won't get a release. Calendar is next after that.
Comment #54
flightrisk CreditAttribution: flightrisk commentedDear Karen, It was more pleading, not yelling ;) But sorry for that. I wish I knew the code to your level so I could help. Thanks for all your hard work.
Comment #55
jmoughon CreditAttribution: jmoughon commentedHey I wanted to post how I got around this. I have not really been following the conversation, but I just got it working in a cloned view.
I am using current Dev of Calendar and Date as of this post.
All I did was go to Calendar Settings in each view (Year, Month, Week, & Day) and update the setting to be the corresponding time segment. Update Month even if it displays correctly.
The Links then displayed on my cloned cal view.
Comment #57
KarenS CreditAttribution: KarenS commentedThis was harder than heck to figure out because I couldn't replicate it. I finally was able to replicate it and it turns out to be a problem getting calendar_preprocess_date_views_pager() to be recognized. That function is in a separate file that apparently is not always available. If it is not available when the theme registry is built, the function never gets called. I moved the function into the main calendar.module file to be sure it can always be discovered.
To get this working again you need to pick up my code with the fix (which won't show up in the tarball until perhaps tomorrow), then clear the caches to get the theme registry to rebuild itself.
The commit is: http://drupalcode.org/project/calendar.git/commit/f28124d
Note that I did NOT use any of the patches in this issue.
Comment #59
Brandon_ST CreditAttribution: Brandon_ST commented@flightrisk thanks! This one worked for me (#5)! Was driving me nuts.
Comment #60
mjk3r CreditAttribution: mjk3r commentedIt's clearly not working for me - I have no "Month", "Week", "Day" tabs.
Using:
Drupal Core: 7.22
Date: 7.x-2.6
Calendar: 7.x-3.4
Theme: subtheme of Omega 3
Spent countless hours reading posts and trying to follow each and every possible hint. All have failed.
What I have tried:
- yes - tabs are not there for base themes as well (Bartik)
- opening and saving Calendar settings (suggested by #5 and others)
- rescanning theme (Advanced-> Theme suggested by #28)
- deleting calendar view and rebuilding it again
- none of the patches above are not applicable - to what I understand, the code has been changed since
- always flushing several times
any help - anything at all - would be greatly appreciated
thanks
Comment #61
zkrebs CreditAttribution: zkrebs commentedSame as #60, can't get tabs to show. Please help.
Comment #62
wusel CreditAttribution: wusel commented@ #60 and #61:
My tip:
Delete your calendar and create the new like Step 1 No. 4. from https://drupal.org/node/1477602 (Cookbook: Prepare an Event-Calendar for Drupal 7).
Good luck!
Wusel
Comment #63
akalata CreditAttribution: akalata commentedAnother thing to remember (I'm writing this for me as much as anyone else, because this is the 2nd or 3rd time I've forgotten): If you want to change the path of the view (from /calendar-node-field-date to something like /calendar), you MUST KEEP the month/day/week/year after it. You'll be able to link to just /calendar with the month as default, but without month specified in the path (so the full path of the month display is /calendar/month) the tabs will not show up.
Comment #64
mjk3r CreditAttribution: mjk3r commentedTo: wusel (#62)
Sorry - it just doesn't help. I have done it several times with no success....
Comment #65
mjk3r CreditAttribution: mjk3r commentedTo: akalata (#63)
Tried this :
1. changed the paths to include "../month" and "../week"
2. Cleared caches (twice)
3. No change - "month" and "week" navigation links are not there
Comment #66
arancedisicilia CreditAttribution: arancedisicilia commentedHi everybody.
After a painful hour struggling, I found the answer here: http://success.grownupgeek.com/index.php/2010/07/25/how-add-tab-views/
The (good) article deals with views tabs in general, and it applies for calendar too.
Very easy, the solution is just that all the tabs you want to add MUST share the same base path. It worked immediately wor me!
Comment #67
zkrebs CreditAttribution: zkrebs commentedCan confirm #66 works, thanks. I had to make the path for the default month tab /calendar/month for it to work.
Comment #68
Lumis CreditAttribution: Lumis commentedConfirm #66
One has to set the each path for the Calendar view's display Month, Week, Day, Year in this way:
The tabs show then perfectly
Comment #69
SeanA CreditAttribution: SeanA commentedNo tabs on calendar pages, and none of the fixes here work. Incredibly frustrating.
EDIT: On my custom calendar view, nothing gets the tabs to appear. Just for fun, I created a new calendar view and simply saved it without making any changes. The tabs do appear on this one.
Comment #70
SeanA CreditAttribution: SeanA commentedI was able to customize the newly created view and the tabs are still working. No idea why they disappeared on the original view and refused to come back. The solution in certain instances where this occurs seems to be to delete the view and make a new one.
Comment #71
BeWhy CreditAttribution: BeWhy commentedJust in case anyone goes hunting for this like I did.
I had admin_menu installed and set the tabs to show up in the menu bar. So the tabs were 'missing' when I went to the page as a logged in user with menu access, but they worked when logged out.
Comment #72
merrizervas CreditAttribution: merrizervas commentedNone of these patches worked for me, I'd suggest just remaking the view as well