Bug #3833 closed
Deleting a user results in invalid user object being passed to CBSubs integrations
Added by krileon almost 13 years ago.
Updated about 11 years ago.
Start date:
28 December 2012
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
Call Stack
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
Assignee changed from beat to krileon
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.
Project changed from 2 to CB
Target version deleted (CbSubs 3.0.0 )
Status changed from Assigned to Resolved
Assignee changed from krileon to beat
% Done changed from 0 to 100
Assignee changed from beat to krileon
Target version set to CB 2.0.0
Status changed from Resolved to Closed
Also available in: PDF
Atom