Hi. I’ve noticed an issue with the admin editor not working on my site (a common complaint around WordPress 4.9), and started on a mission to resolve the problem. On installing the WordPress Health Check plugin, it has identified DWQA Pro as causing an issue with loopback and WP-Cron
Testing dw-question-answer-pro: The loopback request to your site took too long to complete, this may prevent WP_Cron from working, along with theme and plugin editors.
Disabling DWQA Pro resolves the problem, but this removes core functionality from my site. Any thoughts please on how to get this resolved ?
Thanks
Hi,
Another way to fix this, is to disable the cron in the wp-config.php
define('DISABLE_WP_CRON', true);
That’s true, yes. In fact, I already have that set in wp-config.php as I already make use of manual Cron.
Setup manual cron job for wp-cron.php
For most WordPress users having the wp-cron.php script run every 12 hours is perfectly fine. That would be just 2 executions in a day, compared to possibly hundreds, or even thousands if you had a lot of website traffic that day.
Log into cPanel
Click on cron jobs Under the Advanced section, click on Cron Jobs.
Select Once an hour from the Common Settings drop-down.
Now select Every 12 hours from the Hour drop-down.
Finally fill in the code to run the cron job and click Add New Cron Job – code: “cd /home/username/public_html; php -q wp-cron.php” (Where username is your cPanel user name.)
Keep in mind that the /home/username/public_html path would be for a primary domain, if you’re using an addon domain, or have WordPress installed in a sub-directory you’ll want to be sure to update your path.
You should see that your new cron job was added successfully.
Now WordPress should be safely running scheduled tasks via the wp-cron.php script, but only at set intervals.
Dominic,
I think you may have misunderstood – I already have a manual cron running as I mentioned in my answer above ?
Regds
Please login or Register to submit your answer