TypeError: Argument 1 passed to _calendar_view_convert_to_timestamp() must be an instance of mixed, string given, called in /data/www/www2/modules/contrib/calendar_view/src/Plugin/views/style/Calendar.php on line 537

Created on 13 February 2023, over 2 years ago
Updated 17 February 2023, over 2 years ago

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

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Status changed to Postponed: needs info over 2 years ago
  • 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'

  • 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

  • 🇩🇪Germany ab_connor

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

  • Status changed to Fixed over 2 years ago
  • 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.

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

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

Production build 0.71.5 2024