user3065807
user3065807

Reputation: 41

Error encountered when creating custom field in sugarcrm

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

Upvotes: 2

Views: 2204

Answers (2)

Pranab
Pranab

Reputation: 2797

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

Upvotes: 2

Matthew Poer
Matthew Poer

Reputation: 1682

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.

Upvotes: 1

Related Questions