2

我在安装任何模块时收到以下错误:

    > Scanning Package 
    > Installation failed! 
    > The package you are attempting
    > to install does not conform to the policies established within the
    > Sugar Open Cloud or by your system administrator.


    >     Sugar Open Cloud customers must obtain a new package from the package provider that addresses the issues described below.
    >     If you are running Sugar locally, you can relax your Module Loader restrictions to allow the package to be installed.
    > 
    > The Sugar Open Cloud package loading policies are detailed in the
    > SugarCRM Knowledge Base. The available restrictions and exceptions are
    > detailed in the SugarCRM Developer Zone.
    > File Issues modules/let_Chat/history.php Invalid usage of a function
    > ob_start() modules/let_Chat/elements/sounds/button-19.mp3 Invalid file
    > extension modules/let_Chat/elements/sounds/Pop.aiff Invalid file
    > extension modules/let_Chat/elements/sounds/button-27.mp3 Invalid file
    > extension modules/let_Chat/elements/sounds/button-20.mp3 Invalid file
    > extension modules/let_Chat/elements/icons/restore_old.png Invalid
    > usage of a function '`' modules/let_Chat/show_chat.php Invalid usage
    > of a function $msi1() modules/let_Chat/JSON.php Invalid usage of a
    > function array_map() Invalid usage of a function array_map() Invalid
    > usage of a function array_map()

请帮我解决问题。

4

2 回答 2

1

Sugar Open Cloud 不允许在要安装的包中使用某些功能,请勾选此项。如果您可以更改配置文件而不是更改packageScanconfig.php.

  'moduleInstaller' => 
   array (
   'packageScan' => true,
   ),

或者

添加以下数组config.phpconfig_override.php通过在其中添加所有冲突的函数。

$sugar_config['moduleInstaller']['blackListExempt'] = array('unlink', 'ob_start', );

$GLOBALS[‘sugar_config’][‘moduleInstaller’][‘disableFileScan’] = true;

如果您无法更改配置文件,那么除了避免功能和文件冲突之外,没有其他解决方案。

于 2012-10-23T07:13:48.860 回答
0

$sugar_config['moduleInstaller']['packageScan'] = false; 在 config_override.php 上设置它以禁用包扫描器

于 2021-11-04T10:05:02.427 回答