【问题标题】:Sugarcrm module loader Scanning Package ErrorSugarcrm 模块加载程序扫描包错误
【发布时间】:2012-10-12 23:08:29
【问题描述】:

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

    > 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 还是您自己的 Sugar 实例上?

标签: linux module loader sugarcrm


【解决方案1】:

Sugar Open Cloud 不允许在要安装的包中使用某些功能,Check This。 如果您可以更改配置文件而不是将packageScan 中的config.php 更改为false。

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

或者

config.phpconfig_override.php 中添加以下数组,方法是在其中添加所有冲突函数。

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

然后做

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

如果您无法更改配置文件,那么没有比避免功能和文件冲突的解决方案。

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-01-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多