Created on 15 November 2021, about 3 years ago
Updated 6 December 2024, 12 days ago

Problem/Motivation

version 2.1.1 giving WSOD when calling calender_link() inside views global:custom text field twig, Here is the drupal log error:
Drupal\calendar_link\CalendarLinkException: Could not get valid string from input. in Drupal\calendar_link\Twig\CalendarLinkTwigExtension->getString() (line 204 of /mnt/www/html/sitecom/docroot/modules/contrib/calendar_link/src/Twig/CalendarLinkTwigExtension.php).

Steps to reproduce

Place this code in the Global: custom text field in view(page).
{% set link = calendar_link('ics', title, date(field_event_dates_1), date(field_event_dates_2), FALSE, field_event_city) %}
or
{% set link = calendar_link('ics', 'testing title', date('Dec 16, 2021'), date('Dec 17, 2021'), FALSE, 'testing description', 'houston') %}
<div class="myCal" data="{{ link }}">Add to Calendar</div>

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bakulahluwalia Houston

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024