Project

General

Profile

Actions

Bug #3833

closed

Deleting a user results in invalid user object being passed to CBSubs integrations

Added by krileon over 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
28 December 2012
Due date:
% Done:

100%

Estimated time:

Description

Fatal error: Call to undefined method stdClass::store() in D:\xampp\htdocs\cb\components\com_comprofiler\plugin\user\plug_cbpaidsubscriptions\plugin\cbsubssqlactions\cbsubs.sqlactions.php on line 113

The above happens when you have SQL Actions configured for a plan. A user is then subscribed to that plan and that user is then deleted.

Workaround is to first remove the subscription then delete the user.


Files

3833.patch (1.13 KB) 3833.patch krileon, 28 December 2012 16:04
Actions #1

Updated by krileon over 11 years ago

Call Stack
  1. Time Memory Function Location
    1 0.0011 423576 {main}( ) ..\index.php:0
    2 0.5430 17905360 JAdministrator->dispatch( ) ..\index.php:46
    3 0.5449 17989120 JComponentHelper::renderComponent( ) ..\application.php:153
    4 0.5530 17997168 JComponentHelper::executeComponent( ) ..\helper.php:351
    5 0.5542 18045328 require_once( 'D:\xampp\htdocs\cb\administrator\components\com_comprofiler\admin.comprofiler.php' ) ..\helper.php:383
    6 0.5560 18236232 require( 'D:\xampp\htdocs\cb\administrator\components\com_comprofiler\admin.comprofiler.controller.php' ) ..\admin.comprofiler.php:29
    7 0.5742 18394536 _CBloadController( ) ..\admin.comprofiler.controller.php:251
    8 0.6819 20185608 require_once( 'D:\xampp\htdocs\cb\administrator\components\com_comprofiler\controller\controller.default.php' ) ..\admin.comprofiler.controller.php:113
    9 0.7963 23715312 removeUsers( ) ..\controller.default.php:58
    10 0.7963 23715312 deleteUsers( ) ..\controller.default.php:1175
    11 0.8020 23722080 cbDeleteUser( ) ..\controller.default.php:1152
    12 1.1537 50456912 cbPluginHandler->trigger( ) ..\comprofiler.class.php:2408
    13 1.1548 50460432 cbPluginHandler->call( ) ..\plugin.class.php:541
    14 1.1840 51577824 call_user_func_array ( ) ..\plugin.class.php:583
    15 1.1840 51577872 getcbpaidsubscriptionsTab->onBeforeDeleteUser( ) ..\plugin.class.php:583
    16 1.1853 51584816 cbpaidUsersubscriptionRecord->deactivate( ) ..\cbpaidsubscriptions.php:973
    17 1.1980 51665016 cbpaidUsersubscriptionRecord->setBlockPaidUser( ) ..\cbpaidUsersubscriptionRecord.php:889
    18 1.1980 51665112 cbpaidSomething->triggerIntegrations( ) ..\cbpaidUsersubscriptionRecord.php:1008
    19 1.2829 54521848 cbPluginHandler->trigger( ) ..\cbpaidSomething.php:680
    20 1.4330 54946448 cbPluginHandler->call( ) ..\plugin.class.php:541
    21 1.4331 54950160 call_user_func_array ( ) ..\plugin.class.php:583
    22 1.4331 54950240 getcpaycbsqlactionsTab->onCPayUserStateChange( ) ..\plugin.class.php:583
Actions #2

Updated by krileon over 11 years ago

  • Assignee changed from beat to krileon
Actions #3

Updated by krileon over 11 years ago

Bug appears to be in CB it self as the delete user CB function is not passing a CB user object to the delete user triggers. Patch ensures the query results are loaded into CB user objects instead of returning a stdClass.

Actions #4

Updated by beat over 11 years ago

  • Project changed from 2 to CB
  • Target version deleted (CbSubs 3.0.0)
Actions #5

Updated by krileon over 11 years ago

  • Status changed from Assigned to Resolved
  • Assignee changed from krileon to beat
  • % Done changed from 0 to 100
Actions #6

Updated by krileon almost 11 years ago

  • Assignee changed from beat to krileon
Actions #7

Updated by krileon almost 11 years ago

  • Target version set to CB 2.0.0
Actions #8

Updated by beat over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF