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 >> wp-config.php

And change

  • define( ’WP_DEBUG’, false );


  • 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/

The solution is to change create_function() with {}

add_action( 'widgets_init', create_function( '', 'register_widget("layerslider_widget");' ) );


add_action( 'widgets_init', function() {
} );

There were two more deprecated functions, but the support was quick and fixed them before me.

How to fix common WordPress errors

Leave a Reply

Your email address will not be published. Required fields are marked *