Support Forums for LiveMesh Themes & Plugins › Forums › Invent Theme Support › WP_WIDGET is deprecated since vs.4.3.0
- This topic has 19 replies, 3 voices, and was last updated 10 years, 5 months ago by
Veena.
-
AuthorPosts
-
August 31, 2015 at 6:43 am #16224
lyngoclinh
MemberDear Admin,
I meet a problem that when I login, it shows:“Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /home1/duhocwor/public_html/wp-includes/functions.php on line 3457”Do you know any solution to this problem?
Thanks in advanceAugust 31, 2015 at 6:44 am #16225lyngoclinh
MemberThis reply has been marked as private.August 31, 2015 at 8:07 am #16231Veena
ModeratorYou can resolve it by adding the following code to framework/widgets/mo-widget.php file at line 20 –
public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) { parent::__construct( $id_base, $name, $widget_options, $control_options ); }September 1, 2015 at 1:53 am #16253lyngoclinh
MemberThanks so much. But how can I add it when /wp-admin is a blank space?
September 1, 2015 at 6:09 am #16257Veena
ModeratorCould you be more specific, please?
September 3, 2015 at 2:08 am #16303lyngoclinh
MemberSorry, I’m new on IT and I just don’t knoew where to add your code?
September 3, 2015 at 7:20 am #16310Veena
ModeratorYou need to access themefiles.
Pls go to the folder framework -> open widgets folder -> pls find the file mo-widget.php and insert the above given code (copy paste) at line no:20 in file mo-widget.php and see if that helps.September 21, 2015 at 4:11 am #16585lyngoclinh
MemberI tried and I couldn’t acess host. Can you recover my webiste on the day before the problem ocurrs?
September 21, 2015 at 11:03 am #16589Veena
ModeratorPls share a valid temp login details with admin rights.
September 22, 2015 at 3:05 am #16601lyngoclinh
MemberThis reply has been marked as private.September 22, 2015 at 6:40 am #16606Veena
ModeratorI tried multiple times to connect FTP but hitting the same error –
Error: Connection timed out after 20 seconds of inactivity Error: Failed to retrieve directory listing
Can you pls share a temp login to your wordpress site here as a private reply?
September 22, 2015 at 7:15 am #16608lyngoclinh
MemberThis reply has been marked as private.September 22, 2015 at 11:06 am #16611Raghavendra
ModeratorAn theme update is being submitted in next few hours which will take care of this issue. Pls wait. Until then, pls set WP_DEBUG to false in wp-config.php.
September 22, 2015 at 12:56 pm #16620Raghavendra
ModeratorIf you need this urgently while the update gets submitted and then approved, pls replace the file framework/widgets/mo-widget.php file with the one attached with this post.
Unzip the file and you should see the PHP file with updated code to remove the notice.
September 24, 2015 at 2:24 am #16650lyngoclinh
MemberSorry, but I cant connect FTP to do your step. Do you have any solution?
-
AuthorPosts
- The forum ‘Invent Theme Support’ is closed to new topics and replies.