Title: backend.min.js TypeError
Last modified: August 28, 2024

---

# backend.min.js TypeError

 *  Resolved [poppydev](https://wordpress.org/support/users/poppydev/)
 * (@poppydev)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/)
 * 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();});

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

 *  Thread Starter [poppydev](https://wordpress.org/support/users/poppydev/)
 * (@poppydev)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-17980261)
 * Also having issues with Cloudflare intergration:
 * Getting this when testing:
 * Status
    - Cloudflare integration has an issue.
    - Disk Page Caching is functional.
 * All setting are the same and have been working fine since update.
 * I did notice the ‘Enable’ button stays in the ‘Disabled’ state when trying to
   activate. Maybe this is the cause.
    -  This reply was modified 1 year, 9 months ago by [poppydev](https://wordpress.org/support/users/poppydev/).
 *  [frenchomatic](https://wordpress.org/support/users/frenchomatic/)
 * (@frenchomatic)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-17980294)
 * I confirm the same behaviour when updating the plugin on 4 different sites. Cloudflare
   button is set to disabled. Turning it on enables cloudflare connection but I 
   still don’t get page caching. Test button gives undefined with a green tick which
   the author knows about.
 * Cache rules are created instead of the usual page rule but it appears to me that
   the first filter hostname equals domain.com is not working for some reason. Cache
   status remains as dynamic (I used [https://hackertarget.com/http-header-check/](https://hackertarget.com/http-header-check/))
   to see that but there are lots of ways. If I replace the first filter in cloudflare
   with URI wildcard [https://*.domain.com/*](https://*.domain.com/*), the cache
   status becomes a hit.
    -  This reply was modified 1 year, 9 months ago by [frenchomatic](https://wordpress.org/support/users/frenchomatic/).
 *  Plugin Author [Optimole](https://wordpress.org/support/users/optimole/)
 * (@optimole)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-17980304)
 * Right, we’ll update that rule as well since it was a confusion with the current
   implementation.
 *  [frenchomatic](https://wordpress.org/support/users/frenchomatic/)
 * (@frenchomatic)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-17980317)
 * Glad to help. Great plugin but please don’t add complexities with more functionality.
   Just make sure it continues to work as wordpress and cloudflare update. It has
   been one of the best plugins over the last few years to have on a wordpress install.
 *  Thread Starter [poppydev](https://wordpress.org/support/users/poppydev/)
 * (@poppydev)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-17980331)
 * Hi [@optimole](https://wordpress.org/support/users/optimole/) and [@frenchomatic](https://wordpress.org/support/users/frenchomatic/),
   thank you for the feedback and a possible fix for the Cloudflare integration 
   issue. I might wait on the plugin update.
   [@optimole](https://wordpress.org/support/users/optimole/)
   is the issue with the js already been shared, or is this a new issue/bug that
   needs resolving?
 * Thanks.
 *  Plugin Author [Optimole](https://wordpress.org/support/users/optimole/)
 * (@optimole)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-17980624)
 * Let us know if the new version fixes the issues reported.
 *  Thread Starter [poppydev](https://wordpress.org/support/users/poppydev/)
 * (@poppydev)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-17980770)
 * Nope still getting issues. Had to revert back to v4.7.13. The only issue I am
   facing now is this when testing the plugin: I get a green tick followed with “
   undefined”. close.
   The new version was causing issues with WP text editor and
   making it invisible (as others have reported).
 * I still get:
 * Unchecked runtime.lastError: The page keeping the extension port is moved into
   back/forward cache, so the message channel is closed (Possibly related. Doesn’t
   appear when using v.4.7.13).
   andbackground-redux-new.js:1Uncaught (in promise)
   Error: No tab with id: 1278742656 (Which is another plugin that is probably conflicting
   somehow).
 * I am going to test on a local build first and leave the live on the version above(
   That seems to be working for now) and get back to you. Hopefully some bugs others
   are reporting are ironed out by then.
 * Regards
 *  [frenchomatic](https://wordpress.org/support/users/frenchomatic/)
 * (@frenchomatic)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-17980859)
 * Try directly purging the cache for everything on the cloudflare admin panel. 
   Worth a try.
 *  Thread Starter [poppydev](https://wordpress.org/support/users/poppydev/)
 * (@poppydev)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-17980882)
 * I tried all that when updating the plugin to the latest version, and reverting
   back to the version before 5.0.0. I have disabled the plugin, purged cache in
   Cloudflare, then activated the plugin, connected it again and purged with no 
   effect at all. I can only assume the plugin cache is conflicting with Cloudflare’s
   now that you have made it independent.
   I will do some digging on a local build
   and leave the live as it is for now on v4.7.13 as it seems to be working fine
   on the back and front end when checking.
 * It might be I reset it and start again. Clean slate and just copy (rather then
   import) my setting to see if this helps.
 * Regards
 *  Plugin Support [Ionut Neagu](https://wordpress.org/support/users/ionutn/)
 * (@ionutn)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-17980896)
 * Have you tried cleaning the browser cache?
   We haven’t changed any of the Cloudflare
   functionality really in this version, we just allowed everyone to use it without
   Cloudflare as well.
 *  Plugin Author [Optimole](https://wordpress.org/support/users/optimole/)
 * (@optimole)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-18007911)
 * Hey, 
   We just released a new version fixing some reported issues, let me know
   if it works now.

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

The topic ‘backend.min.js TypeError’ is closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 11 replies
 * 4 participants
 * Last reply from: [Optimole](https://wordpress.org/support/users/optimole/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/backend-min-js-typeerror/#post-18007911)
 * Status: resolved