The error isn’t actually caused by your PHP version (PHP 4 constructors won’t be removed until PHP 7) – it’s a warning produced by WordPress in preparation for this. Each repetition of the error represents a plugin using the outdated code.
Until your plugins’ authors update them, you can run the following shell command on a Linux system to find the old constructor calls:
grep -R "WP_Widget\(" /path/to/your/wp/install
This will give you a list of files that you can either modify on the command line, or use WP’s plugin editor. Matched strings – mostly parent::WP_Widget(args)
should be changed to parent::__construct(args)
.
Related Posts:
- Complex widget form UI – examples and best practices
- Why will using __construct instead of widget_class_name when creating widget trigger out of memory error
- Updating to Version 4.5 bumped my “main sidebar” widget out of place
- Notice: Undefined index: filter in …wp-includes/default-widgets.php on line 382
- Extending WP_Widget throws error when Monster Widget used
- Debugging / displaying errors in WP_Widget->form()
- Last Update time in widget
- Force update widget customizer using js
- Handling dozens of sidebars
- Can I use wp_widget_rss_output to show my site’s feed in the dashboard?
- How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?
- Where is the content of widgets stored in mysql table
- PHP Coding Standards, Widgets and Sanitization
- Different widgets on different page templates?
- Widgets not displaying in theme customizer
- Register multiple sidebars
- How to add a filter to all widget output
- Where to get the unsaved list of widgets in customizer?
- Widget Update Code Not Working
- WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()
- Is It Possible to Restore Accidentally Deleted Widgets?
- How Can I Duplicate a Widget?
- How do I create a widget that only allows a single instance?
- Using tabs in admin widgets [closed]
- Widget “Save” resetting jQuery hidden fields
- How to add class on Widget Title
- Create variable from widget instance
- Save/update widget outside admin panel [closed]
- Why use widgets?
- Completely disabling widgets
- How do I pass arguments to dashboard widget callback functions?
- How does the default recent posts widget work with cache?
- Add new section to “Right Now” widget
- How to disable Widget Gutenberg Blocks?
- woocommerce featured products and categories
- Removing custom widget area WordPress 4.4 [closed]
- Replace dashboard widgets with banner ad
- Too few arguments to function WP_Widget::__construct(),
- How to change text widget title h2 to h1
- instance is empty in function widget()
- Check which registered sidebar a widget is added to
- Too many widgets
- Show tags selection similar to category selection in WordPress
- Widgets not activated alert after using get_sidebar()
- Wrap the widget content with a div and get the widget title outside? [closed]
- Is there any way to parse blocks inside widget area?
- How to output only blockquotes content from recent posts in a widget?
- Custom tag being removed from text editor
- Add default widgets to footer
- Trying to create dynamic widget area using post ID
- How to modify single widget in child theme?
- Display attachment, post and page in recent comments widget
- How to create a dashboard widget for one user
- Programmatically add widgets to sidebars
- How to activate WordPress widgets but not display?
- Insert widgets into loop/custom query at every nth position
- Twenty Fourteen: how do they populate by default the sidebar?
- WordPress widget not appearing in editors widget list
- Unable to locate WordPress content directory
- WP Core Update Issue
- How to insert widgets into a post?
- Widget’s Content Mssing in Child Theme
- My widget not printing before_widgets and after widgets
- wrapper div for widgets not showing with all widgets
- Plugin upgrade failing during unzip
- Address automatically generated ids in css [closed]
- Check if widget is inside sidebar with PHP
- latest posts-widget displays all posts on archive page but works great anywhere else
- Widget : html 2 dimensional array doesn’t work
- call widget from within shortcode
- How to get class from widget area
- How to change widget’s form color in admin?
- In widget, the value of select field doesn’t get updated, changes after saving
- Removing widget without using unregister_widget
- Editing Help Section
- SELECT field options disappear when saving widget
- WordPress text filed input only inter value?
- Need to delete the sidebar widget area and have the page a full page rather than just have a blank widget area
- Display Login user name in Thim:login Popup widget
- Searching for a one page overview widget
- WP renders HTML wrong when adding widgets
- How do I add after the tag in WordPress widget?
- Creating a simple button inside of a widget
- Reposition the widget sidebar in Appearance->Widgets
- Hiding the widget meta box in the Appearance->Widget screen
- The WP_Widget class seems to run many times on a page load
- Stop ‘extends WP_Widget’ displaying the (backend) form, frontend?
- How to check widget-cpt meta and display its custom css in the head?
- How to add WooCommerce Add to Cart button in widget?
- How to call theme default widget in custom template?
- How to place a widget beside a div/text so that they display as a continuous line
- Editor Widget Role
- Widget Logic code for different PMP membership levels
- How to Activate WordPress Widgets
- WordPress wiget admin panel
- Filter “widget_comments_args” won’t work
- How to output built-in widgets with number in range as class?
- How to create a widget on witch a registered user can create a checklist
- How to hide sidebar widgets in all pages except Hompage?
- How can I create my own widgets in WordPress? [closed]