Hi,

After adding event date to the filters i started getting this error
TypeError: Argument 1 passed to _calendar_view_convert_to_timestamp() must be an instance of mixed, string given, called in /modules/contrib/calendar_view/src/Plugin/views/style/Calendar.php on line 537
Also if i want to display the page same happens. Drupal 9.5.2.

Regards,

Nino

Comments

orcalator created an issue. See original summary.

matthieuscarset’s picture

Status: Active » Postponed (maintainer needs more info)

Thank you for reporting this issue.

Can you double check you are using the latest version of this module?

I think you're on an old release with a known bug, already fixed.

composer require 'drupal/calendar_view:^2.0'

or using the dev branch:

composer require 'drupal/calendar_view:dev-2.0.x'

orcalator’s picture

Hi matthieuscarset,

I already saw your patch for that bug, but i got this on 2.0.2 and now on 2.0.4 version too. I also notice this error:

TypeError: Argument 1 passed to Drupal\\calendar_view\\Plugin\\views\\style\\Calendar::isDateField() must be an instance of Drupal\\calendar_view\\Plugin\\views\\style\\mixed, instance of Drupal\\views\\Plugin\\views\\field\\EntityField given, called in /modules/contrib/calendar_view/src/Plugin/views/style/Calendar.php on line 142

when i click on "Settings" right of "Calendar" in Format section of the view.

Regards,

Nino

ab_connor’s picture

I can confirm this error. No calendar view possible. Using calendar_view 2.0.4 and Drupal 9.5.3.

matthieuscarset’s picture

Status: Postponed (maintainer needs more info) » Fixed

Oh okay I see, there are unnecessary mixed pseudo type set in those functions' arguments.

It is fixed in 2.0.5 freshly released.

Thank you very much for reporting the issue.

orcalator’s picture

This is now solved, thank you. Now i have another one, so i'll open a new thread :-)

Status: Fixed » Closed (fixed)

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