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

mattrock’s picture

Also getting the same error.

ceejayoz’s picture

I, too, am getting this error.

drupalet’s picture

Me too

karens’s picture

Status: Active » Postponed (maintainer needs more info)

I 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.

fm’s picture

I 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.

fm’s picture

Status: Postponed (maintainer needs more info) » Active
izaak’s picture

Strange, 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:

the 4th argument isn't part of the hook, but we use it to differentiate when called as a hook or when called manually from calendar_ical_views_post_view

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.

clairecheng’s picture

As I followed the solution of izzak, I've solved the problem! ThX!!!

misterlawrence’s picture

I 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!

izaak’s picture

misterlawrence: changing the function definition as I described seems to actually *fix* it.

misterlawrence’s picture

izaak: 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!

misterlawrence’s picture

Ok...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!

misterlawrence’s picture

It worked! Thanks izaak!

JuliaKM’s picture

Thanks izaak. Adding "= null" solved the problem for me too.

karens’s picture

karens’s picture

Status: Active » Fixed

Yes Izaak has the right fix. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)