• Resolved beka47

    (@beka47)


    Latest WP-version, latest Tribe-version on PHP 8.0.8 (July 17, 2021)

    Similar to Compatibility with PHP 8+ #1527
    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

    (@beka47)

    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?

    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

    (@beka47)

    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.

    Hi @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 masoodak

    (@masoodak)

    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.