Home › Forums › Bulk Delete Addons › Scheduler for Deleting Posts by Status › Scheduler not working
We have replaced our forums with email based support system.
Please open a support ticket from our new support page.
Tagged: WP_Cron
This topic contains 30 replies, has 2 voices, and was last updated by Sudar 10 years, 3 months ago.
-
AuthorPosts
-
August 6, 2014 at 19:37 #1041
Hello,
I have set the scheduler to delete at midnight each day. But it has been two days now and nothing has been deleted. -
August 6, 2014 at 19:39 #1042
Are you able to delete the posts manually without scheduling?
Also are there any errors in your PHP error log?
-
August 6, 2014 at 19:43 #1043
Thank you for the fast response.
Yes, I am able to delete posts immediately but I’m not sure how to check the php log. -
August 6, 2014 at 20:03 #1044
Hello, I have enabled error logging and rescheduled but still not deleting. Error log is showing no messages.
-
August 6, 2014 at 20:09 #1045
Is WP Cron disabled in your wp-config.php file?
Search your wp-config.php file for the following string
WP_CRON
and post all lines that match it. -
August 6, 2014 at 20:12 #1046
There is no reference to WP_CRON in my wp-config.php file.
-
August 6, 2014 at 20:15 #1047
Okay leaves only plugin incompatibility. Kindly go to Bulk Delete -> System Info and save the system info to a file and then attach it.
Make sure you mark the reply as private so that it is not visible to others.
-
August 6, 2014 at 20:22 #1048This reply has been marked as private.
-
August 6, 2014 at 20:28 #1050
I have run out of ideas. The only suspect now is that your server may be running out of memory.
Kindly give me access to your server and I will have a detailed look at it.
-
August 6, 2014 at 20:31 #1051This reply has been marked as private.
-
August 6, 2014 at 20:33 #1052
Thanks. Please give me access to your WordPress admin console as well.
Also what is the criteria you are using to delete posts?
-
August 6, 2014 at 20:39 #1053This reply has been marked as private.
-
August 6, 2014 at 20:56 #1054
Thanks for giving me access to your site. My suspicion is correct. Your server is running out of memory when trying to delete 400 posts at a time.
I tried varying this number and your server is able to delete around 150 posts at a time without any issues. Anything above that it is running out of memory. (I have restored all the posts that I deleted)
So to be safe you can try to schedule deletion of 100 posts at a time and then run the scheduler 5-6 times a day instead of just twice.
You can delete the old scheduled job from Bulk Delete -> schedules and the schedule a new one by limiting the number of posts to around 100.
Try it out and let me know if you continue to face any issues.
-
August 6, 2014 at 21:16 #1055
Thanks.
Will test it out over the next few days and get back to you.
-
August 6, 2014 at 21:23 #1056
Cool, try it out and let me know if you face any issues.
-
August 7, 2014 at 07:48 #1062
Hi,
I tried to use bulk delete addon with 6 of my blogs on a multisite. I staggered their run time to 1 min intervals + set the max delete to 100 only as you suggested. But still it is not deleting. -
August 7, 2014 at 08:01 #1063
My reasoning that there wouldn’t be a server ram issue is because I have staggered the schedules so they don’t run at the same time and have 1 min to complete.
-
August 7, 2014 at 10:46 #1064
@Alvin,
Deleting 100 posts takes about a 40-60 seconds and scheduling things every minute will still make the server run out of RAM.
Can you kindly schedule jobs with interval of 10 minutes each and restrict the number to 100?
-
August 7, 2014 at 11:30 #1066
At the moment i only have 60 or so blogs which is fine as there are 144 10 minute intervals in a day. But suppose
If I were to get to 500 blogs on my multisite, I was wondering is there a way to put all 500 blogs on a schedule? -
August 7, 2014 at 12:06 #1067
Right now it is not possible, but adding support for multisite is on my todo list since a couple of my other users have also requested it. I will let you know once I add support for multisite.
Meanwhile if you have any more feature requests or sugggestions then kindly post them in the feature request forum http://bulkwp.com/support/forum/feature-requests/ and I will update the posts once they are implemented.
-
August 7, 2014 at 13:15 #1068
Does this mean i cannot use scheduler on more than 1 blog?
-
August 7, 2014 at 15:15 #1069
No. I just meant that you have to manually schedule on each blog and there is no way to automate it.
Once I add support for multisite, then you can just schedule the job once and execute it on all the blogs in the network.
-
August 7, 2014 at 15:55 #1071
I tried scheduling to delete 100 max posts every 10 mins and it is not deleting .. 🙁
-
August 7, 2014 at 15:57 #1072
Okay let me have a look again.
-
August 7, 2014 at 19:57 #1074
There seems to be some problem in your server. I suspect that your DB is having some issues.
When I try to view the last post page in WordPress admin console, even that is getting timed out. Check this link http://topic-hub.com/michaeljackson/wp-admin/edit.php?paged=24
I guess you might have to run mysql compact and optimize on your DB. If you have access to your mysql db then you can do it or otherwise contact your web hosting company.
-
August 7, 2014 at 20:55 #1075
OK thanks @sudar
I will check and get back to you.
-
August 7, 2014 at 22:44 #1076
Still facing the same problem. I scheduled for just a single delete….20 posts…but nothing was deleted after the schedule expired.
-
August 7, 2014 at 22:45 #1077
I forgot to say, I fixed the database problem you described. I think it was only for that instance, but the rest of the site is fine.
-
August 7, 2014 at 23:12 #1078
‘Bulk Delete Now’ works fine, so I can only conclude that the problem must be the scheduler…
-
August 8, 2014 at 09:08 #1080
Is your website getting external traffic around the time you have scheduled the jobs?
WP_CRON uses pageviews as trigger for the cron job. It is enough even if you are getting 1 or 2 pageviews. But if there is no page view at all then it may not trigger the job.
-
August 18, 2014 at 12:08 #1116
Marking this thread as resolved. Feel free to post again if you still have any more questions.
-
AuthorPosts
The forum ‘Scheduler for Deleting Posts by Status’ is closed to new topics and replies.