Warning: The magic method WPM_…::__wakeup() must have public visibility in …
-
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 49I 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/.
- The topic ‘Warning: The magic method WPM_…::__wakeup() must have public visibility in …’ is closed to new replies.