deprecated version 3.5 error
-
Deprecated: Hook elementor/widgets/widgets_registered is?deprecated?since version 3.5.0! Use elementor/widgets/register instead. in?/home/eas3f326s0k7/public_html/wp-includes/functions.php?on line?5758
Deprecated: Function Elementor\Widgets_Manager::register_widget_type is deprecated since version 3.5.0! Use register instead. in /home/eas3f326s0k7/public_html/wp-includes/functions.php on line 5383
The page I need help with: [log in to see the link]
-
This error is due that you have some plugins use an outdated function of elementor.
A way to solve this problem, is that you can try to update your plugins. If it doesn’t solve your problem, you may need to fix the changes in the code of the plugin that triggers the error. You can add the query monitor plugin to have the traceback of the error.
In terms of code, if you want to do fix it yourself you only need to change
register_widget_type
intoregister
else you can contact the support of the plugin that use the functionregister_widget_type
thanks to the query monitor.
A temporary fix is to rollback to a previous version of elementor.
If the error displays on your website you can disable it in the wp-config.php file. See : https://www.ads-software.com/documentation/article/debugging-in-wordpress/#:~:text=debugging%20in%20wordpress
Yes this is caused by extensions to Elementor, not Elementor themselves. Ultimate Addons for example was causing this issue for me. They need to update their code.
Elementor has documented these deprecations here: https://developers.elementor.com/v3-5-planned-deprecations/
what would you expect from the Bloat Masters at Elementor? They pride themselves on bad coding.
To fix this Deprecated: Hook elementor/widgets/widgets_registered is?deprecated?error follow these quick steps
- Goto Cpanel
- Open public_html
- Look for wpconfig.php file> open it on editor
- Look for ” define( ‘WP_DEBUG’, true); “
- Change true to false and save it.
- Reload your website and that will be fixed.
la soluzione indicata non è una soluzione
- define( ‘WP_DEBUG’, true); “
- Change true to false and save it.
ma semplicemente nascondere il problema e questo non è accettabile in quanto il sito è sempre non funzionante in effetti si nasconde il problema ma quello che non funzionava continua a non funzionare!!!! prego RISOLVERE il problema non nasconderlo.<font _mstmutation=”1″></font>
Most likely from an Elementor add-on plugin as Elementor added this message in a recent update.
Ultimate Addons Elementor (UAE) just told me that their developers found that their plugin is causing this and are fixing it.There’s a lot of good feedback here. In my case my debug.log had pages of this error
PHP Deprecated: Function Elementor\Widgets_Manager::register_widget_type is deprecated since version 3.5.0!
Well, it was as simple creating a ssh session to my provider and tranversing to the plugins folder and using a global grep to find which plugins were the culprits of using this deprecated function… I used.
grep -nr "register_widget_type" .
Turned out my theme has a theme add-on that called this 41 times alone.
All I did was a global search and replace changing to the new function name
/** * Init Widgets */ public function init_widgets() { $widgets_manager = \Elementor\Plugin::instance()->widgets_manager; //230130 register_widget_type is deprecated. Change to register // Products $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Product_Deals_Carousel() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Product_Deals_Carousel_2() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Product_Deals_Grid() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Newsletter() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Products_Of_Category() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Products_Of_Category_2() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Product_Tabs_Carousel() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Product_Tabs_Grid() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Products_List_Carousel() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Products_Carousel() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Products_Grid() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Products_List() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Products_Brands() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Recently_Viewed_Products() ); // Banners $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Banner_Small() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Banner_Medium() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Banner_Large() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Banner_Large_2() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Banner_App() ); // Images $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Image_Box() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Images_Grid() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Images_Carousel() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Brand_Images() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Brand_Images_Carousel() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Icons_List() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Category_Tabs() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Category_Box() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Post_Grid() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Testimonial_Slides() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Testimonial_Slides_2() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\FAQs() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Contact_Form_7() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Counter() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Countdown() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Journey() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Member() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Icon_Box() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Process() ); $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Bubbles() ); // Slides $widgets_manager->register( new \MartfuryAddons\Elementor\Widgets\Slides() );
Yes you can fix it by CTRL-F’ing (the suspected) theme files for the deprecated functions/classes and replace it accordingly.
But I 100% agree about the milk and bloatmaster thing.
Orbitfox was causing this error for me.
- The topic ‘deprecated version 3.5 error’ is closed to new replies.