Closed (fixed)
Project:
Calendar
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2007 at 15:03 UTC
Updated:
20 Oct 2007 at 13:21 UTC
Getting the following error on the default frontpage view with Calendar iCal enabled:
warning: Missing argument 4 for calendar_ical_views_feed_argument() in /var/www/html/rosalindkurita.com/html/modules/calendar/calendar_ical.module on line 316.
Comments
Comment #1
mattrock commentedAlso getting the same error.
Comment #2
ceejayoz commentedI, too, am getting this error.
Comment #3
drupalet commentedMe too
Comment #4
karens commentedI just can't replicate this -- everything works fine for me with latest dev versions of everything, so:
1) Make sure you have latest versions of Date, Calendar, and Views
2) Turn off all calendar blocks and see if the problem goes away (maybe the error is actually from one of the blocks)
3) If it is a block, try to figure out which one causes the problem, then paste an export of that view in here.
Comment #5
fm commentedI see this warning when I pull up "Frontpage" from the view module's default views. It hasn't appeared on any other page for me so far.
Comment #6
fm commentedComment #7
izaak commentedStrange, I wasn't seeing this error before, but *I think* it started surfacing after I upgraded Date to 1.6 from the previous release (1.5?) and Views to 1.6 final from a 1.6 beta. I could be mistaken.
However it only appears for my views which have a 'Node: feed selector' argument (set to 'display all values' by default). Taking that argument off suppresses the error.
In the description of calendar_ical_views_feed_argument() I found this note:
In that case, going on intuition, shouldn't the function definition be:
function calendar_ical_views_feed_argument($op, &$view, $arg, $argtype = null) {instead of:
function calendar_ical_views_feed_argument($op, &$view, $arg, $argtype) {PS: 5.x-1.6 is missing from the Version pull-down in these these bug report forms.
Comment #8
clairecheng commentedAs I followed the solution of izzak, I've solved the problem! ThX!!!
Comment #9
misterlawrence commentedI get this error too.
Rather than deleting the Node: feed selector' argument from my frontpage view (as izaak suggested), I decided to deactivate the Calendar iCal module. In my case, I would rather that my users be able to have RSS feeds of my frontpage, and I can live with them not having iCal functionality.
I would LOVE to have both though. If the module can be fixed, it would be wonderful!
Comment #10
izaak commentedmisterlawrence: changing the function definition as I described seems to actually *fix* it.
Comment #11
misterlawrence commentedizaak: Thanks for your note. I must have read your post too quickly. I thought your suggestion was simply to turn off RSS for the frontpage, but now I see that you are suggesting editing the function definition.
I'm still quite new at this: can you clarify for me where I will find the "function definition" to change? Thanks!
Comment #12
misterlawrence commentedOk...I'm taking a flyer on this and guessing that I find and replace the text in calendar_ical.module. I'm new at this, but this feels right to me. If it breaks, I'll just restore. Here goes nothing!
Comment #13
misterlawrence commentedIt worked! Thanks izaak!
Comment #14
JuliaKM commentedThanks izaak. Adding "= null" solved the problem for me too.
Comment #15
karens commentedAlso reported at http://drupal.org/node/157553.
Comment #16
karens commentedYes Izaak has the right fix. Thanks!
Comment #17
(not verified) commented