• Hi there, I really love this plugin, however I’m facing one issue with it. It’s causing the settings page for one of my other plugins to be constantly refreshing. The plugin it conflicts with is JetEngine from Crocoblock (https://crocoblock.com/plugins/jetengine/). When I go to the JetEngine main settings page (/wp-admin/admin.php?page=jet-engine) the page keeps refreshing continuously in a loop. Disabling maintenance mode from the toggle does not resolve it, but deactivating your plugin does resolve it.

    This doesn’t happen on any other page (including the other JetEngine settings pages). I’m not sure how to debug it, can you point in the right direction? Is there something I can provide that would be useful for you to figure out what’s causing it?

Viewing 1 replies (of 1 total)
  • Thread Starter aaylasecura

    (@aaylasecura)

    Ok, update. I set a breakpoint on onbeforeunload and called console.trace to see what happened just prior to that, and I was able to find that it was JetEngine’s JavaScript that reloaded the page from within a onhashchange handler they defined. The trace before that was Maintenance Mode’s admin-script.js (line 69) that triggers hashchange. Looks like you’re setting a handler for onhashchange yourself but then manually triggering that event in order to execute the function. Is it possible to update it so that you initially call the function you attach to the handler without triggering hashchange event on your end?

    • This reply was modified 10 months, 3 weeks ago by aaylasecura.
    • This reply was modified 10 months, 3 weeks ago by aaylasecura. Reason: clarified
Viewing 1 replies (of 1 total)
  • The topic ‘Causing a refresh loop on one admin page’ is closed to new replies.