TypeError: Cannot read properties of undefined (reading ‘defaults’)
-
Hello everyone,
Recently I was doing maintenance on a website (updating plugins, wordpress version, etc.) and once I did that whenever I want to add a new post of page I get this error:TypeError: Cannot read properties of undefined (reading ‘defaults’) at wp.media (https:///xxxx.xx/wp-includes/js/media-models.min.js?ver=6.4.1:2:11840) at new d (https://xxxx.xx/wp-includes/js/dist/media-utils.min.js?ver=bcd60e7a2fb568f38015:2:3314) at lt (https:///xxxx.xx/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:39336) at vr (https:///xxxx.xx/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:56693) at js (https:///xxxx.xx/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:121697) at kl (https:///xxxx.xx/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88654) at yl (https:///xxxx.xx/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88582) at vl (https:///xxxx.xx/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88445) at ol (https:///xxxx.xx/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85269) at cl (https:///xxxx.xx/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85656)
I wanted to revert the website to the backup I did before updating, but it’s broken and didn’t save properly (I should’ve double-checked, I know). So now I’m stuck like this because the last working backup I could find was 6 months ago (I used to work on the website regularly, but now I’m on a periodic contract, that’s why there weren’t regular backups).
I did try to install Jetpack optimizer plugin as well, so that could be a possible issue.
I looked online for similar issues but all I could find were WooCommerce and Elementor Related solutions (Which I don’t have installed on the website).The current editor I use is mainly the Gutemberg default one and WP Bakery sometimes.
The page I need help with: [log in to see the link]
- The topic ‘TypeError: Cannot read properties of undefined (reading ‘defaults’)’ is closed to new replies.