[wp-trac] [WordPress Trac] #53136: Error with "Add to Reuse Block" in WordPree 5.7.1

WordPress Trac noreply at wordpress.org
Tue May 18 05:39:51 UTC 2021


#53136: Error with "Add to Reuse Block" in WordPree 5.7.1
--------------------------+------------------------------
 Reporter:  sawamura      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  5.7.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by poena):

 I can reproduce this with WordPress 5.7.2 (no plugins active), but
 inconsistently. Sometimes, there is no error.

 With no block style applied, I sometimes run into this JavaScript error:
 {{{
 TypeError: onCopy is not a function
     at http://localhost:8888/wp-
 includes/js/dist/components.js?ver=05cdf30cf2623cd4539a5c19832b0114:28335:7
     at commitHookEffectListMount (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:19866:28)
     at commitPassiveHookEffects (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:19904:13)
     at HTMLUnknownElement.callCallback (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:182:16)
     at Object.invokeGuardedCallbackDev (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:231:18)
     at invokeGuardedCallback (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:286:33)
     at flushPassiveEffectsImpl (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:22988:11)
     at unstable_runWithPriority (http://localhost:8888/wp-
 includes/js/dist/vendor/react.js?ver=16.13.1:2685:14)
     at runWithPriority$1 (http://localhost:8888/wp-includes/js/dist/vendor
 /react-dom.js?ver=16.13.1:11174:12)
     at flushPassiveEffects (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:22955:14)
 }}}


 If I add the style either before or after turning it into a reusable
 block, I am seeing the following
 JavaScript error:

 {{{
     Error: An error occurred while running 'mapSelect': Cannot read
 property 'name' of null
 The error may be correlated with this previous error:
 TypeError: Cannot read property 'name' of null
     at Object.selector [as current] (http://localhost:8888/wp-
 includes/js/dist/block-
 editor.js?ver=4378547cec8f5157a02ead3dfc5c65b2:23681:71)
     at http://localhost:8888/wp-
 includes/js/dist/data.js?ver=943087ae96d075f126df689839bb96b9:3798:36
     at __experimentalMarkListeningStores (http://localhost:8888/wp-
 includes/js/dist/data.js?ver=943087ae96d075f126df689839bb96b9:2926:27)
     at Object.__experimentalMarkListeningStores (http://localhost:8888/wp-
 includes/js/dist/data.js?ver=943087ae96d075f126df689839bb96b9:2988:30)
     at http://localhost:8888/wp-
 includes/js/dist/data.js?ver=943087ae96d075f126df689839bb96b9:3747:21
     at onStoreChange (http://localhost:8888/wp-
 includes/js/dist/data.js?ver=943087ae96d075f126df689839bb96b9:3797:30)
     at onChange (http://localhost:8888/wp-
 includes/js/dist/data.js?ver=943087ae96d075f126df689839bb96b9:3826:9)
     at http://localhost:8888/wp-
 includes/js/dist/data.js?ver=943087ae96d075f126df689839bb96b9:2415:13
     at Object.dispatch (http://localhost:8888/wp-
 includes/js/dist/data.js?ver=943087ae96d075f126df689839bb96b9:1165:7)
     at dispatch (<anonymous>:3856:17)

 Original stack trace:
     at useSelect (http://localhost:8888/wp-
 includes/js/dist/data.js?ver=943087ae96d075f126df689839bb96b9:3772:13)
     at BlockStyles (http://localhost:8888/wp-includes/js/dist/block-
 editor.js?ver=4378547cec8f5157a02ead3dfc5c65b2:23690:58)
     at renderWithHooks (http://localhost:8888/wp-includes/js/dist/vendor
 /react-dom.js?ver=16.13.1:14938:20)
     at updateFunctionComponent (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:17169:22)
     at beginWork (http://localhost:8888/wp-includes/js/dist/vendor/react-
 dom.js?ver=16.13.1:18745:18)
     at HTMLUnknownElement.callCallback (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:182:16)
     at Object.invokeGuardedCallbackDev (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:231:18)
     at invokeGuardedCallback (http://localhost:8888/wp-
 includes/js/dist/vendor/react-dom.js?ver=16.13.1:286:33)
     at beginWork$1 (http://localhost:8888/wp-includes/js/dist/vendor
 /react-dom.js?ver=16.13.1:23338:9)
     at performUnitOfWork (http://localhost:8888/wp-includes/js/dist/vendor
 /react-dom.js?ver=16.13.1:22289:14)
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53136#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list