我在安装任何模块时收到以下错误:
> 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()
请帮我解决问题。
Sugar Open Cloud 不允许安装包中使用某些功能,检查此。 如果您可以更改配置文件,请将
packageScan
中的 config.php
更改为 false。
'moduleInstaller' =>
array (
'packageScan' => true,
),
或者
通过在其中添加所有冲突的函数,在
config.php
或 config_override.php
中添加以下数组。
$sugar_config['moduleInstaller']['blackListExempt'] = array('unlink', 'ob_start', );
并且做
$GLOBALS[‘sugar_config’][‘moduleInstaller’][‘disableFileScan’] = true;
如果您无法更改配置文件,那么除了避免功能和文件冲突之外没有其他解决方案。
$sugar_config['moduleInstaller']['packageScan'] = false; 在 config_override.php 上设置此选项以禁用包扫描器