_register_controls is deprecated since version 3.1.0! – WordPress error

featured image error

Since WordPress has been reaching version 6 now, you experience errors when you are using it for a while, especially after an upgrade. For example,

Notice: _register_controls is deprecated since version 3.1.0! Use Elementor\Controls_Stack::register_controls() instead. in /home/ohbyxzoc/public_html/wp-includes/functions.php on line 5314

If you see any WordPress error, first of all, DON’T panic. We should set the debug mode to true to show the full details first.

1. Edit the file in /root_web_folder/wp-config.php
2. Find and change

define( ‘WP_DEBUG’, false );


define( ‘WP_DEBUG’, true );

Then copy your error to Google to search for solution. You may not get the solution in the first Google result. You may need to look for a couple of results before you can solve the problem.

For this example error, I found the solution in https://github.com/elementor/elementor/issues/17580

The plugin author should to replace the _register_controls() method with register_controls() removing the _ prefix (this was changed in Elementor 3.1.0).

So you just need to find the function in the file and change to the new function name and problem solved.