Error encountered when creating custom field in sugarcrm

社会主义新天地 提交于 2019-12-11 08:09:51

问题


I got the below warning while trying to create a custom field in sugarcrm.

Warning:

Creating default object from empty value in C:\xampp\htdocs\Sugarcrm\modules\ModuleBuilder\views\view.modulefield.php on line 151
{"east":{"title":"Edit Field","crumb":"","content":"
<\/div>\n\n

回答1:


Adjust your php.ini file to set display_errors=Off

I've seen this a few times and it usually comes from code-level customization, but not always. Either way, it's the PHP Notice/Warning/Error that's throwing off the AJAX response within Studio.




回答2:


This is caused by a newer version of PHP.

Add the following code after line 150 in modules/ModuleBuilder/views/view.modulefield.php

VardefManager::loadVardef($moduleName, $objectName,true);
global $dictionary;
// add the next three lines
if(!isset($module->mbvardefs) || is_null($module->mbvardefs)) {
     $module->mbvardefs = new stdClass();
}

Source: https://github.com/sugarcrm/sugarcrm_dev/pull/143/files



来源:https://stackoverflow.com/questions/20920317/error-encountered-when-creating-custom-field-in-sugarcrm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!