After upgrading from version 1.4 to 1.5, I got this error when the view using the range filter was displayed:

Recoverable fatal error: Argument 3 passed to contextual_range_filter_build_range_query() must be an instance of callable, array given, called in ../sites/all/modules/contextual_range_filter/views/contextual_range_filter_handler_argument_date_range.inc on line 108 and defined in contextual_range_filter_build_range_query() (line 79 of ../sites/all/modules/contextual_range_filter/views/contextual_range_filter.views.inc).

I worked around this by reinstalling version 1.4.

Comments

rdeboer’s picture

Hi melvix,
Thanks so much for your report.
I will look at this as matter of urgency.

Can you please tell me what version of PHP you're running? You can find it on your site's admin/reports/status page.

This must have happened when you used a date filter, right? You should be able to get rid of the error by UNTICKING a new box "Allow relative date ranges", which is in the "More" section of the Date's contextual filter configuration panel in Views.

RIk

melvix’s picture

My php version: 5.3.10

Yes - I am using a contextual filter on node.created.

rdeboer’s picture

Thanks so much! I may have used a PHP feature available from 5.4.x, rather than 5.3.10 -- will investigate.

rdeboer’s picture

Ok -- I think I've fixed it. Don't have PHP 5.3.10 handy though....
Could you please try the latest version from the repository? Or wait 8 hours for the 7.x-1.x-dev snapshot to be generated?
Cheers!
Rik

PS: as I mentioned... you can also simply untick that "Allow relative dates" checkbox -- that should do it as well.

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Active » Fixed

Fixed with 7.x-1.6

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.