Title: PHP8 compatibility
Last modified: December 27, 2022

---

# PHP8 compatibility

 *  [Matt Scheidler](https://wordpress.org/support/users/matt6303/)
 * (@matt6303)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php8-compatibility-22/)
 * 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:
 *     ```wp-block-code
       $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.

 * ![](https://ps.w.org/localendar-for-wordpress/assets/icon-128x128.jpg?rev=1159823)
 * [Localendar Calendar for WordPress](https://wordpress.org/plugins/localendar-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/localendar-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/localendar-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/localendar-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/localendar-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/localendar-for-wordpress/reviews/)

## Tags

 * [localendar](https://wordpress.org/support/topic-tag/localendar/)

 * 0 replies
 * 1 participant
 * Last reply from: [Matt Scheidler](https://wordpress.org/support/users/matt6303/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/php8-compatibility-22/)
 * Status: not a support question