Jump to content
X2Community Forums

Error 500 on new installation


Recommended Posts

Hello,

 

We just installed x2crm and the page after login shows:

Quote

 

It looks like the application ran into an unexpected error.

We apologize for the inconvenience and would like to do our best to fix this issue. If you would like to make a post on our forums we can actively interact with you in getting this resolved. If not, simply sending the error report helps us immensely and will only improve the quality of the software. Thanks!
Send Error Report
Here's a quick list of what will be included in the report:

Error Code: 500
Error Message: Trying to access array offset on value of type null
Stack Trace: [click to toggle display]
X2Engine Version: 7.1
PHP Version: 7.4.23

 

Quote

Error Code: 500
Error Message: Trying to access array offset on value of type null
Stack Trace: [click to toggle display]
PHP notice in /home/domain.com/public_html/x2crm/protected/models/Profile.php(1294)
#0 /home/domain.com/public_html/x2crm/framework/base/CComponent.php(111): Profile->getLastLogin()
#1 /home/domain.com/public_html/x2crm/framework/db/ar/CActiveRecord.php(145): Profile->__get()
#2 /home/domain.com/public_html/x2crm/framework/web/helpers/CHtml.php(2760): Profile->__get()
#3 /home/domain.com/public_html/x2crm/framework/web/helpers/CHtml.php(2483): resolveValue()
#4 /home/domain.com/public_html/x2crm/framework/web/helpers/CHtml.php(1540): activeInputField()
#5 /home/domain.com/public_html/x2crm/framework/zii/widgets/grid/CDataColumn.php(104): activeTextField()
#6 /home/domain.com/public_html/x2crm/framework/zii/widgets/grid/CGridColumn.php(253): CDataColumn->getFilterCellContent()
#7 /home/domain.com/public_html/x2crm/framework/zii/widgets/grid/CGridColumn.php(119): CDataColumn->renderFilterCellContent()
#8 /home/domain.com/public_html/x2crm/protected/components/X2GridView/X2GridViewBase.php(1061): CDataColumn->renderFilterCell()
#9 /home/domain.com/public_html/x2crm/protected/components/X2GridView/X2GridViewBase.php(1032): X2ActiveGridViewForSortableWidgets->renderFilterWithOptions()
#10 /home/domain.com/public_html/x2crm/protected/components/X2GridView/X2GridViewBase.php(784): X2ActiveGridViewForSortableWidgets->renderTableHeader()
#11 /home/domain.com/public_html/x2crm/framework/zii/widgets/CBaseListView.php(181): X2ActiveGridViewForSortableWidgets->renderItems()
#12 unknown(0): X2ActiveGridViewForSortableWidgets->renderSection()
#13 /home/domain.com/public_html/x2crm/framework/zii/widgets/CBaseListView.php(164): preg_replace_callback()
#14 /home/domain.com/public_html/x2crm/protected/components/X2GridView/X2GridViewBase.php(660): X2ActiveGridViewForSortableWidgets->renderContent()
#15 /home/domain.com/public_html/x2crm/framework/web/CBaseController.php(182): X2ActiveGridViewForSortableWidgets->run()
#16 /home/domain.com/public_html/x2crm/protected/components/sortableWidget/views/_activeGridViewProfileWidget.php(40): ProfilesGridViewProfileWidget->widget()
#17 /home/domain.com/public_html/x2crm/framework/web/CBaseController.php(130): require()
#18 /home/domain.com/public_html/x2crm/framework/web/CBaseController.php(95): ProfilesGridViewProfileWidget->renderInternal()
#19 /home/domain.com/public_html/x2crm/protected/components/X2Widget.php(83): ProfilesGridViewProfileWidget->renderFile()
#20 /home/domain.com/public_html/x2crm/framework/web/widgets/CWidget.php(244): ProfilesGridViewProfileWidget->renderFile()
#21 /home/domain.com/public_html/x2crm/protected/components/sortableWidget/SortableWidget.php(955): ProfilesGridViewProfileWidget->render()
#22 /home/domain.com/public_html/x2crm/protected/components/sortableWidget/SortableWidget.php(911): ProfilesGridViewProfileWidget->renderWidgetContents()
#23 /home/domain.com/public_html/x2crm/protected/components/sortableWidget/views/profileWidget.php(48): ProfilesGridViewProfileWidget->renderWidget()
#24 /home/domain.com/public_html/x2crm/framework/web/CBaseController.php(130): require()
#25 /home/domain.com/public_html/x2crm/framework/web/CBaseController.php(95): ProfilesGridViewProfileWidget->renderInternal()
#26 /home/domain.com/public_html/x2crm/protected/components/X2Widget.php(83): ProfilesGridViewProfileWidget->renderFile()
#27 /home/domain.com/public_html/x2crm/framework/web/widgets/CWidget.php(244): ProfilesGridViewProfileWidget->renderFile()
#28 /home/domain.com/public_html/x2crm/protected/components/sortableWidget/SortableWidget.php(1056): ProfilesGridViewProfileWidget->render()
#29 /home/domain.com/public_html/x2crm/protected/controllers/x2base.php(832): ProfilesGridViewProfileWidget->run()
#30 /home/domain.com/public_html/x2crm/protected/components/sortableWidget/SortableWidget.php(398): ProfileController->widget()
#31 /home/domain.com/public_html/x2crm/protected/components/ProfileDashboardManager.php(138): instantiateWidget()
#32 /home/domain.com/public_html/x2crm/protected/components/views/profileDashboard.php(51): ProfileDashboardManager->displayWidgets()
#33 /home/domain.com/public_html/x2crm/framework/web/CBaseController.php(130): require()
#34 /home/domain.com/public_html/x2crm/framework/web/CBaseController.php(95): ProfileDashboardManager->renderInternal()
#35 /home/domain.com/public_html/x2crm/framework/web/widgets/CWidget.php(244): ProfileDashboardManager->renderFile()
#36 /home/domain.com/public_html/x2crm/protected/components/ProfileDashboardManager.php(88): ProfileDashboardManager->render()
#37 /home/domain.com/public_html/x2crm/protected/views/profile/profile.php(95): ProfileDashboardManager->renderContainer()
#38 /home/domain.com/public_html/x2crm/framework/web/CBaseController.php(126): require()
#39 /home/domain.com/public_html/x2crm/framework/web/CBaseController.php(95): ProfileController->renderInternal()
#40 /home/domain.com/public_html/x2crm/framework/web/CController.php(872): ProfileController->renderFile()
#41 /home/domain.com/public_html/x2crm/protected/controllers/x2base.php(731): ProfileController->renderPartial()
#42 /home/domain.com/public_html/x2crm/protected/controllers/ProfileController.php(1686): ProfileController->render()
#43 unknown(0): ProfileController->actionView()
#44 /home/domain.com/public_html/x2crm/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs()
#45 /home/domain.com/public_html/x2crm/framework/web/actions/CInlineAction.php(47): CInlineAction->runWithParamsInternal()
#46 /home/domain.com/public_html/x2crm/framework/web/CController.php(308): CInlineAction->runWithParams()
#47 /home/domain.com/public_html/x2crm/framework/web/filters/CFilterChain.php(134): ProfileController->runAction()
#48 /home/domain.com/public_html/x2crm/protected/controllers/x2base.php(581): CFilterChain->run()
#49 /home/domain.com/public_html/x2crm/framework/web/filters/CInlineFilter.php(58): ProfileController->filterSetPortlets()
#50 /home/domain.com/public_html/x2crm/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#51 /home/domain.com/public_html/x2crm/framework/web/filters/CFilter.php(40): CFilterChain->run()
#52 /home/domain.com/public_html/x2crm/framework/web/CController.php(1148): CAccessControlFilter->filter()
#53 /home/domain.com/public_html/x2crm/framework/web/filters/CInlineFilter.php(58): ProfileController->filterAccessControl()
#54 /home/domain.com/public_html/x2crm/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#55 /home/domain.com/public_html/x2crm/protected/controllers/x2base.php(581): CFilterChain->run()
#56 /home/domain.com/public_html/x2crm/framework/web/filters/CInlineFilter.php(58): ProfileController->filterSetPortlets()
#57 /home/domain.com/public_html/x2crm/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#58 /home/domain.com/public_html/x2crm/framework/web/filters/CFilter.php(40): CFilterChain->run()
#59 /home/domain.com/public_html/x2crm/framework/web/filters/CFilterChain.php(131): FileUploadsFilter->filter()
#60 /home/domain.com/public_html/x2crm/framework/web/filters/CFilter.php(40): CFilterChain->run()
#61 /home/domain.com/public_html/x2crm/framework/web/filters/CFilterChain.php(131): X2AjaxHandlerFilter->filter()
#62 /home/domain.com/public_html/x2crm/framework/web/CController.php(291): CFilterChain->run()
#63 /home/domain.com/public_html/x2crm/framework/web/CController.php(265): ProfileController->runActionWithFilters()
#64 /home/domain.com/public_html/x2crm/framework/web/CWebApplication.php(282): ProfileController->run()
#65 /home/domain.com/public_html/x2crm/protected/components/X2WebApplication.php(65): X2WebApplication->runController()
#66 /home/domain.com/public_html/x2crm/framework/base/CApplication.php(185): X2WebApplication->processRequest()
#67 /home/domain.com/public_html/x2crm/index.php(67): X2WebApplication->run()

 

Any idea? Thank you.

Link to post
Share on other sites

Hi Max I think your issue stems from a php incompatibility are you running php 8 or any thing greater then 7.2? If so you might want to downgrade for now as we are working on supporting it but are current releases don't.
If you want to continue to use your version this code should fix this issue
    public function getLastLogin () {
        //had to add this since php changes
        if(!isset($this->user['lastLogin'])) return NULL;
        return $this->user['lastLogin'];
    }
 

but you may run into other issues.
-Jack

  • Like 1
Link to post
Share on other sites

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...