Title: Notice when Disabling Widgets
Last modified: September 26, 2022

---

# Notice when Disabling Widgets

 *  Resolved [svenms](https://wordpress.org/support/users/svenms/)
 * (@svenms)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/notice-when-disabling-widgets/)
 * Dears,
 * Using flatsome with this plugins displays a Notice in Shop.
    [Image](https://ibb.co/fxTDxTS)
 * Notice: La función the_widget ha sido llamada de forma incorrecta. Los widgets
   deben registrarse usando register_widget() antes de que se puedan mostrar. Por
   favor, visita Depuración en WordPress para más información. (Este mensaje fue
   añadido en la versión 4.9.0). in /home/chilevapo.cl/nuevo.chilevapo.cl/wp-includes/
   functions.php on line 5831
 * The Notice does not appear when plugin disabled.
    I changed some options and 
   found out that the Notice appears just when the option “Disable Woocommerce widgets”
   is enabled.
 * Best regards!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnotice-when-disabling-widgets%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Disable Bloat](https://wordpress.org/support/users/disablebloat/)
 * (@disablebloat)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/notice-when-disabling-widgets/#post-16059535)
 * Hello [@svenms](https://wordpress.org/support/users/svenms/)
 * Thank you for taking the time and reporting this.
 * This error is caused by the fact, that your WordPress installation is trying 
   to use a widget that has been turned off.
 * `Disable WooCommerce Widgets` feature uses native WordPress [unregister_widget](https://developer.wordpress.org/reference/functions/unregister_widget/)
   function. It means that if you use it, WordPress / WooCommerce doesn’t see the
   widgets anymore.
 * In order to get rid of the PHP notice, please follow the steps below:
 * 1. Switch off the option Disable WooCommerce Widgets
    2. Go to the Appearance-
   > Widgets menu and delete all WooCommerce widgets from your site 3. Activate 
   the Disable WooCommerce Widgets option again.
 * Could you please tell me if this solution solves your issue?

Viewing 1 replies (of 1 total)

The topic ‘Notice when Disabling Widgets’ is closed to new replies.

 * ![](https://ps.w.org/disable-dashboard-for-woocommerce/assets/icon-256x256.png?
   rev=2822447)
 * [Disable Bloat for WordPress & WooCommerce](https://wordpress.org/plugins/disable-dashboard-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disable-dashboard-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disable-dashboard-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-dashboard-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-dashboard-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-dashboard-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Disable Bloat](https://wordpress.org/support/users/disablebloat/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/notice-when-disabling-widgets/#post-16059535)
 * Status: resolved