Brown 0 Posted February 15 Report Share Posted February 15 Every time I go to the All Lists view I get the following error message. Error Code: 500Error Message: Trying to access array offset on value of type nullStack Trace: [click to toggle display] PHP warning in C:\xampp\htdocs\X2CRM\x2engine\protected\modules\x2Leads\components\X2LeadsDataColumn.php(46) #0 C:\xampp\htdocs\X2CRM\x2engine\framework\zii\widgets\grid\CGridColumn.php(119): X2LeadsDataColumn->renderFilterCellContent() #1 C:\xampp\htdocs\X2CRM\x2engine\protected\components\X2GridView\X2GridViewBase.php(1061): X2LeadsDataColumn->renderFilterCell() #2 C:\xampp\htdocs\X2CRM\x2engine\protected\components\X2GridView\X2GridViewBase.php(1032): X2GridView->renderFilterWithOptions() #3 C:\xampp\htdocs\X2CRM\x2engine\protected\components\X2GridView\X2GridViewBase.php(784): X2GridView->renderTableHeader() #4 C:\xampp\htdocs\X2CRM\x2engine\framework\zii\widgets\CBaseListView.php(181): X2GridView->renderItems() #5 unknown(0): X2GridView->renderSection() #6 C:\xampp\htdocs\X2CRM\x2engine\framework\zii\widgets\CBaseListView.php(164): preg_replace_callback() #7 C:\xampp\htdocs\X2CRM\x2engine\protected\components\X2GridView\X2GridViewBase.php(660): X2GridView->renderContent() #8 C:\xampp\htdocs\X2CRM\x2engine\protected\controllers\x2base.php(838): X2GridView->run() #9 C:\xampp\htdocs\X2CRM\x2engine\protected\modules\x2Leads\views\x2Leads\index.php(73): X2LeadsController->widget() #10 C:\xampp\htdocs\X2CRM\x2engine\framework\web\CBaseController.php(126): require() #11 C:\xampp\htdocs\X2CRM\x2engine\framework\web\CBaseController.php(95): X2LeadsController->renderInternal() #12 C:\xampp\htdocs\X2CRM\x2engine\framework\web\CController.php(872): X2LeadsController->renderFile() #13 C:\xampp\htdocs\X2CRM\x2engine\protected\controllers\x2base.php(736): X2LeadsController->renderPartial() #14 C:\xampp\htdocs\X2CRM\x2engine\protected\modules\x2Leads\controllers\X2LeadsController.php(185): X2LeadsController->render() #15 C:\xampp\htdocs\X2CRM\x2engine\framework\web\actions\CInlineAction.php(49): X2LeadsController->actionIndex() #16 C:\xampp\htdocs\X2CRM\x2engine\framework\web\CController.php(308): CInlineAction->runWithParams() #17 C:\xampp\htdocs\X2CRM\x2engine\framework\web\filters\CFilterChain.php(134): X2LeadsController->runAction() #18 C:\xampp\htdocs\X2CRM\x2engine\protected\controllers\x2base.php(586): CFilterChain->run() #19 C:\xampp\htdocs\X2CRM\x2engine\framework\web\filters\CInlineFilter.php(58): X2LeadsController->filterSetPortlets() #20 C:\xampp\htdocs\X2CRM\x2engine\framework\web\filters\CFilterChain.php(131): CInlineFilter->filter() #21 C:\xampp\htdocs\X2CRM\x2engine\framework\web\filters\CFilter.php(40): CFilterChain->run() #22 C:\xampp\htdocs\X2CRM\x2engine\framework\web\filters\CFilterChain.php(131): FileUploadsFilter->filter() #23 C:\xampp\htdocs\X2CRM\x2engine\framework\web\filters\CFilter.php(40): CFilterChain->run() #24 C:\xampp\htdocs\X2CRM\x2engine\framework\web\filters\CFilterChain.php(131): X2AjaxHandlerFilter->filter() #25 C:\xampp\htdocs\X2CRM\x2engine\framework\web\CController.php(291): CFilterChain->run() #26 C:\xampp\htdocs\X2CRM\x2engine\framework\web\CController.php(265): X2LeadsController->runActionWithFilters() #27 C:\xampp\htdocs\X2CRM\x2engine\framework\web\CWebApplication.php(282): X2LeadsController->run() #28 C:\xampp\htdocs\X2CRM\x2engine\protected\components\X2WebApplication.php(65): X2WebApplication->runController() #29 C:\xampp\htdocs\X2CRM\x2engine\framework\base\CApplication.php(185): X2WebApplication->processRequest() #30 C:\xampp\htdocs\X2CRM\x2engine\index.php(67): X2WebApplication->run() X2Engine Version: 8.0PHP Version: 8.0.2 Quote Link to post Share on other sites
jack 7 Posted February 15 Report Share Posted February 15 Hi Brown, Can you please share how you got to the page with the error. -Jack Quote Link to post Share on other sites
Brown 0 Posted February 15 Author Report Share Posted February 15 When I click on All Leads I get this error. If I create a list I can get to the list and it works there. Quote Link to post Share on other sites
jack 7 Posted February 16 Report Share Posted February 16 Can you please upload you copy of the file "protected\modules\x2Leads\components\X2LeadsDataColumn.php" Quote Link to post Share on other sites
Brown 0 Posted February 16 Author Report Share Posted February 16 X2LeadsDataColumn.php Attached is the file. Quote Link to post Share on other sites
jack 7 Posted February 16 Report Share Posted February 16 On line 46 change "$this->fieldModel['fieldName'] " to "$this->name " In php 8 accessing a undefined array key throws an error instead of previous versions were this would be a notice. We are working on updating our php 8.0 compatibility for our next update. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.