backend.min.js TypeError | WordPress.org

[ad_1]

Hi Team,

Getting the following on my live and staging site, across all pages on the front and back end:

Search console:
backend.min.js:1 Uncaught TypeError: Cannot set properties of null (setting ‘value’)
at HTMLDocument. (backend.min.js:1:14320)

Code in js effected in BOLD:

void 0 !== typeof r && (document.querySelector(“input[name=swcfpc_tab]”).value = r),

Looking at AI – possible fix (not accurate but may help) could be:

document.querySelector(“.swcfpc_faq_accordion”) && v();

const r = document?.querySelector(“#swcfpc_tab_links .nav-tab-active”)?.dataset?.tab;

if (typeof r !== “undefined”) {
const inputElement = document.querySelector(“input[name=swcfpc_tab]”);
if (inputElement) {
inputElement.value = r;
}
}

document.querySelector(“#swcfpc_options”)?.addEventListener(“submit”, (e) => {
s();
});

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer