WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.52k stars 4.21k forks source link

Wordpress 5.7 Crashing "the editor has encountered and unexpected error" #33691

Closed alokispandey closed 3 years ago

alokispandey commented 3 years ago

Description

Every time I click on New > "expand" any in POST (like premalink or categories..etc"). Wordpress reports error

image

If i revisit this page (by clicking on back-button and then click on forward button), i can see that section is expanded/open.

image

Collapsing the expanded section back to it original position works fine.

Below are the error logs :

TypeError: 'block' member of ScrollIntoViewOptions 'nearest' is not a valid value for enumeration ScrollLogicalPosition. Stack trace: this.wp.components</xp</<@http://X.X.X.X/wp-includes/js/dist/components.min.js?ver=05cdf30cf2623cd4539a5c19832b0114:7:485600 this.wp.components</lo/<@http://X.X.X.X/wp-includes/js/dist/components.min.js?ver=05cdf30cf2623cd4539a5c19832b0114:7:267339 Bh@http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:126:456 Dj@http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:162:476 .Scheduler.unstable_runWithPriority@http://172.19.5.3/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25:260 Da@http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60:280 xb@http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:162:231 Bj/<@http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:162:138 U@http://X.X.X.X/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:16:398 B.port1.onmessage@http://X.X.X.X/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:24:129 react-dom.min.js:125:16 Me http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:125:16 Jh/c.callback http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:139:44 Wg http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:67:237 oj http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:127:254 Aj http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:160:448 .Scheduler.unstable_runWithPriority http://172.19.5.3/wp-includes/js/dist/vendor/react.min.js:25:260 Da http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:60:280 ab http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:154:190 Te http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:146:355 Pg/< http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:61:68 .Scheduler.unstable_runWithPriority http://172.19.5.3/wp-includes/js/dist/vendor/react.min.js:25:260 Da http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:60:280 Pg http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:61:14 ha http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:60:451 Dj http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:163:72 .Scheduler.unstable_runWithPriority http://172.19.5.3/wp-includes/js/dist/vendor/react.min.js:25:260 Da http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:60:280 xb http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:162:231 Bj/< http://X.X.X.X/wp-includes/js/dist/vendor/react-dom.min.js:162:138 U http://X.X.X.X/wp-includes/js/dist/vendor/react.min.js:16:398 B.port1.onmessage

Step-by-step reproduction instructions

It must allow to create new post/page. etc

Actual behavior

Its a fresh installation without any plugin installed and its crashing.

Screenshots or screen recording (optional)

UnexpectedError

Code snippet (optional)

WordPress information

Device information

ashfame commented 3 years ago

Hi @alokispandey

I tried with a fresh WP 5.7.2 install with no plugins & Twenty Twenty-One theme. I couldn't reproduce your issue. I tried both on Mac (Safari) And Firefox (Linux) but I was able to open/close these sections (like permalink, category) and publish a post normally. This could be an issue with your browser extensions causing a conflict. Can you try in private mode? In another browser? Perhaps in a different computer as well? And then report back.

alokispandey commented 3 years ago

Thank you..it appears to be a browser issue. It's working fine with other browsers.

On Tue, Jul 27, 2021 at 7:08 PM Ashish Kumar @.***> wrote:

Hi @alokispandey https://github.com/alokispandey

I tried with a fresh WP 5.7.2 install with no plugins & Twenty Twenty-One theme. I couldn't reproduce your issue. I tried both on Mac (Safari) And Firefox (Linux) but I was able to open/close these sections (like permalink, category) and publish a post normally. This could be an issue with your browser extensions causing a conflict. Can you try in private mode? In another browser? Perhaps in a different computer as well? And then report back.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WordPress/gutenberg/issues/33691#issuecomment-887520538, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEV4EVMUHQBCAQC7WXEKLQTTZ2ZEXANCNFSM5A75N3LA .

-- THANKS ALOK PANDEY