• Resolved sankari

    (@sankari)


    On some websites using WP Munich Blocks plugin those warnings appear:

    Warning: The magic method WPM_Blocks::__wakeup() must have public visibility in /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/wp-munich-blocks/inc/class-wpm-blocks.php on line 49

    Warning: The magic method WPM_Image_Filter::__wakeup() must have public visibility in /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/wp-munich-blocks/inc/class-wpm-image-filter.php on line 41

    Warning: The magic method WPM_Footer_Styles::__wakeup() must have public visibility in /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/wp-munich-blocks/inc/class-wpm-footer-styles.php on line 47

    Warning: The magic method WPM_Theme_Compatibility::__wakeup() must have public visibility in /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/wp-munich-blocks/theme-compatibility/class-wpm-theme-compatibility.php on line 49

    I guess, as a quick fix, the issue can be solved by replacing:

    protected function __wakeup() {}

    …in the mentioned files and lines by:

    public function __wakeup() {}

    …as suggested here https://wordpress.org/support/topic/php-8-0-warning-__wakeup-must-have-public-visibility/.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Hendrik Luehrsen

    (@luehrsen)

    Hey @sankari,

    thank you for bringing our attention to this! This is indeed a very old plugin and not actively maintained by us anymore.

    But this issue was so quickly to resolve, that we actually pushed an update for that.

    Best,
    Hendrik

    Thread Starter sankari

    (@sankari)

    My pleasure and thank you for your exceptional effort!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: The magic method WPM_…::__wakeup() must have public visibility in …’ is closed to new replies.