How to Fix Gutenberg Error “Cannot Read Property ‘show_ui’ of undefined”

This error shows when you’re using the NGINX web server, you probably just finish setting up everything for your new WordPress site and unfortunately, received this error message when trying creating or editing a post in WordPress’ new editor, the Gutenberg.

Users will receive a similar error when using trying to use the Gutenberg editor. It also mentions some js files like editor.min.js and the react-dom.min.js.

TypeError: Cannot read property 'show_ui' of undefined
    at i (
    at An.filter (
    at je (
    at ph (
    at lh (
    at O (
    at ze (

The main cause of the problem is not actually on these files. But in some configurations on your Nginx directives for handling PHP files.

How to Fix the Error

Simply edit your Nginx conf files with your favorite editor, in our case its “/etc/nginx/sites-available/”.

vim /etc/nginx/sites-available/

Now, find the location / { blocks and look and edit the PHP try_files directive. Replace it with this one.

location / {
  try_files $uri $uri/ /index.php?$args;

Save the conf file :wq! and restart your Nginx web server.

sudo service nginx restart

That’s it! The error should go away now, and you’re ready to use your new WordPress site.

1 Comment

  • Dejan Jovic
    Posted May 2, 2020 10:45 pm 0Likes

    Thanks, this helps.

Leave a Comment

trabzon escort yalova escort Samsun escort izmit escort nazilli escort