• Hello. Yesterday I downloaded, installed the latest WP version and stared creating a new theme; I could create different pages with the visual editor on a local host without problems however when I started to work again today the visual editor started crashing whenever I want to edit a text on any page.

    Things that I had tried already:
    – Disabled all plugins
    – Changed to a default theme
    – Editd wp-config to turn the concatenate scripts
    – Edited wp-config again to see the issue on the console

    This is the console log:
    First error when opening the page to be edited:

    react-dom.js?ver=16.6.3:500 Warning: Unsafe lifecycle methods were found within a strict-mode tree:
        in StrictMode (created by Editor)
        in Editor (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(Editor)
    
    componentWillUpdate: Please update the following components to use componentDidUpdate instead: FillComponent
    
    Learn more about this warning here:
    https://fb.me/react-strict-mode-warnings

    Errors that appear after clicking a block to be edited:

    dmp.js:19 Uncaught TypeError: Cannot read property 'core/paragraph' of undefined
        at getInsertUsage (dmp.js:19)
        at buildBlockTypeInserterItem (dmp.js:19)
        at Array.map (<anonymous>)
        at dmp.js:19
        at callSelector (dmp.js:19)
        at runSelector (data.js?ver=4.2.1:709)
        at dmp.js:19
        at getNextMergeProps (data.js?ver=4.2.1:1738)
        at new ComponentWithSelect (data.js?ver=4.2.1:1756)
        at constructClassInstance (react-dom.js?ver=16.6.3:12604)
    getInsertUsage @ dmp.js:19
    buildBlockTypeInserterItem @ dmp.js:19
    (anonymous) @ dmp.js:19
    callSelector @ dmp.js:19
    runSelector @ data.js?ver=4.2.1:709
    (anonymous) @ dmp.js:19
    getNextMergeProps @ data.js?ver=4.2.1:1738
    ComponentWithSelect @ data.js?ver=4.2.1:1756
    constructClassInstance @ react-dom.js?ver=16.6.3:12604
    updateClassComponent @ react-dom.js?ver=16.6.3:14379
    beginWork @ react-dom.js?ver=16.6.3:15206
    performUnitOfWork @ react-dom.js?ver=16.6.3:17944
    workLoop @ react-dom.js?ver=16.6.3:17984
    callCallback @ react-dom.js?ver=16.6.3:143
    invokeGuardedCallbackDev @ react-dom.js?ver=16.6.3:193
    invokeGuardedCallback @ react-dom.js?ver=16.6.3:250
    replayUnitOfWork @ react-dom.js?ver=16.6.3:17231
    renderRoot @ react-dom.js?ver=16.6.3:18103
    performWorkOnRoot @ react-dom.js?ver=16.6.3:18961
    performWork @ react-dom.js?ver=16.6.3:18873
    performSyncWork @ react-dom.js?ver=16.6.3:18847
    interactiveUpdates$1 @ react-dom.js?ver=16.6.3:19116
    interactiveUpdates @ react-dom.js?ver=16.6.3:2167
    dispatchInteractiveEvent @ react-dom.js?ver=16.6.3:4979
    react-dom.js?ver=16.6.3:15873 
    
    The above error occurred in the <ComponentWithSelect> component:
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(WithDispatch(BlockSwitcher)) (created by BlockToolbar)
        in div (created by BlockToolbar)
        in BlockToolbar (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(BlockToolbar) (created by BlockContextualToolbar)
        in div (created by NavigableContainer)
        in NavigableContainer (created by ForwardRef(NavigableContainer))
        in NavigableToolbar (created by BlockContextualToolbar)
        in BlockContextualToolbar (created by HoverArea)
        in div (created by HoverArea)
        in div (created by IgnoreNestedEvents)
        in IgnoreNestedEvents (created by ForwardRef(IgnoreNestedEvents))
        in HoverArea (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(HoverArea) (created by BlockListBlock)
        in BlockListBlock
        in Unknown (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in (BlockListBlock) (created by WithFilters(BlockListBlock))
        in WithFilters(BlockListBlock) (created by ComponentWithDispatch)
        in ComponentWithDispatch (created by Context.Consumer)
        in WithDispatch(WithFilters(BlockListBlock)) (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(WithDispatch(WithFilters(BlockListBlock))) (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithViewportMatch(WithSelect(WithDispatch(WithFilters(BlockListBlock)))) (created by BlockList)
        in div (created by BlockList)
        in BlockList (created by ComponentWithDispatch)
        in ComponentWithDispatch (created by Context.Consumer)
        in WithDispatch(BlockList) (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(WithDispatch(BlockList)) (created by VisualEditor)
        in div (created by ObserveTyping)
        in ObserveTyping (created by WithSafeTimeout(ObserveTyping))
        in WithSafeTimeout(ObserveTyping) (created by ComponentWithDispatch)
        in ComponentWithDispatch (created by Context.Consumer)
        in WithDispatch(WithSafeTimeout(ObserveTyping)) (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(WithDispatch(WithSafeTimeout(ObserveTyping))) (created by VisualEditor)
        in div (created by WritingFlow)
        in div (created by WritingFlow)
        in WritingFlow (created by ComponentWithDispatch)
        in ComponentWithDispatch (created by Context.Consumer)
        in WithDispatch(WritingFlow) (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(WithDispatch(WritingFlow)) (created by VisualEditor)
        in div (created by BlockSelectionClearer)
        in BlockSelectionClearer (created by ComponentWithDispatch)
        in ComponentWithDispatch (created by Context.Consumer)
        in WithDispatch(BlockSelectionClearer) (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(WithDispatch(BlockSelectionClearer)) (created by VisualEditor)
        in VisualEditor (created by Layout)
        in div (created by Layout)
        in div (created by Layout)
        in Layout (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithViewportMatch(Layout) (created by NavigateRegions(WithViewportMatch(Layout)))
        in div (created by NavigateRegions(WithViewportMatch(Layout)))
        in NavigateRegions(WithViewportMatch(Layout)) (created by ComponentWithDispatch)
        in ComponentWithDispatch (created by Context.Consumer)
        in WithDispatch(NavigateRegions(WithViewportMatch(Layout))) (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(WithDispatch(NavigateRegions(WithViewportMatch(Layout)))) (created by Editor)
        in ErrorBoundary (created by Editor)
        in SlotFillProvider (created by EditorProvider)
        in div (created by DropZoneProvider)
        in DropZoneProvider (created by EditorProvider)
        in EditorProvider (created by ComponentWithDispatch)
        in ComponentWithDispatch (created by Context.Consumer)
        in WithDispatch(EditorProvider) (created by Editor)
        in StrictMode (created by Editor)
        in Editor (created by ComponentWithSelect)
        in ComponentWithSelect (created by Context.Consumer)
        in WithSelect(Editor)
    
    React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary.

    I forgot to mention that I had a similar error before, I didn’t pay it much attention back then because I had to reinstall wp again and delete the database (done yesterday) anyway and this fixed the issue until now.

    Thank you for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • This seems to be related to this bug report.

    Do you happen to be running the Gutenberg *plugin*?

    Thread Starter galphath

    (@galphath)

    Thanks for the reply.

    I didn’t install the plugin, it is the default block editor the one giving me problems.

    I’ll check that thread and try the options given there to see if it’s the same issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Visual Editor crashed’ is closed to new replies.