PHP8 compatibility
-
Upon attempting to update my site from PHP7.4 to PHP8.0, I got an error on line 455 of the file localendar.php. It was a graceful error…the site didn’t crash, the only issue was the calendar stopped appearing.
By Googling for the error, I found what I believe is the proper syntax to update this. By modifying the single line of code, I have successfully upgraded to 8.0 and the calendar is still appearing on the site.
I thought I’d share this here in the event someone else is looking for a solution. No guarantees, but it seems to have worked for me.
The new line 455:
$calendar = (new TGM_Localendar_Widget())->build_calendar( $username, $type, $style, $hide_events, $link_text, $iframe_width, $iframe_height, $query, $bg_events, $bg_balloon );
- The topic ‘PHP8 compatibility’ is closed to new replies.