• Resolved poppydev

    (@poppydev)


    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

    (@poppydev)

    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 3 months ago by poppydev.
    frenchomatic

    (@frenchomatic)

    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/) to see that but there are lots of ways. If I replace the first filter in cloudflare with URI wildcard https://*.domain.com/*, the cache status becomes a hit.

    Plugin Author optimole

    (@optimole)

    Right, we’ll update that rule as well since it was a confusion with the current implementation.

    frenchomatic

    (@frenchomatic)

    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

    (@poppydev)

    Hi @optimole and @frenchomatic, thank you for the feedback and a possible fix for the Cloudflare integration issue. I might wait on the plugin update.

    @optimole is the issue with the js already been shared, or is this a new issue/bug that needs resolving?

    Thanks.

    Plugin Author optimole

    (@optimole)

    Let us know if the new version fixes the issues reported.

    Thread Starter poppydev

    (@poppydev)

    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).

    and

    background-redux-new.js:1
    Uncaught (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

    (@frenchomatic)

    Try directly purging the cache for everything on the cloudflare admin panel. Worth a try.

    Thread Starter poppydev

    (@poppydev)

    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

    (@ionutn)

    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

    (@optimole)

    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)
  • You must be logged in to reply to this topic.