javascript – Cannot read properties of undefined (reading ‘show_ui’) Error on WordPress Post Editor

Question

We’re getting the following error on our Block Editor when trying to edit a post:

TypeError: Cannot read properties of undefined (reading 'show_ui')
at https://informationsecurityleadership.com/wp-includes/js/dist/editor.min.js?ver=8d4a298f55ea5a97c9e5147f9e132d82:7:114477
at i (https://informationsecurityleadership.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19:10:88)
at lf (https://informationsecurityleadership.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19:84:172)
at https://informationsecurityleadership.com/wp-includes/js/dist/editor.min.js?ver=8d4a298f55ea5a97c9e5147f9e132d82:7:114458
at Le (https://informationsecurityleadership.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:100:3)
at Pj (https://informationsecurityleadership.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:231:183)
at di (https://informationsecurityleadership.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168:305)
at Nj (https://informationsecurityleadership.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168:236)
at sc (https://informationsecurityleadership.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:168:96)
at gf (https://informationsecurityleadership.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:162:109)

Here are the details on how our WordPress is configured:

  1. Our WordPress sits behind an AWS Firewall and our resources are served through Cloudfront.
  2. We have a staging site identical to the production environment minus Cloudfront and we are not seeing this error on the staging site even though all the plugins and WordPress version are the same.
  3. The oddest thing about this error is that we are only seeing it when trying to edit a post and not when trying to edit a page.
  4. A lot of solutions suggest changing a configuration on a NGINX server BUT we are not running our WordPress on NGINX. We’re just using Apache2 and PHP-FPM.

Here’s what I’ve tried:

  1. I’ve tried clearing the CloudFront, Site and Browser cache as suggested in this article: https://www.techrbun.com/wordpress-editor-unexpected-error-fix/
  2. I’ve added a rule in the WAF/Cloudfront to not cache resources from the following URL: https://informationsecurityleadership.com/wp-includes/js/*
  3. I’ve reviewed some PHP changes to no avail.

It is getting frustrating as I am not able to pinpoint to the exact problem(I am not familiar with React or its problems). It’s also frustrating that many of the solutions assume that there will be a NGINX server. Some help would be appreciated. If this is really a cache problem then kindly suggest what exceptions to add.

0
Talha Imam 4 months 2022-04-22T16:42:25-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse