Hi to all, i’ve running suitecrm 7.9.11 and i faced with this bug on accounts module
This will show on detailVIew AND EditView, and i don’t know how to fix it.
Reapir doesn’t work, repair relation doesn’t work. It work only if i go in that line and remove the tag {main}. But doesn’t fix the problem, because is the cache. Any suggest?
You can delete “cache/themes” directory, it will get recreated.
But I wonder why you’re getting that error in the first place, is this code that you’ve changed?
Maybe you can post the complete contents of your original file where that tag appears.
1 Like
pgr:
You can delete “cache/themes” directory, it will get recreated.
But I wonder why you’re getting that error in the first place, is this code that you’ve changed?
Maybe you can post the complete contents of your original file where that tag appears.
deleted the “cache/themes” dir and now the error changed
but i i go on line 1953 od the DetailView.tpl
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0004</td><td bgcolor='#eeeeec' align='right'>363672</td><td bgcolor='#eeeeec'>{main}( )</td><td title='C:\workspace\CFCCRM\index.php' bgcolor='#eeeeec'>...\index.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.3229</td><td bgcolor='#eeeeec' align='right'>10645752</td><td bgcolor='#eeeeec'>SugarApplication->execute( )</td><td title='C:\workspace\CFCCRM\index.php' bgcolor='#eeeeec'>...\index.php<b>:</b>52</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.4380</td><td bgcolor='#eeeeec' align='right'>12236136</td><td bgcolor='#eeeeec'>SugarController->execute( )</td><td title='C:\workspace\CFCCRM\include\MVC\SugarApplication.php' bgcolor='#eeeeec'>...\SugarApplication.php<b>:</b>105</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.5323</td><td bgcolor='#eeeeec' align='right'>12592872</td><td bgcolor='#eeeeec'>SugarController->processView( )</td><td title='C:\workspace\CFCCRM\include\MVC\Controller\SugarController.php' bgcolor='#eeeeec'>...\SugarController.php<b>:</b>375</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.5450</td><td bgcolor='#eeeeec' align='right'>13160368</td><td bgcolor='#eeeeec'>AccountsViewDetail->process( )</td><td title='C:\workspace\CFCCRM\include\MVC\Controller\SugarController.php' bgcolor='#eeeeec'>...\SugarController.php<b>:</b>432</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>6</td><td bgcolor='#eeeeec' align='center'>0.6693</td><td bgcolor='#eeeeec' align='right'>13276864</td><td bgcolor='#eeeeec'>AccountsViewDetail->display( )</td><td title='C:\workspace\CFCCRM\include\MVC\View\SugarView.php' bgcolor='#eeeeec'>...\SugarView.php<b>:</b>199</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>7</td><td bgcolor='#eeeeec' align='center'>0.6952</td><td bgcolor='#eeeeec' align='right'>13397736</td><td bgcolor='#eeeeec'>DetailView2->display( )</td><td title='C:\workspace\CFCCRM\modules\Accounts\views\view.detail.php' bgcolor='#eeeeec'>...\view.detail.php<b>:</b>114</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>8</td><td bgcolor='#eeeeec' align='center'>0.7002</td><td bgcolor='#eeeeec' align='right'>13543288</td><td bgcolor='#eeeeec'>TemplateHandler->displayTemplate( )</td><td title='C:\workspace\CFCCRM\include\EditView\EditView2.php' bgcolor='#eeeeec'>...\EditView2.php<b>:</b>909</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>9</td><td bgcolor='#eeeeec' align='center'>0.7003</td><td bgcolor='#eeeeec' align='right'>13543288</td><td bgcolor='#eeeeec'>TemplateHandler->buildTemplate( )</td><td title='C:\workspace\CFCCRM\include\TemplateHandler\TemplateHandler.php' bgcolor='#eeeeec'>...\TemplateHandler.php<b>:</b>361</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>10</td><td bgcolor='#eeeeec' align='center'>0.7005</td><td bgcolor='#eeeeec' align='right'>13543376</td><td bgcolor='#eeeeec'>Sugar_Smarty->fetch( )</td><td title='C:\workspace\CFCCRM\include\TemplateHandler\TemplateHandler.php' bgcolor='#eeeeec'>...\TemplateHandler.php<b>:</b>184</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>11</td><td bgcolor='#eeeeec' align='center'>0.7007</td><td bgcolor='#eeeeec' align='right'>13543536</td><td bgcolor='#eeeeec'>Sugar_Smarty->fetch( )</td><td title='C:\workspace\CFCCRM\include\Sugar_Smarty.php' bgcolor='#eeeeec'>...\Sugar_Smarty.php<b>:</b>136</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>12</td><td bgcolor='#eeeeec' align='center'>0.7021</td><td bgcolor='#eeeeec' align='right'>13665984</td><td bgcolor='#eeeeec'>include( <font color='#00bb00'>'C:\workspace\CFCCRM\cache\smarty\templates_c\%%24^244^24437CF1%%DetailView.tpl.php'</font> )</td><td title='C:\workspace\CFCCRM\include\Smarty\Smarty.class.php' bgcolor='#eeeeec'>...\Smarty.class.php<b>:</b>1264</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>13</td><td bgcolor='#eeeeec' align='center'>0.7678</td><td bgcolor='#eeeeec' align='right'>14417344</td><td bgcolor='#eeeeec'>Sugar_Smarty->_smarty_include( )</td><td title='C:\workspace\CFCCRM\cache\smarty\templates_c\%%24^244^24437CF1%%DetailView.tpl.php' bgcolor='#eeeeec'>...\%%24^244^24437CF1%%DetailView.tpl.php<b>:</b>371</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>14</td><td bgcolor='#eeeeec' align='center'>0.7688</td><td bgcolor='#eeeeec' align='right'>14491464</td><td bgcolor='#eeeeec'>include( <font color='#00bb00'>'C:\workspace\CFCCRM\cache\smarty\templates_c\%%1C^1CB^1CB7D149%%tab_panel_content.tpl.php'</font> )</td><td title='C:\workspace\CFCCRM\include\Smarty\Smarty.class.php' bgcolor='#eeeeec'>...\Smarty.class.php<b>:</b>1870</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>15</td><td bgcolor='#eeeeec' align='center'>0.7814</td><td bgcolor='#eeeeec' align='right'>14579312</td><td bgcolor='#eeeeec'>smarty_function_sugar_field( )</td><td title='C:\workspace\CFCCRM\cache\smarty\templates_c\%%1C^1CB^1CB7D149%%tab_panel_content.tpl.php' bgcolor='#eeeeec'>...\%%1C^1CB^1CB7D149%%tab_panel_content.tpl.php<b>:</b>203</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>16</td><td bgcolor='#eeeeec' align='center'>0.7814</td><td bgcolor='#eeeeec' align='right'>14579584</td><td bgcolor='#eeeeec'>SugarFieldHandler::displaySmarty( )</td><td title='C:\workspace\CFCCRM\include\Smarty\plugins\function.sugar_field.php' bgcolor='#eeeeec'>...\function.sugar_field.php<b>:</b>104</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>17</td><td bgcolor='#eeeeec' align='center'>0.7814</td><td bgcolor='#eeeeec' align='right'>14579624</td><td bgcolor='#eeeeec'>SugarFieldHandler::getSugarField( )</td><td title='C:\workspace\CFCCRM\include\SugarFields\SugarFieldHandler.php' bgcolor='#eeeeec'>...\SugarFieldHandler.php<b>:</b>163</td></tr>
</table></font>
And i delete the main, all works fine.
The code you’re showing is describing the stack trace itself. That “main” is from the stack trace!
You shouldn’t be getting these traces on screen. Go in your php.ini and disable display_errors (this is the best-practice).
Now check the errors where they should be, in the logs, not on the screen. If you still have a FATAL, you should have a nice stack trace in php_errors.log (or equivalent web server log in your system).
1 Like
pgr:
The code you’re showing is describing the stack trace itself. That “main” is from the stack trace!
You shouldn’t be getting these traces on screen. Go in your php.ini and disable display_errors (this is the best-practice).
Now check the errors where they should be, in the logs, not on the screen. If you still have a FATAL, you should have a nice stack trace in php_errors.log (or equivalent web server log in your system).
Bingo!
[16-Jul-2018 13:00:55 Europe/Berlin] PHP Warning: Declaration of SugarFieldMultienum::displayFromFunc($displayType, $parentFieldArray, $vardef, $displayParams, $tabindex) should be compatible with SugarFieldEnum::displayFromFunc($displayType, $parentFieldArray, $vardef, $displayParams, $tabindex = 0) in C:\workspace\CFCCRM\include\SugarFields\Fields\Multienum\SugarFieldMultienum.php on line 124
I try to fix this so