Jump to content


Charl Beetge

Member Since 21 Feb 2018
Offline Last Active Jul 10 2020 12:38 AM
-----

Posts I've Made

In Topic: Error 500 on Summation Report

27 April 2020 - 03:06 AM

Jack, thank you for the fix, works well, much appreciated  :D


In Topic: Error 500 on Summation Report

23 April 2020 - 01:46 AM

Hi FlorenceSa, no I've not been able to resolve this and have not heard from anybody at X2 to get it resolved, hopefully soon


In Topic: Error 500 on Summation Report

21 April 2020 - 05:46 AM

Hi Jack

 

I cannot open any of the saved summation reports so it's not a specific summation report. It is also when I try and create a new summation report. When I click and open the reports module and have the report types top left, I click on the Summation Report to create a new report, the window opens but the circle keeps on turning as if it's not loading; I then click on INSPECT, get 1x error in the console section; I click on the error and see the Error 500 message with the following lines -

 

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 /home/contactzco/public_html/agrinc/protected/modules/reports/components/SummationReportGridView.php(108)
#0 /home/contactzco/public_html/agrinc/framework/zii/widgets/grid/CGridView.php(363): SummationReportGridView->initColumns()
#1 /home/contactzco/public_html/agrinc/protected/components/X2GridView/X2GridViewBase.php(598): SummationReportGridView->init()
#2 /home/contactzco/public_html/agrinc/framework/web/CBaseController.php(147): SummationReportGridView->init()
#3 /home/contactzco/public_html/agrinc/protected/controllers/x2base.php(836): ReportsController->createWidget()
#4 /home/contactzco/public_html/agrinc/protected/modules/reports/components/reports/views/_summationReport.php(53): ReportsController->widget()
#5 /home/contactzco/public_html/agrinc/framework/web/CBaseController.php(126): require()
#6 /home/contactzco/public_html/agrinc/framework/web/CBaseController.php(95): ReportsController->renderInternal()
#7 /home/contactzco/public_html/agrinc/framework/web/CController.php(872): ReportsController->renderFile()
#8 /home/contactzco/public_html/agrinc/protected/modules/reports/components/reports/X2SummationReport.php(328): ReportsController->renderPartial()
#9 /home/contactzco/public_html/agrinc/protected/modules/reports/components/reports/X2SummationReport.php(161): X2SummationReport->generate()
#10 /home/contactzco/public_html/agrinc/protected/controllers/x2base.php(824): X2SummationReport->run()
#11 /home/contactzco/public_html/agrinc/protected/modules/reports/controllers/ReportsController.php(735): ReportsController->widget()
#12 /home/contactzco/public_html/agrinc/protected/modules/reports/controllers/ReportsController.php(748): ReportsController->generate()
#13 unknown(0): ReportsController->actionSummationReport()
#14 /home/contactzco/public_html/agrinc/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs()
#15 /home/contactzco/public_html/agrinc/framework/web/actions/CInlineAction.php(47): CInlineAction->runWithParamsInternal()
#16 /home/contactzco/public_html/agrinc/framework/web/CController.php(308): CInlineAction->runWithParams()
#17 /home/contactzco/public_html/agrinc/framework/web/filters/CFilterChain.php(134): ReportsController->runAction()
#18 /home/contactzco/public_html/agrinc/protected/controllers/x2base.php(586): CFilterChain->run()
#19 /home/contactzco/public_html/agrinc/framework/web/filters/CInlineFilter.php(58): ReportsController->filterSetPortlets()
#20 /home/contactzco/public_html/agrinc/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#21 /home/contactzco/public_html/agrinc/framework/web/filters/CFilter.php(40): CFilterChain->run()
#22 /home/contactzco/public_html/agrinc/framework/web/filters/CFilterChain.php(131): FileUploadsFilter->filter()
#23 /home/contactzco/public_html/agrinc/framework/web/filters/CFilter.php(40): CFilterChain->run()
#24 /home/contactzco/public_html/agrinc/framework/web/filters/CFilterChain.php(131): X2AjaxHandlerFilter->filter()
#25 /home/contactzco/public_html/agrinc/framework/web/CController.php(291): CFilterChain->run()
#26 /home/contactzco/public_html/agrinc/framework/web/CController.php(265): ReportsController->runActionWithFilters()
#27 /home/contactzco/public_html/agrinc/framework/web/CWebApplication.php(282): ReportsController->run()
#28 /home/contactzco/public_html/agrinc/protected/components/X2WebApplication.php(66): X2WebApplication->runController()
#29 /home/contactzco/public_html/agrinc/framework/base/CApplication.php(185): X2WebApplication->processRequest()
#30 /home/contactzco/public_html/agrinc/index.php(68): X2WebApplication->run()

X2Engine Version: 8.0
PHP Version: 7.3.16

 

See attached screenshot of my screen with error. Hope this can help to resolve the problem.

 

Thank you

 

Charl