Jump to content


Photo

problem generating graphics (reports)


  • Please log in to reply
1 reply to this topic

#1 Esteban

Esteban

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 25 November 2019 - 11:25 AM

Good afternoon friends. I have a small problem, after a server migration I cannot generate new graphics, the reports if they are generated but the NEW graphics cannot be generated.

 

 

Send Error Report

Here's a quick list of what will be included in the report:

Error Code: 500
Error Message: count(): Parameter must be an array or an object that implements Countable
Stack Trace: [click to toggle display]

PHP warning in C:\xampp\htdocs\crm\demo\protected\modules\charts\models\Charts.php(190)
#0 C:\xampp\htdocs\crm\demo\framework\validators\CInlineValidator.php(42): Charts->validateReportId()
#1 C:\xampp\htdocs\crm\demo\framework\validators\CValidator.php(201): CInlineValidator->validateAttribute()
#2 C:\xampp\htdocs\crm\demo\framework\base\CModel.php(159): CInlineValidator->validate()
#3 C:\xampp\htdocs\crm\demo\protected\models\X2Model.php(895): Charts->validate()
#4 C:\xampp\htdocs\crm\demo\protected\modules\reports\controllers\ReportsController.php(861): Charts->save()
#5 unknown(0): ReportsController->actionCreateChart()
#6 C:\xampp\htdocs\crm\demo\framework\web\actions\CAction.php(109): ReflectionMethod->invokeArgs()
#7 C:\xampp\htdocs\crm\demo\framework\web\actions\CInlineAction.php(47): CInlineAction->runWithParamsInternal()
#8 C:\xampp\htdocs\crm\demo\framework\web\CController.php(308): CInlineAction->runWithParams()
#9 C:\xampp\htdocs\crm\demo\framework\web\filters\CFilterChain.php(134): ReportsController->runAction()
#10 C:\xampp\htdocs\crm\demo\protected\controllers\x2base.php(581): CFilterChain->run()
#11 C:\xampp\htdocs\crm\demo\framework\web\filters\CInlineFilter.php(58): ReportsController->filterSetPortlets()
#12 C:\xampp\htdocs\crm\demo\framework\web\filters\CFilterChain.php(131): CInlineFilter->filter()
#13 C:\xampp\htdocs\crm\demo\framework\web\filters\CFilter.php(40): CFilterChain->run()
#14 C:\xampp\htdocs\crm\demo\framework\web\filters\CFilterChain.php(131): FileUploadsFilter->filter()
#15 C:\xampp\htdocs\crm\demo\framework\web\filters\CFilter.php(40): CFilterChain->run()
#16 C:\xampp\htdocs\crm\demo\framework\web\filters\CFilterChain.php(131): X2AjaxHandlerFilter->filter()
#17 C:\xampp\htdocs\crm\demo\framework\web\CController.php(291): CFilterChain->run()
#18 C:\xampp\htdocs\crm\demo\framework\web\CController.php(265): ReportsController->runActionWithFilters()
#19 C:\xampp\htdocs\crm\demo\framework\web\CWebApplication.php(282): ReportsController->run()
#20 C:\xampp\htdocs\crm\demo\protected\components\X2WebApplication.php(65): X2WebApplication->runController()
#21 C:\xampp\htdocs\crm\demo\framework\base\CApplication.php(185): X2WebApplication->processRequest()
#22 C:\xampp\htdocs\crm\demo\index.php(67): X2WebApplication->run()

X2Engine Version: 7.1
PHP Version: 7.3.11

 



#2 X2Clifton

X2Clifton

    Member

  • Moderators
  • 21 posts

Posted 26 November 2019 - 10:00 AM

Hi Esteban,

 

Can you update line 190 in protected\modules\charts\models\Charts.php from "if(count($report) == 0) {" to "if(is_null($report) || count($report) == 0) {" and let me know if this fixes your issue?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users