Make WordPress Core

Opened 21 months ago

Last modified 5 months ago

#61084 new defect (bug)

getDate JS error when opening post

Reported by: nicknoordijk's profile nicknoordijk Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 6.5
Component: Editor Keywords: close
Focuses: javascript Cc:

Description

See error below which I was able to copy from the modal showing when opening the post - i've replaced my URL.

Seems to be a core thing? When I copy the text to a new page the issue is gone but it's happening every once in a while.

TypeError: Cannot read properties of undefined (reading 'getDate')
    at ge (####/wp-includes/js/dist/editor.min.js?ver=6497dd814badef65e728:12:25478)
    at Object.r [as isEditedPostBeingScheduled] (####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:2:16637)
    at ####/wp-includes/js/dist/edit-post.min.js?ver=82b743695f8ef1673753:7:53893
    at ####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:9:3293
    at ####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:9:2061
    at __unstableMarkListeningStores (####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:2:21866)
    at Object.__unstableMarkListeningStores (####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:2:22124)
    at p (####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:9:2026)
    at ####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:9:2628
    at Qe (####/wp-includes/js/dist/data.min.js?ver=e6595ba1a7cd34429f66:9:2840)

Change History (1)

#1 @SirLouen
5 months ago

  • Component changed from Posts, Post Types to Editor
  • Keywords close added

This seems to be some Gutenberg trouble.
If this is still happening, please open a ticket in the Gutenberg repository and provide more info there
Ideally you should be trying to set up an environment to test it consistently. Those "happens once in a while" are not any good for helping solve a problem. If you cannot reproduce this consistently it will never be resolved.

Also this should be tested in a clean environment. For example use the WordPress Playground, and if you can reproduce it there, then you can write up the steps and send a report. Only in that case a solution might arrive soon.

If you happen to open the ticket in Gutenberg, send the link to the ticket here, please

I setting this as close for potential reported-upstream.

Note: See TracTickets for help on using tickets.