我是SugarCRM
的新人。我创建了一个模块:
ADMIN -> Developer Tools -> module builder
并创建了一个包,自动下载了包含manifiest.php
的zip并转到模块加载器并上传了这个,并在安装它时通过以下方式:
Progress = 29% STOP!!!
click in link "Display Log"
**Message:** Installing Images
Warning: dir(cache/upgrades/temp/191D.tmp/icons) [function.dir]: failed to open dir: No such file or directory in C:\wamp\www\Sugar\include\dir_inc.php on line 52
Failed to copy cache/upgrades/temp/191D.tmp/icons custom/themes
如何解决此错误?
manifest.php
<?php
$manifest = array (
0 =>
array (
'acceptable_sugar_versions' =>
array (
0 => '',
),
),
1 =>
array (
'acceptable_sugar_flavors' =>
array (
0 => 'CE',
1 => 'PRO',
2 => 'ENT',
),
),
),
'readme' => '',
'key' => 'sharm',
'author' => 'Admin',
'description' => 'testing module for adding custom module',
'icon' => '',
'is_uninstallable' => true,
'name' => 'sharma',
'published_date' => '2014-07-22 06:35:58',
'type' => 'module',
'version' => 1406010958,
'remove_tables' => 'prompt',
);
$installdefs = array(
'id' => 'sharma',
'beans' => array (),
'layoutdefs' => array (),
'relationships' => array (),
'image_dir' => '<basepath>/icons',
);