Warning message remains although plugin wp-cron-http-auth up & running
-
Reproduction:
- Had Media Deduper installed on staging server for a while now.
- Recently activated HTTP Basic Auth on my Staging Server.
- Henceforth had warning:
It looks like your site is password-protected, which may interfere with Media Deduper’s ability to index your media and content.?Check our documentation?for more info and suggested troubleshooting.
Check again- I read the linked documentation, then accordingly:
- Installed + activated plugin wp-cron-http-auth, configured credentials.
- All other wp-cron related issues on the website, like plugin auto-updates, which had stalled, soon thereafter resolved themselves. So wp-cron seems to be up and running.
- Nevertheless Media Deduper’s warning remained. And I can’t get it away anymore.
- Clicking “Check again” leads to:
/wp-admin/options-general.php?page=mdd_pro&mdd_cbur_nonce=XXX
which returns HTTP 403 Forbidden with a minimalist error page “Sorry, you are not allowed to access this page” not rendered from the Webserver, but clearly rendered by WordPress itself as in the HTML it has
<title>WordPress ? Error</title>
).- Tried to delete the transient manually with wp-cli:
$ wp transient delete mdd_wp_cron_request Warning: Transient was not deleted; however, the transient does not appear to exist.
- Temporarily also disabled OPCache. Made no difference.
Henceforth this warning remains to get thrown in various Admin UI pages!
Solution
- Temporarily disable HTTP Basic Auth directives in my .htaccess.
- Go to Media Deduper’s main UI at: WordPress → Media → Manage Duplicates
wp-admin/upload.php?page=media-deduper&tab=index
- Index of Duplicate Media → Clicking “Index Media”.
? Remains stuck at 0% although HTTP Auth is off, so the server is reachable from the outside freely. - Then also disabling plugin wp-cron-http-auth.
?? Because if this is active, Media Deduper seems to assume that HTTP Auth is ON too. Whether really or not it does not check on its own anymore then, it seems. This way I send a strong signal to Media Deduper “Hey, there’s really no more HTTP Auth anymore. Try again” - Returning to: WordPress → Media → Manage Duplicates
? Media is already indexed.
? Clicking Re-Index to be sure. Works fine too. - Going to another Admin UI page (e.g. “Plugins” or “Media”).
? Now finally that warning is gone! - Now trying to re-enable HTTP Auth. The order seems to matter:
a) Re-activated the already configured wp-cron-http-auth
b) Re-enabled HTTP Auth directives in.htaccess
- All works fine now:
a) WordPress → Media → Manage Duplicates: ? Re-indexing works.
b) WordPress → Media: Upload duplicate: ? Dupe upload intercepted, warning thrown.
Followup:
- Maybe you can make your heuristics more stable to detect an existing HTTP Auth or its de-activation more reliably.
- If that’s not possible, please update your documentation with this my findings. The order of the procedure seems to make a difference.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Warning message remains although plugin wp-cron-http-auth up & running’ is closed to new replies.