EasyEngine / EasyEngine/easyengine
upgrade editor to gutenberg
- Dominant language
- PHP
- Stars
- 2.2k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
I've an issue after upgrading my wordpress site to new version 5.
The error is about the default editor on wordpress 5 'gutenberg' and I can't edit all post on my site.
Below error details:
```
TypeError: Cannot read property 'show_ui' of undefined
at https://site.com/wp-includes/js/dist/editor.min.js?ver=9.0.4:55:239972
at i (https://site.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.11:6:91)
at An.filter (https://site.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.11:99:338)
at https://site.com/wp-includes/js/dist/editor.min.js?ver=9.0.4:55:239937
at ph (https://site.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:97:88)
at eg (https://site.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:125:307)
at fg (https://site.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:126:168)
at wc (https://site.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:138:237)
at fa (https://site.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:137:115)
at gg (https://site.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:135:196)
```
My system Information
- [ ] ee version: EasyEngine v3.8.1
- [ ] ubuntu 18.04 server
- [ ] php7 enabled
Solved:
solve the issue by updating nginx confiugration.
```
cd /etc/nginx/common/
vim wpsc-php7.conf
```
Updating the configuration below.
```
location / {
# If we add index.php?$args its break WooCommerce like plugins
# Ref: #330
# Old Config
# try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php;
# New Config
try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?$args;
}
```
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.