TypeError: i is not a function | Unable to edit site content
-
I am having a strange issue where the Yoast plugin causes an error on posts/pages/custom post types when editing. The page editor loads, and then I receive this error:
TypeError: i is not a function
at n.resetDisplays (https://sitename.org/wp-includes/js/media-views.min.js?ver=6.4.2:2:11862)
at n.initialize (https://sitename.org/wp-includes/js/media-views.min.js?ver=6.4.2:2:11112)
at h.Model (https://sitename.org/wp-includes/js/backbone.min.js?ver=1.5.0:2:4722)
at n.constructor (https://sitename.org/wp-includes/js/media-views.min.js?ver=6.4.2:2:17442)
at new n (https://sitename.org/wp-includes/js/backbone.min.js?ver=1.5.0:2:23777)
at n.createStates (https://sitename.org/wp-includes/js/media-views.min.js?ver=6.4.2:2:74101)
at n.initialize (https://sitename.org/wp-includes/js/media-views.min.js?ver=6.4.2:2:73561)
at h.View (https://sitename.org/wp-includes/js/backbone.min.js?ver=1.5.0:2:14872)
at n.constructor (https://sitename.org/wp-includes/js/wp-backbone.min.js?ver=6.4.2:2:2602)
at n.constructor (https://sitename.org/wp-includes/js/media-views.min.js?ver=6.4.2:2:106817)I have copied the site to a staging server and a local device where I am unable to replicate the issue.
Additionally, when I go to Yoast > Settings > Site Basics, I receive the same “i is not a function” error.
My initial investigation suggests that it may be a javascript conflict, but it doesn’t make sense that the issue only happens on the live site.
What I’ve tried
- Deleting/re-installing Yoast
- Disabling other plugins
- Using Yoast Test Helper to reset all settings (although it doesn’t allow me to reset site information for some reason)
- Cloning site to staging and local site (where I cannot replicate the issue)
- Rolling back to previous Yoast versions
What fixed the problem
Rolling back from WordPress 6.4.2 to WordPress 6.3.2
–
Since I am unable to replicate the issue on staging/local servers, I cannot change themes or disable CPT or ACF plugins. However other plugins have been disabled and did not affect the behavior.
I realize this is a temporary solution, so any insight would be much appreciated.
- The topic ‘TypeError: i is not a function | Unable to edit site content’ is closed to new replies.