Title: Sidebar widget error
Last modified: February 13, 2023

---

# Sidebar widget error

 *  Resolved [patryk86](https://wordpress.org/support/users/patryk86/)
 * (@patryk86)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/sidebar-widget-error-4/)
 * I’m having trouble adding widgets to the sidebar of a page. I am posting the 
   text of the error below. This is my first website created with WP, so I will 
   appreciate your help.
 * TypeError: Cannot read properties of null (reading ‘length’)
   at p ([https://c0.wp.com/c/6.1.1/wp-includes/js/dist/block-serialization-default-parser.min.js:2:1856](https://c0.wp.com/c/6.1.1/wp-includes/js/dist/block-serialization-default-parser.min.js:2:1856))
   at f ([https://c0.wp.com/c/6.1.1/wp-includes/js/dist/block-serialization-default-parser.min.js:2:1144](https://c0.wp.com/c/6.1.1/wp-includes/js/dist/block-serialization-default-parser.min.js:2:1144))
   at i ([https://c0.wp.com/c/6.1.1/wp-includes/js/dist/block-serialization-default-parser.min.js:2:759](https://c0.wp.com/c/6.1.1/wp-includes/js/dist/block-serialization-default-parser.min.js:2:759))
   at Fn ([https://c0.wp.com/c/6.1.1/wp-includes/js/dist/blocks.min.js:10:35954](https://c0.wp.com/c/6.1.1/wp-includes/js/dist/blocks.min.js:10:35954))
   at fe ([https://c0.wp.com/c/6.1.1/wp-includes/js/dist/customize-widgets.min.js:7:17581](https://c0.wp.com/c/6.1.1/wp-includes/js/dist/customize-widgets.min.js:7:17581))
   at [https://c0.wp.com/c/6.1.1/wp-includes/js/dist/customize-widgets.min.js:7:17924](https://c0.wp.com/c/6.1.1/wp-includes/js/dist/customize-widgets.min.js:7:17924)
   at Array.map ()at [https://c0.wp.com/c/6.1.1/wp-includes/js/dist/customize-widgets.min.js:7:17916](https://c0.wp.com/c/6.1.1/wp-includes/js/dist/customize-widgets.min.js:7:17916)
   at Object.bt [as useState](https://c0.wp.com/c/6.1.1/wp-includes/js/dist/vendor/react-dom.min.js:9:46710)
   at e.useState ([https://c0.wp.com/c/6.1.1/wp-includes/js/dist/vendor/react.min.js:9:10899](https://c0.wp.com/c/6.1.1/wp-includes/js/dist/vendor/react.min.js:9:10899))
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsidebar-widget-error-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Ian Sackofwits](https://wordpress.org/support/users/plantprogrammer/)
 * (@plantprogrammer)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/sidebar-widget-error-4/#post-16469118)
 * Hey, patryk86, I’m another WooCommerce user.
 * What widget is causing the JavaScript error to appear or is it all widgets are
   causing an issue for you?
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/sidebar-widget-error-4/#post-16472277)
 * Hi [@patryk86](https://wordpress.org/support/users/patryk86/) ,
 * Thanks for reaching out!
 * I understand that adding widgets to the sidebar causes the above-mentioned errors,
   is this correct?
 * In addition to the information [@plantprogrammer](https://wordpress.org/support/users/plantprogrammer/)
   has asked for, could you please share a copy of the following so that we can 
   have a better understanding of your sites current environment:
    - **System Status Report:** navigate to **WooCommerce** → **Status**. Select`
      Get system report` and then `Copy for support`.
    - **Fatal Error log**: Share a copy of any fatal error log (if any) found under**
      WooCommerce** → **Status** → **Logs**.
 * Once you have these, please share them in your response here.
 * Cheers!
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/sidebar-widget-error-4/#post-16496485)
 * Hi [@patryk86](https://wordpress.org/support/users/patryk86/) ,
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   we’ll be here if and/or when you are ready to continue.
 * Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sidebar widget error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)

 * 3 replies
 * 3 participants
 * Last reply from: [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/sidebar-widget-error-4/#post-16496485)
 * Status: resolved