Viewing 14 replies - 16 through 29 (of 29 total)
  • Just tried to just post a regular blog update with only text. When I pressed post I got this message:

    instead. in /customers/3/a/e/drawmoorepictures.com/httpd.www/wp-includes/functions.php on line 3457 Warning: Cannot modify header information - headers already sent by (output started at /customers/3/a/e/drawmoorepictures.com/httpd.www/wp-includes/functions.php:3457) in /customers/3/a/e/drawmoorepictures.com/httpd.www/wp-admin/post.php on line 242 Warning: Cannot modify header information - headers already sent by (output started at /customers/3/a/e/drawmoorepictures.com/httpd.www/wp-includes/functions.php:3457) in /customers/3/a/e/drawmoorepictures.com/httpd.www/wp-includes/pluggable.php on line 1207

    The post did update on the site, but I still can’t update my comic and I got a really important deadline to meet today! Please, I anyone have a solution, post it here or e-mail me at [moderated]

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You don’t need to ask people to email you. Just click on the “Subscribe to Topic” link in the right hand side of this page and then it will email you when someone replies.

    now its asking me to repeatedly install wordpress using the ‘wonderful five minute installation’?

    awesome stuff, wordpress, way to go…

    oh, and deleting the comments…very big of you

    I ran into this error with a thematic child theme I am working on. The fix for thematic is to go to thematic/library/extentions/widgets.php and change the call to the WP_Widget() constructor to __construct().

    Hey guys. I’m also getting the same error here.

    I’m using Canvas theme. Already deactivated all of my plugins, and switched themes, which still produces the error.

    Where exactly do I change to _construct()?

    Where do I find wp-includes/functions.php on line 3457 LINE 3457 to make the change.

    Thanks guys!

    The error is not at line 3457 that is just where the deprecated warning is displayed. The place to change WP_Widget() to __construct() is in your theme or plugin. I found mine in :
    wordpress/wp-content/themes/thematic/library/extentions/widgets.php

    but it will depend on where the WP_Widget object is located in your php code.

    What’s the best way to track down which file it is located in?

    Trial and error till I find WP_Widget()?

    Hi everyone,

    I too have just encountered the message in question ( Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() having updated wordpress.

    I’m using a theme called Divi (Elegant Themes) so is anyone able to tell me exactly where to go to get rid of this message? It’s showing up repeatedly on every page of the site I’m working on.

    I’m not a coder, by the way, just a theme user.

    Thanks for any help. I’m really surprised that wordpress include an update result that isn’t easy for laymen such as myself to rectify. Or is it easy and I just don’t realise?

    Thanks

    Tony

    It depends on your operating system and/or web server. I am able to use ssh on my web server and it is running Linux so I go to the themes directory under wp-content and do a command line search as follows:

    find . -type f -exec grep WP_Widget \{\} \; -print;

    This will only work in Linux/Unix. If you use Windows and have access to the web server you can use the windows file content search to find “WP_Widget” in the above mentioned directory.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @tonyoliver, Your best bet is to contact Elegant Themes. They will be able to guide you. As you’re their customer, I’m sure they can support you.

    Thanks for your help, everyone. I’ll try as jdcharlton suggests and also contact Elegant Themes, Andrew, to see what they say.

    Much appreciated

    Tony

    Hi @cyprianr,
    For your Canvas theme, there are seven files you need to edit to clear that error:
    1. wp-content/themes/canvas/includes/widgets/widget-woo-adspace.php

    Find

    [commercial theme code removed]

    And Replace with

    [commercial theme code removed]

    2. wp-content/themes/canvas/includes/widgets/widget-woo-blogauthor.php
    Find

    [commercial theme code removed]

    And Replace with

    [commercial theme code removed]

    3. wp-content/themes/canvas/includes/widgets/widget-woo-component.php
    Find

    [commercial theme code removed]

    And Replace with

    [commercial theme code removed]

    4. wp-content/themes/canvas/includes/widgets/widget-woo-embed.php
    Find

    [commercial theme code removed]

    And Replace with

    [commercial theme code removed]

    5. wp-content/themes/canvas/includes/widgets/widget-woo-flickr.php
    Find

    [commercial theme code removed]

    And Replace with

    [commercial theme code removed]

    6. wp-content/themes/canvas/includes/widgets/widget-woo-subscribe.php
    Find

    [commercial theme code removed]

    And Replace with

    [commercial theme code removed]

    7. wp-content/themes/canvas/includes/widgets/widget-woo-tabs.php
    Find

    [commercial theme code removed]

    And Replace with

    [commercial theme code removed]

    Enjoy

    Thread Starter hongpong

    (@hongpong)

    excellent work @sammyskills! Wish these forums had a better way to send commit patches around, that way real dev work could happen in the thread.

    You’re right @hongpong.

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘constructor method for WP_Widget is deprecated since 4.3.0’ is closed to new replies.