Find Answers and Get Support › Forums › Cera – Intranet & Community Theme › Website Setup › Homepage › Warning Merlin_Logger::__wakeup() must have public visibility
- This topic has 1 reply, 2 voices, and was last updated 2 years ago by
Manathan.
-
AuthorPosts
-
JonathanParticipant@emjay
- 1 Topics
- 1 Posts
Hi, there are multiple warnings in my back- and frontend:
I guess you just have to change the function to public, please update this. Thanks
Warning: The magic method Merlin_Logger::__wakeup() must have public visibility in /www/htdocs/w01c992e/intranet.global-energy-solutions.net/wp-content/themes/cera/libs/merlin/includes/class-merlin-logger.php on line 194
Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w01c992e/intranet.global-energy-solutions.net/wp-content/themes/cera/libs/merlin/includes/class-merlin-logger.php:194) in /www/htdocs/w01c992e/intranet.global-energy-solutions.net/wp-admin/includes/misc.php on line 1416
Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w01c992e/intranet.global-energy-solutions.net/wp-content/themes/cera/libs/merlin/includes/class-merlin-logger.php:194) in /www/htdocs/w01c992e/intranet.global-energy-solutions.net/wp-includes/functions.php on line 6865
Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w01c992e/intranet.global-energy-solutions.net/wp-content/themes/cera/libs/merlin/includes/class-merlin-logger.php:194) in /www/htdocs/w01c992e/intranet.global-energy-solutions.net/wp-admin/admin-header.php on line 9
January 27, 2023 at 13:04 #44000@themodactyl- 0 Topics
- 6690 Posts
Hi Jonathan,
Thank you for buying our theme. We hope it will meet all your expectations! 🙂
These messages are PHP warnings, not errors. Unlike errors, warnings won’t break your website. They’re just messages aimed at developers to improve their code. By default, WordPress displays the warnings in the header, which prevent our setup wizard from launching successfully.
In most case, hiding these messages will solve this issue. I suggest that you activate error logging on your website. Please keep WP_DEBUG to true and just paste the following code lines in your wp-config.php file, just before the line that says ‘That’s all, stop editing! Happy blogging.’:
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );
More on this in the following topic: https://codex.wordpress.org/Debugging_in_WordPress
You will still be able to consult the warnings and errors triggered by your website but these won’t appear on your pages anymore.
Regards,
January 30, 2023 at 10:25 #44016 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘Warning Merlin_Logger::__wakeup() must have public visibility’ is closed to new replies.