One of my web sites was unable to load, so I decided to fix it while waiting for the response of the support.
First step is to diagnose and find the problem.
Open the wp-config.php file
Your web hosting account > cPanel > file manager > public.html >mydomain.com> wp-config.php
And change
- define( ’WP_DEBUG’, false );
to:
- define( ’WP_DEBUG’, true );
This turns on debugging mode. Then the error messages will be shown on the page. Turn it of again after fixing the problems.
First problem was that Function create_function() is deprecated in public_html/mydomain.com/wp-content/plugins/LayerSlider/wp/widgets.php
The solution is to change create_function() with {}
add_action( 'widgets_init', create_function( '', 'register_widget("layerslider_widget");' ) );
to
add_action( 'widgets_init', function() {
register_widget("layerslider_widget");
} );
There were two more deprecated functions, but the support was quick and fixed them before me.
How to fix common WordPress errors