我得到了这个:
数据库失败。有关详细信息,请参阅sugarcrm.log
我的sugarcrm.log:
SET name='testculoare',date_modified='2016-06-14 07:30:55',modified_user_id='1',created_by='551263d1-84a2-7f9f-51d8-5735bbb30959',description=NULL,**assigned_user_id='',=NULL**
WHERE imob_raport_imobiliar.id = '3727f06e-1ea3-4564-374c-575e8d0d4648' AND deleted=0: MySQL error 1064:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=NULL
WHERE imob_raport_imobiliar.id = '3727f06e-1ea3-4564-374c-575e8d0d4' at line 2
答案 0 :(得分:2)
这通常是由于fields_meta_data表中缺少条目造成的,如果您移过SugarCRM文件但不会移动数据库,可能会导致这些条目。
这也可能是由不再存在的字段的自定义引起的。
您可以在IsSortable
中检查模块的缓存vardef。任何缺少名称值的vardef都会导致此问题(我还为SuiteCRM编写了script来执行此操作。)
找到造成这种情况的字段后,您通常可以注释掉导致空定义的所有行。