Deprecated issue in WordPress

I am new in WordPress Development. I updated version of my WordPress site to 4.6.1. Then I found this error in debug.log

Notice: The called constructor method for WP_Widget in C_Widget_Gallery is deprecated since version 4.3.0! Use
__construct()
instead. in /home/spslive/public_html/wp-includes/functions.php on line 3767

I tried to find out C_Widget_Gallery in functions.php. But could not find it out.

What is the remedy of this Notice ??

Topic deprecation notices errors Wordpress

Category Web


First find C_Widget_Gallery widget code. Search all the theme directory first. Specially any *.php file with -widget name part. It can also be initiated by a plugin. So search in the plugin directory if you don't find it in themes directory.

Then find $this->WP_Widget inside the class and replace only just it with parent::__construct. And it will be fixed.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.