Scheduler not working

We have replaced our forums with email based support system.

Please open a support ticket from our new support page.

Tagged: 

This topic contains 30 replies, has 2 voices, and was last updated by  Sudar 9 years, 8 months ago.

  • Author
    Posts
  • #1041

    Alvin Tung
    Participant

    Hello,
    I have set the scheduler to delete at midnight each day. But it has been two days now and nothing has been deleted.

  • #1042

    Sudar
    Keymaster

    Are you able to delete the posts manually without scheduling?

    Also are there any errors in your PHP error log?

  • #1043

    Alvin Tung
    Participant

    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.

  • #1044

    Alvin Tung
    Participant

    Hello, I have enabled error logging and rescheduled but still not deleting. Error log is showing no messages.

  • #1045

    Sudar
    Keymaster

    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.

  • #1046

    Alvin Tung
    Participant

    There is no reference to WP_CRON in my wp-config.php file.

  • #1047

    Sudar
    Keymaster

    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.

  • #1048

    Alvin Tung
    Participant
    This reply has been marked as private.
  • #1050

    Sudar
    Keymaster

    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.

  • #1051

    Alvin Tung
    Participant
    This reply has been marked as private.
  • #1052

    Sudar
    Keymaster

    Thanks. Please give me access to your WordPress admin console as well.

    Also what is the criteria you are using to delete posts?

  • #1053

    Alvin Tung
    Participant
    This reply has been marked as private.
  • #1054

    Sudar
    Keymaster

    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.

  • #1055

    Alvin Tung
    Participant

    Thanks.

    Will test it out over the next few days and get back to you.

  • #1056

    Sudar
    Keymaster

    Cool, try it out and let me know if you face any issues.

  • #1062

    Alvin Tung
    Participant

    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.

  • #1063

    Alvin Tung
    Participant

    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.

  • #1064

    Sudar
    Keymaster

    @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?

  • #1066

    Alvin Tung
    Participant

    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?

  • #1067

    Sudar
    Keymaster

    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.

  • #1068

    Alvin Tung
    Participant

    Does this mean i cannot use scheduler on more than 1 blog?

  • #1069

    Sudar
    Keymaster

    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.

  • #1071

    Alvin Tung
    Participant

    @sudar

    I tried scheduling to delete 100 max posts every 10 mins and it is not deleting .. 🙁

  • #1072

    Sudar
    Keymaster

    Okay let me have a look again.

  • #1074

    Sudar
    Keymaster

    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.

  • #1075

    Alvin Tung
    Participant

    OK thanks @sudar

    I will check and get back to you.

  • #1076

    Alvin Tung
    Participant

    @sudar

    Still facing the same problem. I scheduled for just a single delete….20 posts…but nothing was deleted after the schedule expired.

  • #1077

    Alvin Tung
    Participant

    @sudar

    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.

  • #1078

    Alvin Tung
    Participant

    @sudar

    ‘Bulk Delete Now’ works fine, so I can only conclude that the problem must be the scheduler…

  • #1080

    Sudar
    Keymaster

    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.

  • #1116

    Sudar
    Keymaster

    Marking this thread as resolved. Feel free to post again if you still have any more questions.

The forum ‘Scheduler for Deleting Posts by Status’ is closed to new topics and replies.