Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

Fatal error on CB Activity

11 years 9 months ago #218701 by deltafidesign
Fatal error on CB Activity was created by deltafidesign
I do some actions with a test account. Those actions are correctly shown in the activity page. Then I delete user, and if I go watch the activity page I see a blank page. I got this error: Fatal error: Call to a member function replaceUserVars() on a non-object in /......../public_html/components/com_comprofiler/plugin/user/plug_cbactivity/cbactivity.class.php on line 1113

Maybe a bug, right?

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
11 years 9 months ago #218723 by nant
Replied by nant on topic Re: Fatal error on CB Activity

deltafidesign wrote: I do some actions with a test account. Those actions are correctly shown in the activity page. Then I delete user, and if I go watch the activity page I see a blank page. I got this error: Fatal error: Call to a member function replaceUserVars() on a non-object in /......../public_html/components/com_comprofiler/plugin/user/plug_cbactivity/cbactivity.class.php on line 1113

Maybe a bug, right?


Versions please?

How did you delete the user?
CB User manager?

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

11 years 9 months ago #218727 by deltafidesign
Replied by deltafidesign on topic Re: Fatal error on CB Activity
CB 1.9
CB Activity 2.1.3

I use DT delete CB plugin to allow user delete their account.

If I delete them myself by backend no errors. When users delete them account using the pluign, I got this error.

But I must allow users delete their account.

Any solution?

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
11 years 9 months ago #218732 by nant
Replied by nant on topic Re: Fatal error on CB Activity

deltafidesign wrote: CB 1.9
CB Activity 2.1.3

I use DT delete CB plugin to allow user delete their account.

If I delete them myself by backend no errors. When users delete them account using the pluign, I got this error.

But I must allow users delete their account.

Any solution?


If deletion from CB User manager works, then the issue is the delete process you are using.

Guessing that that plugin is not firing the triggers needed in order for other plugins to clean-up their database tables.

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

11 years 9 months ago #218733 by deltafidesign
Replied by deltafidesign on topic Re: Fatal error on CB Activity
Thanks. I'll inform DT plugin developers.

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

11 years 9 months ago #218750 by deltafidesign
Replied by deltafidesign on topic Re: Fatal error on CB Activity
In the meanwhile I wait for DTH Developers answer, I've added this line in the dt.deleteme.php file:
Code:
$_PLUGINS->registerFunction( 'onAfterDeleteUser', 'userDeleted', 'getDemoTab' );

just before the line
Code:
class getDemoTab extends cbTabHandler {
.

I've done a test, deleting user with the plugin by front-end and now it seems work fine.

Should it be enough? Or do I miss something else I should add with triggers or something else?

Then, if I delete users using back-end CB function or by front-end with this plugin, in both cases if I check the CB Activity list in back end, I can see that activity are stored also for deleted users, just do not show "Owner". Is it correct?

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

Moderators: beatnantkrileon
Powered by Kunena Forum