Skip to Content Skip to Menu

Activity cleanup

3 years 9 months ago - 3 years 9 months ago #322450 by silverman1
Activity cleanup was created by silverman1
How does the Cleanup work? I tryed setting the Activity Duration to "-2 DAYS" and waited 2 days but no activity was removed. Do I need to use "Click to Process" for the cleaningprocess to start?

When I use the "Click to Process" link I get a blank page with this:
Notice: Undefined offset: 507 in /libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 871 Notice: Trying to get property 'published' of non-object in /libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 871
Last edit: 3 years 9 months ago by silverman1.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
3 years 9 months ago #322471 by krileon
Replied by krileon on topic Activity cleanup

How does the Cleanup work?

You either select from the durations available or provide one. It works backwards from the current date. So if you set -1 YEAR it will subtract and year from the current date and anything older than that should be deleted.

I tryed setting the Activity Duration to "-2 DAYS" and waited 2 days but no activity was removed.

It always works off UTC so it may not be exactly 2 days based off the datetime shown when viewing the activity on frontend.

Do I need to use "Click to Process" for the cleaningprocess to start?

Yes, the link must be used for the clean up to trigger. If you need it ran regularly typically you do so using a CRON task.

When I use the "Click to Process" link I get a blank page with this:
Notice: Undefined offset: 507 in /libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 871 Notice: Trying to get property 'published' of non-object in /libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 871

I'm not seeing any errors in my tests. That error means a call to a plugin is trying to be made that doesn't exist. Within CB > Plugin Management what plugin has an ID of 507?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

3 years 9 months ago - 3 years 9 months ago #322493 by silverman1
Replied by silverman1 on topic Activity cleanup

I'm not seeing any errors in my tests. That error means a call to a plugin is trying to be made that doesn't exist. Within CB > Plugin Management what plugin has an ID of 507?

It's the CB Activity plugin that has id 507
Last edit: 3 years 9 months ago by silverman1.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
3 years 9 months ago #322494 by krileon
Replied by krileon on topic Activity cleanup
Ensure CB Activity within CB > Plugin Management is Published and its Access is set to Public. For some reason it couldn't be accessed.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

3 years 9 months ago #322495 by silverman1
Replied by silverman1 on topic Activity cleanup
I tried it while logged in as super user in frontend, then it works! With no error message. It shows a blank webpage after clicking the link but I assume that's normal? I see that I have set the Activity plugin as access level - Registered. Maybe that's why?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
3 years 9 months ago #322497 by krileon
Replied by krileon on topic Activity cleanup

It shows a blank webpage after clicking the link but I assume that's normal?

Yes, a blank page is normal. It's meant to be as lightweight of an operation as possible and primarily to be used with a CRON task.

I see that I have set the Activity plugin as access level - Registered. Maybe that's why?

Correct, that's why it was not working while logged out.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: silverman1

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum