TypeError

Description

count(): Argument #1 ($value) must be of type Countable|array, null given

Source File

/home/frank/web/doalot.org/public_html/protected/models/SubscriptionPlan.php(1035)

01023:        }
01024:        
01025:        
01026:        
01027:        /*
01028:         * function commonjobsubscription()
01029:         * commonjob part1
01030:         */
01031:        public function commonjobSubscription()
01032:        {
01033:             $model=new SubscriptionPlan;
01034:             $data_subscription = $model->severalSubscription();//from main
01035: if(count($data_subscription)>0)
01036: { 01037: foreach ($data_subscription as $subs) 01038: { 01039: $subscription_mapping_id=$subs['subscription_mapping_id']; 01040: $subcription_id=$subs['id']; 01041: $subcription_present_plan_id=$subs['plan_id']; 01042: $subcription_subscription_type=$subs['subscription_type'];//fk id 01043: $subscription_start_date=$subs['subscription_start_date']; 01044: $subcrStartDateTimestamp= strtotime($subscription_start_date); 01045: $subscription_end_date=$subs['subscription_end_date']; 01046: $subcrEndDateTimestamp= strtotime($subscription_end_date); 01047: $subscription_status=$subs['subscription_status'];

Stack Trace

#0 /home/frank/web/doalot.org/public_html/protected/components/CommonRequire.php(226): SubscriptionPlan->commonjobSubscription()
#1 /home/frank/web/doalot.org/public_html/protected/views/layouts/main_org.php(326): CommonRequire::commonjob()
#2 /home/frank/web/doalot.org/public_html/framework/web/CBaseController.php(119): require('...')
#3 /home/frank/web/doalot.org/public_html/framework/web/CBaseController.php(88): CBaseController->renderInternal()
#4 /home/frank/web/doalot.org/public_html/framework/web/widgets/CContentDecorator.php(78): CBaseController->renderFile()
#5 /home/frank/web/doalot.org/public_html/framework/web/widgets/CContentDecorator.php(56): CContentDecorator->decorate()
#6 /home/frank/web/doalot.org/public_html/framework/web/widgets/COutputProcessor.php(45): CContentDecorator->processOutput()
#7 /home/frank/web/doalot.org/public_html/framework/web/CBaseController.php(199): COutputProcessor->run()
#8 /home/frank/web/doalot.org/public_html/framework/web/CBaseController.php(294): CBaseController->endWidget()
#9 /home/frank/web/doalot.org/public_html/protected/views/layouts/organization.php(7): CBaseController->endContent()
#10 /home/frank/web/doalot.org/public_html/framework/web/CBaseController.php(119): require('...')
#11 /home/frank/web/doalot.org/public_html/framework/web/CBaseController.php(88): CBaseController->renderInternal()
#12 /home/frank/web/doalot.org/public_html/framework/web/CController.php(748): CBaseController->renderFile()
#13 /home/frank/web/doalot.org/public_html/protected/controllers/DonationsController.php(516): CController->render()
#14 /home/frank/web/doalot.org/public_html/framework/web/actions/CInlineAction.php(57): DonationsController->actionDonate()
#15 /home/frank/web/doalot.org/public_html/framework/web/CController.php(300): CInlineAction->run()
#16 /home/frank/web/doalot.org/public_html/framework/web/filters/CFilterChain.php(133): CController->runAction()
#17 /home/frank/web/doalot.org/public_html/protected/controllers/DonationsController.php(58): CFilterChain->run()
#18 /home/frank/web/doalot.org/public_html/framework/web/filters/CInlineFilter.php(59): DonationsController->filterAdminActions()
#19 /home/frank/web/doalot.org/public_html/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter()
#20 /home/frank/web/doalot.org/public_html/framework/web/CController.php(283): CFilterChain->run()
#21 /home/frank/web/doalot.org/public_html/framework/web/CController.php(257): CController->runActionWithFilters()
#22 /home/frank/web/doalot.org/public_html/framework/web/CWebApplication.php(324): CController->run()
#23 /home/frank/web/doalot.org/public_html/framework/web/CWebApplication.php(121): CWebApplication->runController()
#24 /home/frank/web/doalot.org/public_html/framework/base/CApplication.php(135): CWebApplication->processRequest()
#25 /home/frank/web/doalot.org/public_html/index.php(14): CApplication->run()
#26 {main}
2024-03-28 13:00:31 Apache/2.4.57 (Debian) mod_fcgid/2.3.9 OpenSSL/3.0.11 Yii Framework/1.1.5