• Resolved ferdiax

    (@ferdiax)


    Hello,

    Since today im getting the following error: “The editor has encountered an unexpected error” when trying to edit a page or post

    I’ve disabled alle plugins and enabled the Twenty Seventeen theme. However the error still remains.

    I’m using WordPress 5.7

    Any assistance would be greatful.

    These errors appear in the Google Chrome console:

    Failed to load resource: the server responded with a status of 404 ()
    jquery-migrate.min.js?ver=3.3.2:2 Uncaught ReferenceError: jQuery is not defined
        at jquery-migrate.min.js?ver=3.3.2:2
    editor.min.js?ver=5.7:2 Uncaught TypeError: g is not a function
        at new <anonymous> (editor.min.js?ver=5.7:2)
        at editor.min.js?ver=5.7:2
        at editor.min.js?ver=5.7:2
    wp-util.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at wp-util.min.js?ver=5.7:2
    wp-backbone.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at wp-backbone.min.js?ver=5.7:2
    media-models.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at Object.23 (media-models.min.js?ver=5.7:2)
        at r (media-models.min.js?ver=5.7:2)
        at Object.22 (media-models.min.js?ver=5.7:2)
        at r (media-models.min.js?ver=5.7:2)
        at media-models.min.js?ver=5.7:2
        at media-models.min.js?ver=5.7:2
    wp-plupload.min.js?ver=5.7:1 Uncaught ReferenceError: jQuery is not defined
        at wp-plupload.min.js?ver=5.7:1
    core.min.js?ver=1.12.1:5 Uncaught ReferenceError: jQuery is not defined
        at core.min.js?ver=1.12.1:5
        at core.min.js?ver=1.12.1:5
    mouse.min.js?ver=1.12.1:9 Uncaught ReferenceError: jQuery is not defined
        at mouse.min.js?ver=1.12.1:9
        at mouse.min.js?ver=1.12.1:9
    sortable.min.js?ver=1.12.1:9 Uncaught ReferenceError: jQuery is not defined
        at sortable.min.js?ver=1.12.1:9
        at sortable.min.js?ver=1.12.1:9
    mediaelement-migrate.min.js?ver=5.7:1 Uncaught ReferenceError: jQuery is not defined
        at mediaelement-migrate.min.js?ver=5.7:1
    wp-mediaelement.min.js?ver=5.7:1 Uncaught ReferenceError: jQuery is not defined
        at wp-mediaelement.min.js?ver=5.7:1
    api-request.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at api-request.min.js?ver=5.7:2
    media-views.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at Object.<anonymous> (media-views.min.js?ver=5.7:2)
        at o (media-views.min.js?ver=5.7:2)
        at Object.<anonymous> (media-views.min.js?ver=5.7:2)
        at o (media-views.min.js?ver=5.7:2)
        at media-views.min.js?ver=5.7:2
        at media-views.min.js?ver=5.7:2
    postbox.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at postbox.min.js?ver=5.7:2
    jquery.typewatch.js?ver=5.7:21 Uncaught TypeError: Cannot read property 'fn' of undefined
        at jquery.typewatch.js?ver=5.7:21
        at jquery.typewatch.js?ver=5.7:17
        at jquery.typewatch.js?ver=5.7:19
    jquery.nice-select.min.js?ver=5.7:4 Uncaught ReferenceError: jQuery is not defined
        at jquery.nice-select.min.js?ver=5.7:4
    select2.full.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at select2.full.min.js?ver=5.7:2
        at select2.full.min.js?ver=5.7:2
    lity.min.js?ver=5.7:4 Uncaught TypeError: b is not a function
        at lity.min.js?ver=5.7:4
        at lity.min.js?ver=5.7:4
        at lity.min.js?ver=5.7:4
    jquery.nicescroll.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at jquery.nicescroll.min.js?ver=5.7:2
        at jquery.nicescroll.min.js?ver=5.7:2
    featherlight.js?ver=5.7:31 Uncaught ReferenceError: jQuery is not defined
        at featherlight.js?ver=5.7:31
        at featherlight.js?ver=5.7:33
    owl.carousel.min.js?ver=5.7:1718 Uncaught TypeError: Cannot read property 'fn' of undefined
        at owl.carousel.min.js?ver=5.7:1718
        at owl.carousel.min.js?ver=5.7:1755
    draggable.min.js?ver=1.12.1:9 Uncaught ReferenceError: jQuery is not defined
        at draggable.min.js?ver=1.12.1:9
        at draggable.min.js?ver=1.12.1:9
    slider.min.js?ver=1.12.1:9 Uncaught ReferenceError: jQuery is not defined
        at slider.min.js?ver=1.12.1:9
        at slider.min.js?ver=1.12.1:9
    jquery.ui.touch-punch.js?ver=0.2.2:11 Uncaught ReferenceError: jQuery is not defined
        at jquery.ui.touch-punch.js?ver=0.2.2:11
    iris.min.js?ver=1.0.7:5 Uncaught ReferenceError: jQuery is not defined
        at iris.min.js?ver=1.0.7:5
    color-picker.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at color-picker.min.js?ver=5.7:2
    datepicker.min.js?ver=1.12.1:9 Uncaught ReferenceError: jQuery is not defined
        at datepicker.min.js?ver=1.12.1:9
        at datepicker.min.js?ver=1.12.1:9
    post.php?post=7937&action=edit:355 Uncaught ReferenceError: jQuery is not defined
        at post.php?post=7937&action=edit:355
    backend.js?ver=5.17.6:1 Uncaught ReferenceError: jQuery is not defined
        at backend.js?ver=5.17.6:1
    events.js?ver=5.17.6:4 Uncaught ReferenceError: jQuery is not defined
        at events.js?ver=5.17.6:4
    load-scripts.php?c=0&load[chunk_0]=hoverIntent&ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at load-scripts.php?c=0&load[chunk_0]=hoverIntent&ver=5.7:2
    common.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at common.min.js?ver=5.7:2
    heartbeat.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at heartbeat.min.js?ver=5.7:2
    media-editor.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at media-editor.min.js?ver=5.7:2
    media-audiovideo.min.js?ver=5.7:2 Uncaught TypeError: Cannot set property 'mixin' of undefined
        at Object.<anonymous> (media-audiovideo.min.js?ver=5.7:2)
        at o (media-audiovideo.min.js?ver=5.7:2)
        at Object.<anonymous> (media-audiovideo.min.js?ver=5.7:2)
        at o (media-audiovideo.min.js?ver=5.7:2)
        at media-audiovideo.min.js?ver=5.7:2
        at media-audiovideo.min.js?ver=5.7:2
    mce-view.min.js?ver=5.7:2 Uncaught TypeError: Cannot read property 'template' of undefined
        at mce-view.min.js?ver=5.7:2
        at mce-view.min.js?ver=5.7:2
    jquery.imgareaselect.min.js?ver=5.7:1 Uncaught ReferenceError: jQuery is not defined
        at jquery.imgareaselect.min.js:1
    image-edit.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at image-edit.min.js:2
    wplink.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at wplink.min.js:2
    menu.min.js?ver=1.12.1:9 Uncaught ReferenceError: jQuery is not defined
        at menu.min.js:9
        at menu.min.js:9
    autocomplete.min.js?ver=1.12.1:9 Uncaught ReferenceError: jQuery is not defined
        at autocomplete.min.js:9
        at autocomplete.min.js:9
    thickbox.js?ver=3.1-20121105:15 Uncaught ReferenceError: jQuery is not defined
        at thickbox.js:15
    media-upload.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at media-upload.min.js:2
    wp-api.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at n.initialize (wp-api.min.js:2)
        at n.h.Model (backbone.min.js:2)
        at new n (backbone.min.js:2)
        at wp.api.init (wp-api.min.js:2)
        at wp-api.min.js:2
        at wp-api.min.js:2
    svg-painter.js?ver=5.7:238 Uncaught ReferenceError: jQuery is not defined
        at svg-painter.js:238
    wp-auth-check.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at wp-auth-check.min.js:2
    admin.js?ver=1.5.2:1 Uncaught ReferenceError: jQuery is not defined
        at Module.<anonymous> (admin.js:1)
        at n (admin.js:1)
        at Object.<anonymous> (admin.js:1)
        at n (admin.js:1)
        at admin.js:1
        at admin.js:1
    wp-ajax-response.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at wp-ajax-response.min.js:2
    jquery.color.min.js?ver=2.1.2:2 Uncaught ReferenceError: jQuery is not defined
        at jquery.color.min.js:2
    wp-lists.min.js?ver=5.7:2 Uncaught ReferenceError: jQuery is not defined
        at wp-lists.min.js:2
    post.php?post=7937&action=edit:2691 Uncaught ReferenceError: jQuery is not defined
        at post.php:2691
    edit-post.min.js?ver=f74dc8b595fc8850a69a044ff78d1e86:7 Uncaught (in promise) TypeError: Cannot read property 'page' of undefined
        at edit-post.min.js:7
        at tryCatch (wp-polyfill.min.js:1)
        at Generator.invoke [as _invoke] (wp-polyfill.min.js:1)
        at Generator.t.<computed> [as next] (wp-polyfill.min.js:1)
        at redux-routine.min.js:2
        at redux-routine.min.js:2
        at redux-routine.min.js:2
        at Array.some (<anonymous>)
        at e (redux-routine.min.js:2)
        at redux-routine.min.js:2
    blocks.js?ver=03a10d02022768813a76d7c620994bf7:33 Desktop
    post.php?post=7937&action=edit:1 Unchecked runtime.lastError: The message port closed before a response was received.
    react-dom.min.js?ver=16.13.1:125 TypeError: p.media is not a function
        at new r (media-utils.min.js:2)
        at Yg (react-dom.min.js:68)
        at rh (react-dom.min.js:98)
        at zj (react-dom.min.js:228)
        at Th (react-dom.min.js:152)
        at tj (react-dom.min.js:152)
        at Te (react-dom.min.js:146)
        at react-dom.min.js:61
        at unstable_runWithPriority (react.min.js:25)
        at Da (react-dom.min.js:60)
    Me @ react-dom.min.js?ver=16.13.1:125
    react-dom.min.js?ver=16.13.1:125 TypeError: r is not a function
        at components.min.js:7
        at Bh (react-dom.min.js:126)
        at Dj (react-dom.min.js:162)
        at unstable_runWithPriority (react.min.js:25)
        at Da (react-dom.min.js:60)
        at xb (react-dom.min.js:162)
        at mk.Events.current (react-dom.min.js:236)
        at Ei (react-dom.min.js:41)

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did this start happening after an upgrade to WP 5.7? The error msg. is stating jQuery was not found.

    I ask because your page is trying to load v1.12.1 and v3.5.1. Unfortunately, the v3.5.1 is a web page titled “Pagina niet gevonden” which I don’t know what it means but I know it’s not a jQuery script.

    Either swap the web file with the actual jQuery v3.5.1 script or remove it; and the jQuery Migrate 3.5.1 as well. Then move the v1.12.1 further up in the page–line #132 or thereabouts.

    There can only be one version of jQuery used and it has to be loaded “before” other .js scripts so that when they need it, it will already be there.

    Thread Starter ferdiax

    (@ferdiax)

    Hello Rob,

    It did happened after the update to WP 5.7.
    I got it working again by going to the dashboard and installing WP 5.7 again. This seems to have solved the problem.

    Thanks

    Good to hear you solved the problem. Perhaps your solution will help someone else who comes across this post.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The editor has encountered an unexpected error’ is closed to new replies.