Title: Compat with PHP-8
Last modified: July 17, 2021

---

# Compat with PHP-8

 *  Resolved [beka47](https://wordpress.org/support/users/beka47/)
 * (@beka47)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/compat-with-php-8/)
 * Latest WP-version, latest Tribe-version on PHP 8.0.8 (July 17, 2021)
 * Similar to [Compatibility with PHP 8+ #1527](https://github.com/the-events-calendar/tribe-common/pull/1527/commits/f8aa141dc3e23db254eb64a09dd2dee9db57b663)
   
   but caused by the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php (__clone
   and __wakeup())
 * I’ll get the following Warnigs:
 *     ```
       Warning: Private methods cannot be final as they are never overridden by other classes in /is/htdocs/.../wp-content/plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php on line 127
   
       Warning: Private methods cannot be final as they are never overridden by other classes in /is/htdocs/.../wp-content/plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php on line 140
   
       Warning: The magic method Tribe__Plugin_Meta_Links::__wakeup() must have public visibility in /is/htdocs/.../wp-content/plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php on line 140
   
       Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/.../wp-content/plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php:127) in /is/htdocs/.../wp-includes/functions.php on line 6362
   
       Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/.../wp-content/plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php:127) in /is/htdocs/.../wp-admin/includes/misc.php on line 1310
   
       Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/.../wp-content/plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php:127) in /is/htdocs/.../wp-admin/admin-header.php on line 9
       ```
   
 * Remove ‘final’ on both methods for a quick fix.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [beka47](https://wordpress.org/support/users/beka47/)
 * (@beka47)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/compat-with-php-8/#post-14796329)
 * WP 5.8, The Events Calendar, Version 5.8.2, **PHP Version 8.0.8**
 * I still get the following warnings with PHP 8+. If I change the ‘Private’ method
   in ‘Plugin_Meta_Links.php’ all warnings are gone!
 *     ```
       Warning: Private methods cannot be final as they are never overridden by other classes in /.../plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php on line 127
   
       Warning: The magic method Tribe__Plugin_Meta_Links::__wakeup() must have public visibility in /...(plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php on line 140
   
       Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/wp12214530_SSJU8CL5HJ/alcomet_dev/wp8/wp-content/plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php:127) in /.../wp-includes/functions.php on line 6584
   
       Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/wp12214530_SSJU8CL5HJ/alcomet_dev/wp8/wp-content/plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php:127) in /.../wp-admin/includes/misc.php on line 1310
   
       Warning: Cannot modify header information - headers already sent by (output started at /is/htdocs/wp12214530_SSJU8CL5HJ/alcomet_dev/wp8/wp-content/plugins/the-events-calendar/common/src/Tribe/Plugin_Meta_Links.php:127) in /.../wp-admin/admin-header.php on line 9
       ```
   
 * **Any timetable to fix the PHP-8 problem?**
 *  [Marho](https://wordpress.org/support/users/matumu/)
 * (@matumu)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/compat-with-php-8/#post-14936106)
 * Hi there,
 * Thanks for reaching out, and my apologies for the delayed response.
 * We’ve released a few updates since you reported this issue. Can you please install
   them and check to see if you still get this warning message?
 * Best regards,
 * Marho
 *  Thread Starter [beka47](https://wordpress.org/support/users/beka47/)
 * (@beka47)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/compat-with-php-8/#post-14936700)
 * thanx for yr answer.
    Tested again with WP-5.8.1, Event-Calendar: 5.9.1 I still
   get the notice: `Warning: Private methods cannot be final as they are never overridden
   by other classes...` pointig to the methods ‘__clone()’ and ‘__wakeup()’ in “/
   common/src/Tribe/Plugin_Meta_Links.php”.
 * If I replace `final private function...` with `public function...` everything
   works fine.
 *  [Marho](https://wordpress.org/support/users/matumu/)
 * (@matumu)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/compat-with-php-8/#post-14939450)
 * Hi [@beka47](https://wordpress.org/support/users/beka47/),
 * Thanks for getting back to me and confirming this.
 * I’ll pass this information along to the dev team to see if they can implement
   a fix in our future release for the plugin.
 * Best regards,
 * Marho
 *  Plugin Support [Masood](https://wordpress.org/support/users/masoodak/)
 * (@masoodak)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/compat-with-php-8/#post-15037980)
 * Hi there,
 * This thread has been pretty quiet for a while, so we’re going to go ahead and
   close it. If you’re still looking for help with this, please do open a new thread,
   reference this one and we’d be more than happy to continue the conversation over
   there.
 * Have a great day.
 * Kind regards,
    Masood

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Compat with PHP-8’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Masood](https://wordpress.org/support/users/masoodak/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/compat-with-php-8/#post-15037980)
 * Status: resolved