
Problem/Motivation
Since moving site to a PHP 8.1 am getting the following error:
Deprecated function: file_get_contents(): Passing null to parameter #2 ($use_include_path) of type bool is deprecated in fullcalendar_get_version() (line 386 of modules/fullcalendar/fullcalendar.module).
Proposed resolution
Change line 386 of fullcalendar.module from:
$fullcalendar_plugin = file_get_contents($fullcalendar_path, NULL, NULL, 0, 40);
to:
$fullcalendar_plugin = file_get_contents($fullcalendar_path, false, NULL, 0, 40);
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#8 | fullcalendar-php8-deprecation-3363828-8.patch | 556 bytes | sickness29 |
#5 | fullcalendar-php8-deprecation-3363828-5.patch | 544 bytes | aid_ua |
fullcalendar-php8-deprecation.patch | 545 bytes | robcarr |
Comments
Comment #2
very_random_man CreditAttribution: very_random_man as a volunteer commentedCan confirm this fix works although it was line 408 for me.
Comment #3
heddnThe fix for this is also over in #3395659: Drupal 10 compatibility. If it gets fixed there first, then this can be closed duplicate.
Comment #4
gmoraleb CreditAttribution: gmoraleb at NTT DATA commentedThis fix works for me, however it was line 189.
Comment #5
aid_ua CreditAttribution: aid_ua as a volunteer and at DevBranch, Drupal Ukraine Community commentedFixed Drupal CS. Now it looks good for me.
Comment #6
aid_ua CreditAttribution: aid_ua as a volunteer and at DevBranch, Drupal Ukraine Community commentedComment #7
wylbur CreditAttribution: wylbur at Electric Citizen commentedSince this is Drupal 7, it will not get fixed as part of D10 compatibility ticket.
Comment #8
sickness29 CreditAttribution: sickness29 at DevBranch commentedReroll of the patch for 2.x-dev
Comment #9
dcam CreditAttribution: dcam as a volunteer commentedI've volunteered to help clean up the FullCalendar issue queue. As part of that effort I'm closing issues open for unsupported versions of the module as "Closed (outdated)". That includes any Drupal 7-compatible versions because no active maintainer is supporting them.
If this issue is still relevant for version 3.x of FullCalendar, then feel free to re-open it and update the issue version number.