• I have two custom post types, one is a fairly normal custom post type, the other has a very specific use case. The latter is created with a limited “supports” value, specifically: (‘editor’, ‘thumbnail’, ‘excerpt’). Notably it does NOT contain ‘title’. The title is set by a post action function.

    This has worked perfectly — up until the 5.7 update. Now it is broken. When I try to create a new post of that type, the editor (Gutenberg) comes up empty, and the title field is missing, as expected, but any click on the editor gives “the editor has encountered an unexpected error” and crashes out.

    No idea how to debug this. Help?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    This has worked perfectly — up until the 5.7 update. Now it is broken.

    Please review 5.7 Master List and attempt troubleshooting outlined therein.

    Thread Starter clwill

    (@clwill)

    OK, I’ve done all that (disabled plugins, etc.), added script-debug, and I still have the problem. Tested in Chrome, Firefox, and Safari. Here is the error

    [Error] TypeError: null is not an object (evaluating 'ref.current.ownerDocument')
    	(anonymous function) (editor.js:11734)
    	commitHookEffectListMount (react-dom.js:19866)
    	commitPassiveHookEffects (react-dom.js:19904)
    	callCallback (react-dom.js:182)
    	dispatchEvent
    	invokeGuardedCallbackDev (react-dom.js:231)
    	invokeGuardedCallback (react-dom.js:286)
    	flushPassiveEffectsImpl (react-dom.js:22988)
    	unstable_runWithPriority (react.js:2685)
    	performSyncWorkOnRoot (react-dom.js:21872)
    	performSyncWorkOnRoot
    	(anonymous function) (react-dom.js:11224)
    	unstable_runWithPriority (react.js:2685)
    	flushSyncCallbackQueueImpl (react-dom.js:11219)
    	flushSyncCallbackQueue (react-dom.js:11207)
    	flushPendingDiscreteUpdates (react-dom.js:21982)
    	flushDiscreteUpdates (react-dom.js:21962)
    	flushDiscreteUpdatesIfNeeded (react-dom.js:826)
    	dispatchDiscreteEvent (react-dom.js:4290)
    	dispatchDiscreteEvent
    [Error] The above error occurred in the <PostTitle> component:
        in PostTitle (created by VisualEditor)
        in div (created by VisualEditor)
        in div (created by WritingFlow)
        in WritingFlow (created by VisualEditor)
        in div (created by VisualEditor)
        in div (created by VisualEditor)
        in VisualEditor (created by Layout)
        in div (created by ForwardRef(InterfaceSkeleton))
        in div (created by ForwardRef(InterfaceSkeleton))
        in div (created by ForwardRef(InterfaceSkeleton))
        in div (created by ForwardRef(InterfaceSkeleton))
        in ForwardRef(InterfaceSkeleton) (created by Layout)
        in Layout (created by Editor)
        in ErrorBoundary (created by Editor)
        in BlockEditorProvider
        in Unknown (created by Context.Consumer)
        in WithRegistryProvider(BlockEditorProvider) (created by EditorProvider)
        in BlockContextProvider (created by EditorProvider)
        in EntityProvider (created by EditorProvider)
        in EntityProvider (created by EditorProvider)
        in EditorProvider
        in Unknown (created by Context.Consumer)
        in WithRegistryProvider(EditorProvider) (created by Editor)
        in DropZoneContextProvider (created by Editor)
        in slot_fill_provider_SlotFillProvider (created by SlotFillProvider)
        in SlotFillProvider (created by Editor)
        in StrictMode (created by Editor)
        in Editor
    
    React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary.
    	logCapturedError (react-dom.js:19662)
    	logError (react-dom.js:19699)
    	callback (react-dom.js:20879)
    	callCallback (react-dom.js:12625)
    	commitUpdateQueue (react-dom.js:12646)
    	commitLifeCycles (react-dom.js:19993)
    	commitLayoutEffects (react-dom.js:22938)
    	callCallback (react-dom.js:182)
    	dispatchEvent
    	invokeGuardedCallbackDev (react-dom.js:231)
    	invokeGuardedCallback (react-dom.js:286)
    	commitRootImpl (react-dom.js:22676)
    	commitRootImpl
    	unstable_runWithPriority (react.js:2685)
    	commitRoot (react-dom.js:22516)
    	finishSyncRender (react-dom.js:21942)
    	performSyncWorkOnRoot (react-dom.js:21928)
    	performSyncWorkOnRoot
    	(anonymous function) (react-dom.js:11224)
    	unstable_runWithPriority (react.js:2685)
    	flushSyncCallbackQueueImpl (react-dom.js:11219)
    	flushSyncCallbackQueue (react-dom.js:11207)
    	flushPendingDiscreteUpdates (react-dom.js:21982)
    	flushDiscreteUpdates (react-dom.js:21962)
    	flushDiscreteUpdatesIfNeeded (react-dom.js:826)
    	dispatchDiscreteEvent (react-dom.js:4290)
    	dispatchDiscreteEvent
    Moderator t-p

    (@t-p)

    Are ALL your plugins and the theme up to date?

    Thread Starter clwill

    (@clwill)

    Yep, and the error happened when all of them were disabled as well.

    Moderator t-p

    (@t-p)

    If you think you found a bug, create a ticket in our bug tracker.

    Thread Starter clwill

    (@clwill)

    Well, I think I’ll do that. I added “title” to the Supports clause of the CPT and it works. This is definitively a bug.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Post — Doesn’t support “Title” Broken in 5.7’ is closed to new replies.