PHP 8 deprecation error

Created on 31 May 2023, over 1 year ago
Updated 28 March 2024, 8 months ago

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.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom robcarr Perthshire, Scotland

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

Comments & Activities

Production build 0.71.5 2024