• Resolved Lucille85

    (@lucille85)


    When I try to create or edit a post or a page I get the message that the editor has encountered an unexpected error, the error is:

    TypeError: p.media is not a function
        at new r (https://.../wp-includes/js/dist/media-utils.min.js?ver=6769ca058df5de8036f63540620b14df:2:6261)
        at Yg (https://.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:68:243)
        at rh (https://.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:98:274)
        at zj (https://.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:228:490)
        at Th (https://.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223)
        at tj (https://.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152)
        at Te (https://.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:151)
        at https://.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:68
        at unstable_runWithPriority (https://.../wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25:260)
        at Da (https://.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60:280)

    Someone here had the same problem, it was solved by disabling Yoast, but I don’t use Yoast and never did. I did disable all my plugins and changed to the standard theme, I also re-installed WP 5.7.2, but the error is still there when I try to create or edit a post or a page. Btw this error occured without having made any changes e.g. updates.
    I installed the classic editor plugin, and using this I am able to write posts. I also installed the Gutenberg plugin, but that doesn’t change anything.
    Can anybody help?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The Gutenberg plugin runs a sometimes unstable development version of Gutenberg. You don’t need it unless you’re helping to develop the block editor. The default, built-in block editor is the latest stable version of Gutenberg. Deactivate the Gutenberg plugin and see if the problem persists. Be aware that caching can confuse any error investigation. Ensure both server and client side caches have been flushed before deciding there’s still an error.

    Thread Starter Lucille85

    (@lucille85)

    I had only installed the Gutenberg plugin to see if I can post when it is activated. As it didn’t work I uninstalled it.
    I had also cleared the server’s cache before posting here.
    But I didn’t check my browser. Like a bloody newbie 🙁 So after flushing my Chrome’s cache everything works and I can post again.
    Thank you for answering!

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

The topic ‘p.media is not a function’ is closed to new replies.