Jump to content
X2Community Forums

500 Error on all lists


Recommended Posts

Every time I go to the All Lists view I get the following error message.

 

Error Code: 500
Error Message: Trying to access array offset on value of type null
Stack 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.0
PHP Version: 8.0.2

Link to post
Share on other sites

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.

  • Like 1
Link to post
Share on other sites
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...