I’m experiencing the following issues on my WooCommerce store and would appreciate your assistance in resolving them:Add-to-Cart Functionality Not Working:The Add-to-Cart button is not working as expected. When clicked, it either does not add products to the cart or custom add-to-cart buttons redirect to the same page instead of completing the action.
Unable to Add Products:I am unable to add new products to the store. When trying to add products through the admin panel, no products appear on the front-end, and there is no confirmation of successful addition.Scheduled Tasks Delayed:The scheduled task action_scheduler_run_queue is being delayed and not running on time. This seems to be affecting automated processes such as updating product stock, processing orders, and handling other background tasks.
I’ve tried clearing failed actions in WooCommerce > Status > Scheduled Actions, but the tasks remain delayed and continue to cause issues.I have tried basic troubleshooting steps (like disabling plugins and clearing the cache) but the problems persist. I would appreciate your help in diagnosing and fixing these issues.Looking forward to your support!
]]>All (5825) | Complete (5805) | Failed (8) | Pending (12)
I think that is a huge number.
90% are these:
2022-10-14 02:12:47 +0000
action created
2022-10-14 02:14:06 +0000
action started via WP Cron
2022-10-14 02:14:06 +0000
action complete via WP Cron
How can I stop this?
thanks,
T
Recently I had to change the permissions on on a website due to a failed restore. The permissions of some of the folders and files on the server were set to root. This apparently caused the restore plugin to not be able to restore the site due to lack of permissions of folders.
So I changed all user and groups recursively on the /var/www/ to www-data:www-data which is the username and group held by Apache.
We are using an Ubuntu with WordPress 5.8 install provided by Digital Ocean
So far, recently I’ve been noticing the Updraft Backup plugin indicating that there were some scheduled tasks overdue.
So I recently installed WP-Cron Status Checker which reports there are no issues with WP-Cron
But the overdue schedule tasks seem to raise so I installed WP Crontrol
Some of the core WordPress, and other plugins we are using are overdue since the day we had to restore and change the permissions.
We have set a few articles to get posted tomorrow, so we can see if these fail as well.
Still, how can I figure out where the issue is? I don’t know how to get any log related to WP-Cron, or any log related to the scheduled processes.
Site health also reports:
The scheduled event, wp_version_check, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.
So far, WordPress and plugin updates seem to show on the WordPress dashboard.. In fact today I got the update to WordPress 6.0.2
What can I do here to solve the issue?
Thank you.
]]>I have configured the sending of an email after a 1st purchase. This email is never sent and I see in Help then System status; Scheduled tasks that email is always pushed to the next day.
An idea ?
Thanks.
]]>I migrated a site to another host and it has some old tasks that didn’t run while on the old host. I see the message “Warning: WordPress has a number (5) of scheduled tasks which are overdue.” Regular scheduled backups are running successfully. I just need to remove the old scheduled tasks so this notice disappears.
I’m using the server’s cron, not WordPress’s cron, which I prefer.
Is there any way to delete these scheduled tasks directly from the database? I’m very familiar with editing within the database, so please be as technical as you can. I think I tracked them down to entries within the “wp_option” table, just not sure exactly what to change.
Thanks.
]]>Warning: WordPress has a number (212) of scheduled tasks which are overdue. Unless this is a development site, this probably means that the scheduler in your WordPress install is not working. Read this page for a guide to possible causes and how to fix it.
Are the scheduled task a general word press thing or to do with this plug in and does this message come up if i have no tasks or should these tasks be happening automatically or do I need to make them happen?
Sorry…confused
]]>The issue:
I had an issue with cron jobs and scheduled tasks not working on my install for quite a while.
My posts always missed and scheduled backups and scans were also not running. There were many reports and errors about cron jobs not working……
The Culprit:
After a long troubleshooting session I was able to isolate WP Hide & Security Enhancer as the cause. I also took time to pinpoint the specific setting that caused my cron jobs not running.
The cause was this setting —- > Block other wp-*.php files — Seems that blocking the wp-cron.php file prevented cron jobs from running
It’s located here in the admin: WP Hide — > Rewrite — > Root Files
The solution:
Disabling “Block other wp-*.php files” by switching it to no was the only solution that worked fine (at least for me).
Posted here for others experiencing similar cron jobs not running issues with this plugin.
@nsp-code Kindly look into this.
I would have recommended that there are separate settings for each files listed under “Block other wp-*.php files” so it gives users more control,
but seeing the sheer number of files that setting blocks means there would be too many switches to toggle.
Thanks again @nsp-code.
Regards
Ike.
https://www.ads-software.com/plugins/wp-hide-security-enhancer/
]]>I have a website on a hosting provider which only offers limited scheduled tasks capabilities. In few words, I can setup a scheduled task via their control panel but only insert a URL within the domain as the task (so no commands or else) on top of selecting the time and recurrencies.
I have disabled WP CRON in wp-config.php.
In the scheduled task I have tried different URLs with no luck:
– domain.ext/wp-cron.php
– domain.ext/wp-cron.php?doing_wp_cron
– domain.ext/wp-cron.php?doing_wp_cron=1
– domain.ext/wp-cron.php?doing_wp_cron=true
(They would not work even before disabling WP CRON JOB )
It does not matter what I do, scheduled posts do not get published.
I would like to know if there is anybody with a similar scenario and any idea of a possible workaround. I thought about creating an alternative “cron” file myself with a PHP script to call with the scheduled task, but if I could avoid this would be way better.
Thank you for any help!
It makes our server run file scans almost continuously. I already tried deactivating the plugin and manually removing all the wordfence_start_scheduled_scan
scheduled events in cron (almost 200 in each site), then reactivating them, but as of this morning, they’re coming back in our second and third sites.
I grepped and saw somewhere in the code that WF will switch_to_blog
and do something, didn’t have a chance to dig in too much.
If I remove all WF cron jobs (hourly, daily_autoUpdate, daily, scheduled_scan…) from the second and third sites, will parts of the site, like post content, still be scanned when the cron job left in the primary site runs?
Thanks!
https://www.ads-software.com/plugins/wordfence/
]]>I used an error log plugin (Error Log Dashboard Widget) to figure out the culprit. The following error was found recorded in the error log.
PHP Fatal error: Call to undefined function w3tc_button_link() in /home/virtudwt/public_html/wp-content/plugins/w3-total-cache/lib/W3/GenericAdminEnvironment.php on line 99)
In summary I navigated to the CDN section of W3TC and unchecked the option “Don’t replace URLs for following user roles”. After which the scheduled tasks began to function again. I re-enabled the above option and checked “Administrator” The problem returned.
I really want W3TC to prevent requests to the CDN for logged in users. Any help in regard to solving this problem will be much appreciated.
https://www.ads-software.com/plugins/w3-total-cache/
]]>