共享Dreamhost服务器上的SugarCRM:“从空值创建默认对象”

时间:2014-09-07 20:44:55

标签: php sugarcrm dreamhost

我在Dreamhost上使用最新版本的SugarCRM(版本SugarCE-6.5.17)。除了在我尝试添加字段时收到以下错误,所有运行良好。

  

警告:在第151行的/home/blastofflabs/sugar.blastofflabs.com/crm/modules/ModuleBuilder/views/view.modulefield.php中从空值创建默认对象   {" east":{" title":" Edit Field"," crumb":"",&# 34;内容":"   < / DIV> \ n \ n

在此YouTube视频的2:08,您可以看到我正在做的事情。

https://www.youtube.com/watch?v=atMeObDkGZI

更新

Dreamhost支持建议在共享服务器上创建一个phprc文件

我创建了该文件,创建了一个phprc文件(根据Dreamhost),添加了" dispay_errors = Off",然后运行" chmod 755"给它正确的权限。

http://wiki.dreamhost.com/Creating_a_phprc_file

http://webmaster.iu.edu/upgrade/phprc.phtml

http://www.courtzabel.net/articles/2013/increasing-limits-php-dreamhost

http://www.askapache.com/php/custom-phpini-tips-and-tricks.html

1 个答案:

答案 0 :(得分:0)

这是由较新版本的PHP引起的。

将以下代码添加到 modules / ModuleBuilder / views / view.modulefield.php

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

来源:https://github.com/sugarcrm/sugarcrm_dev/pull/143/files