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.

Comments

robcarr created an issue. See original summary.

very_random_man’s picture

Can confirm this fix works although it was line 408 for me.

heddn’s picture

The fix for this is also over in #3395659: Drupal 10 compatibility. If it gets fixed there first, then this can be closed duplicate.

gmoraleb’s picture

This fix works for me, however it was line 189.

aid_ua’s picture

Assigned: Unassigned » aid_ua
Status: Needs review » Needs work
StatusFileSize
new544 bytes

Fixed Drupal CS. Now it looks good for me.

aid_ua’s picture

Assigned: aid_ua » Unassigned
wylbur’s picture

Assigned: Unassigned » wylbur

Since this is Drupal 7, it will not get fixed as part of D10 compatibility ticket.

sickness29’s picture

StatusFileSize
new556 bytes

Reroll of the patch for 2.x-dev

dcam’s picture

Status: Needs work » Closed (outdated)

I'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.