Jump to content


Photo

An Undefined Field Error


  • Please log in to reply
1 reply to this topic

#1 TechnoDino

TechnoDino

    Advanced Member

  • Members
  • PipPipPip
  • 61 posts
  • LocationChicagoland

Posted 26 November 2019 - 10:55 AM

Opening a custom module gives the following error.  Stack trace follows. The custom field in question is defined in the Field Manager as a URL; not required and not searchable.  In the worst case I have exported all the data from this module. 

 

 Error Code: 500

Error Message: Property "Contactdata.c_CompantWebsite" is not defined.
Stack Trace: [click to toggle display]


CException in /home/jcpenter/public_html/x2/framework/db/ar/CActiveRecord.php(145)
#0 /home/jcpenter/public_html/x2/framework/db/ar/CActiveRecord.php(145): CComponent->__get('c_CompantWebsit...')
#1 /home/jcpenter/public_html/x2/protected/models/X2Model.php(2352): CActiveRecord->__get('c_CompantWebsit...')
#2 /home/jcpenter/public_html/x2/protected/models/X2Model.php(2366): X2Model->compareAttribute(Object(CDbCriteria), Object(Fields))
#3 /home/jcpenter/public_html/x2/protected/models/X2Model.php(2204): X2Model->compareAttributes(Object(CDbCriteria))
#4 /home/jcpenter/public_html/x2/protected/modules/contactdata/models/Contactdata.php(79): X2Model->searchBase(Object(CDbCriteria), NULL)
#5 /home/jcpenter/public_html/x2/protected/modules/contactdata/views/contactdata/index.php(79): Contactdata->search()
#6 /home/jcpenter/public_html/x2/framework/web/CBaseController.php(126): require('/home/jcpenter/...')
#7 /home/jcpenter/public_html/x2/framework/web/CBaseController.php(95): CBaseController->renderInternal('/home/jcpenter/...', Array, true)
#8 /home/jcpenter/public_html/x2/framework/web/CController.php(872): CBaseController->renderFile('/home/jcpenter/...', Array, true)
#9 /home/jcpenter/public_html/x2/protected/controllers/x2base.php(731): CController->renderPartial('index', Array, true)
#10 /home/jcpenter/public_html/x2/protected/modules/contactdata/controllers/ContactdataController.php(155): x2base->render('index', Array)
#11 /home/jcpenter/public_html/x2/framework/web/actions/CInlineAction.php(49): ContactdataController->actionIndex()
#12 /home/jcpenter/public_html/x2/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#13 /home/jcpenter/public_html/x2/framework/web/filters/CFilterChain.php(134): CController->runAction(Object(CInlineAction))
#14 /home/jcpenter/public_html/x2/protected/controllers/x2base.php(581): CFilterChain->run()
#15 /home/jcpenter/public_html/x2/framework/web/filters/CInlineFilter.php(58): x2base->filterSetPortlets(Object(CFilterChain))
#16 /home/jcpenter/public_html/x2/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(Object(CFilterChain))
#17 /home/jcpenter/public_html/x2/framework/web/filters/CFilter.php(40): CFilterChain->run()
#18 /home/jcpenter/public_html/x2/framework/web/filters/CFilterChain.php(131): CFilter->filter(Object(CFilterChain))
#19 /home/jcpenter/public_html/x2/framework/web/filters/CFilter.php(40): CFilterChain->run()
#20 /home/jcpenter/public_html/x2/framework/web/filters/CFilterChain.php(131): CFilter->filter(Object(CFilterChain))
#21 /home/jcpenter/public_html/x2/framework/web/CController.php(291): CFilterChain->run()
#22 /home/jcpenter/public_html/x2/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#23 /home/jcpenter/public_html/x2/framework/web/CWebApplication.php(282): CController->run('index')
#24 /home/jcpenter/public_html/x2/protected/components/X2WebApplication.php(65): CWebApplication->runController('contactdata/con...')
#25 /home/jcpenter/public_html/x2/framework/base/CApplication.php(185): X2WebApplication->processRequest()
#26 /home/jcpenter/public_html/x2/index.php(67): CApplication->run()
#27 {main}

X2Engine Version: 7.1
PHP Version: 7.1.33


:)Thanks :)

 

John

 


#2 X2Clifton

X2Clifton

    Member

  • Moderators
  • 21 posts

Posted 26 November 2019 - 11:30 AM

Hi TechnoDino,

 

Can you check to see if your table still contains that field? If it does, then you need to clear your cache (in protected/runtime/cache/*.bin) and remove assets (in assets/*) and refresh your browser page and redo the action you attempted before. If the field is not there, that must mean you deleted it; but the field may still exist in x2_fields, so you need to delete it from there as well. Let me know if either of these solutions work/don't work for you!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users