- Issue created by @xurizaemon
- ๐ฎ๐ณIndia sarwan_verma
Hi @xurizaemon,
I have fixed this issue calendar_link() fails silently if date is string but can't be parsed and attached patch,
please review and verify. - ๐บ๐ธUnited States SiliconValet
Fixed missing closing bracket and formatting.
- Status changed to Needs review
about 1 year ago 10:33pm 2 November 2023 - last update
about 1 year ago 1 fail - last update
about 1 year ago PHPLint Failed The last submitted patch, 3: calendar-link-fails-silently-if-date-is-string-but-can-t-be-parsed--3.patch, failed testing. View results โ
- Status changed to RTBC
9 months ago 2:12pm 5 April 2024 - ๐บ๐ธUnited States dmudie
Is there a plan to merge this since it's RTBC?
- Status changed to Needs work
4 months ago 2:44pm 26 August 2024 - ๐บ๐ธUnited States wells Seattle, WA
Sorry for the delay -- two things would really help me move this along:
- A separate issue to fix existing tests. I haven't had the time to address this directly, an MR would be hugely helpful.
- Tests added with this issue (essentially a test proving we no longer fail silently for unparsable date strings).
- ๐จ๐ฆCanada joseph.olstad
joseph.olstad โ made their first commit to this issueโs fork.
- ๐จ๐ฆCanada joseph.olstad
Patch 2 removes the closing bracket for the class.
- ๐ฎ๐ณIndia akulsaxena
The Patch removes the closing bracket for the class as suggested.
- Merge request !11Issue #3392784 by joseph.olstad, sarwan_verma, siliconvalet, doxigo,... โ (Merged) created by joseph.olstad
- ๐จ๐ฆCanada joseph.olstad
MR patch applies cleanly, unlike patch #2
https://git.drupalcode.org/project/calendar_link/-/merge_requests/11.patch - ๐จ๐ฆCanada joseph.olstad
This patch:
is identical to the MR patch:
https://git.drupalcode.org/project/calendar_link/-/merge_requests/11.patch
- ๐จ๐ฆCanada joseph.olstad
Needs work because the href no longer comes out
data:text/calendar;
Drupal 10.3.x has busted something somehow or some twig/twig upgrade broke something.
not sure
With that said, patch 17 or MR11 fixes the WSOD problemI'm still investigating the rest
- ๐จ๐ฆCanada joseph.olstad
- ๐จ๐ฆCanada joseph.olstad
Ok, some good news, patch #20 works, but only if upgrading to a recent minor release of PHP.
For example, if you are running PHP 8.1.16 with Drupal 10.3, for the calendar_link module to work correctly you must upgrade to PHP 8.1.29 or newer.
If you want to use PHP 8.1.16 successfully in my use case you have to downgrade to Drupal 10.2.
So therefore, I recommend that folks upgrade their minor releases of PHP.
I would imagine it would be similar fix in PHP 8.2 and PHP 8.3, there was some patch release update in PHP that is required by Drupal 10.3+ / Drupal 11+
- ๐บ๐ธUnited States wells Seattle, WA
Interesting... thanks for digging this up, @joseph.olstad. I'd still like us to get a test added before we finalize.
Technically the 3.x branch still supports Drupal 9 and doesn't pin itself to Drupal 10.3+. Should we also drop Drupal 9 and raise 10.x min to 10.3?
And should we call ๐ When " All day" is checked the page will not render. I get a TypeError: get_class(): Argument #1 ($object) must be of type object, null given in get_class (line 268 of modules/contrib/calendar_link/src/Twig/CalendarLinkTwigExtension.php). Active ? Comment #4 over there basically makes this RTBC (before the test and version constraint considerations).
- ๐จ๐ฆCanada joseph.olstad
the mentioned PHP bug doesn't seem to affect previous releases of Drupal core.
For those using Drupal 10.3+ they should upgrade their PHP to the latest patch level. I upgraded mine to 8.1.31
I tested the following php releases:8.1.31
8.1.29
8.1.26
8.1.22These above releases all worked correctly with Drupal 10.3.6 with calendar_link 3.0.3 using the above patch and my Add to calendar button produced an .ics file.
8.1.16 did not work correctly, in my case the "Add to calendar" button did not produce an .ics file
In our case our "Add to calendar" button was created with twig in a view using the calendar_link module api.
- ๐จ๐ฆCanada joseph.olstad
I just linked two duplicate reported issues, set this issue as their parent.
The duplicate related issues are both fixed by patch #20
and
๐ Drupal 10.3.10 seems to break this... Active
- ๐จ๐ฆCanada joseph.olstad
This module is currently in an unusable broken state when running Drupal 10.3+ without patch #20
- ๐จ๐ฆCanada joseph.olstad
increasing priority since it's a fatal error and unusable without the patch on a currently supported Drupal release.
-
wells โ
committed 719013af on 3.0.x authored by
joseph.olstad โ
Issue #3392784 by joseph.olstad, siliconvalet, sarwan_verma, wells,...
-
wells โ
committed 719013af on 3.0.x authored by
joseph.olstad โ