Title: TypeError: a.media is not a function
Last modified: November 13, 2021

---

# TypeError: a.media is not a function

 *  Resolved [Robert4Web](https://wordpress.org/support/users/robert4web/)
 * (@robert4web)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/typeerror-a-media-is-not-a-function-2/)
 * Hello!
 * On my WP 5.8.2 website I found this error. When I deactivated Wordfence, error
   dissapeared.
 *     ```
       TypeError: a.media is not a function
           at new m (https://www.domain.com/wp-includes/js/dist/media-utils.min.js?ver=8e557d69e3ef2356d081c60830d157a1:2:3772)
           at Yg (https://www.domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:68:243)
           at rh (https://www.domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:98:274)
           at zj (https://www.domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:228:490)
           at Th (https://www.domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223)
           at tj (https://www.domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152)
           at Te (https://www.domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:151)
           at https://www.domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:68
           at unstable_runWithPriority (https://www.domain.com/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25:260)
           at Da (https://www.domain.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60:280)
       ```
   
 * How to resolve this error? Thanks.
 * Best regards,
 * R.

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

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/typeerror-a-media-is-not-a-function-2/#post-15069163)
 * Hi [@robert4web](https://wordpress.org/support/users/robert4web/),
 * As the exact error message doesn’t seem to reference Wordfence plugin components
   directly, I suspect this might be a plugin/theme conflict so disabling Wordfence
   resolves this but is not necessarily the cause.
 * Try disabling **all** plugins **except** for Wordfence and reverting to a default
   theme such as _Twenty Twenty-One_. Does the error still display when Wordfence
   is the only plugin enabled? If not, you may be able to re-enable your plugins
   and theme one-by-one until you find where the problem originates.
 * You can install a maintenance mode plugin during this time if site visitors are
   likely to be affected. Browser extensions can also sometimes interfere with these
   pages so disabling those at the same time, or using a different browser to your
   default may be an idea during this period of testing too!
 * Let me know what you find out.
 * Thanks,
 * Peter.
 *  Thread Starter [Robert4Web](https://wordpress.org/support/users/robert4web/)
 * (@robert4web)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/typeerror-a-media-is-not-a-function-2/#post-15069364)
 * Hello wfpeter!
 * Thanks for your answer and help. Nevermind! It was a browser problem (Vivaldi).
   When I go to other browser (Chrome, Firefox) was all fine. I resolved this in
   Vivaldi with deleting all history, all caching and all cookies.
 * Best regards,
 * Robert

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

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

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Robert4Web](https://wordpress.org/support/users/robert4web/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/typeerror-a-media-is-not-a-function-2/#post-15069364)
 * Status: resolved