Hi,
I’m trying to make my first custom package that collects a custom module with its functionality.
When I try to install it I get the following error:
I report the code in the package manifest
$manifest = array (
0 =>
array (
'acceptable_sugar_versions' =>
array (
0 => '',
),
),
1 =>
array (
'acceptable_sugar_flavors' =>
array (
0 => 'CE',
1 => 'PRO',
2 => 'ENT',
),
),
'readme' => '',
'key' => 'NP',
'author' => 'Marco Bullo',
'description' => '',
'icon' => '',
'is_uninstallable' => true,
'name' => 'Note_Plus',
'published_date' => '2021-01-27 08:40:04',
'type' => 'module',
'version' => 1611736804,
'remove_tables' => 'prompt',
);
$installdefs = array (
'id' => 'Note_Plus',
'beans' =>
array (
0 =>
array (
'module' => 'NP_NotePlus',
'class' => 'NP_NotePlus',
'path' => 'modules/NP_NotePlus/NP_NotePlus.php',
'tab' => true,
),
),
'layoutdefs' =>
array (
),
'relationships' =>
array (
),
'image_dir' => '<basepath>/icons',
'copy' =>
array (
0 =>
array (
'from' => '<basepath>/SugarModules/modules/NP_NotePlus',
'to' => 'modules/NP_NotePlus',
),
1 =>
array (
'from' => '<basepath>/SugarModules/custom/modules/NP_NotePlus',
'to' => 'custom/modules/NP_NotePlus',
),
2 => array (
'from' => '<basepath>/SugarModules/custom/Extension/modules/NP_NotePlus/Ext/ActionViewMap',
'to' => '/custom/Extension/modules/NP_NotePlus/Ext/ActionViewMap',
),
3 => array (
'from' => '<basepath>/SugarModules/custom/Extension/modules/NP_NotePlus/Ext/Language',
'to' => '/custom/Extension/modules/NP_NotePlus/Ext/Language',
),
4 => array (
'from' => '<basepath>/SugarModules/custom/Extension/modules/NP_NotePlus/Ext/Layoutdefs',
'to' => '/custom/Extension/modules/NP_NotePlus/Ext/Layoutdefs',
),
5 => array (
'from' => '<basepath>/SugarModules/custom/Extension/modules/NP_NotePlus/Ext/LogicHooks',
'to' => '/custom/Extension/modules/NP_NotePlus/Ext/LogicHooks',
),
6 => array (
'from' => '<basepath>/SugarModules/custom/Extension/modules/NP_NotePlus/Ext/Vardefs',
'to' => '/custom/Extension/modules/NP_NotePlus/Ext/Vardefs',
),
7 => array (
'from' => '<basepath>/SugarModules/custom/Extension/modules/Administration/Ext/Administration/np_note_plus.php',
'to' => '/custom/Extension/modules/Administration/Ext/Administration/np_note_plus.php',
),
8 => array (
'from' => '<basepath>/SugarModules/custom/Extension/modules/Administration/Ext/Language/it_it.np_note_plus.php',
'to' => '/custom/Extension/modules/Administration/Ext/Language/it_it.np_note_plus.php',
),
9 => array (
'from' => '<basepath>/SugarModules/custom/Extension/application/Ext/Utils/gestRelationships.php',
'to' => '/custom/Extension/application/Ext/Utils/gestRelationships.php',
),
),
'language' =>
array (
0 =>
array (
'from' => '<basepath>/SugarModules/language/application/en_us.lang.php',
'to_module' => 'application',
'language' => 'en_us',
),
1 =>
array (
'from' => '<basepath>/SugarModules/language/application/it_it.lang.php',
'to_module' => 'application',
'language' => 'it_IT',
),
),
);
Copying to the /modules/NP_NotePlus and /custom/modules/NP_NotePlus folders is done correctly and then it crashes when it has to process the third element of the ‘copy’ array …
I have tried several times to relaunch the file permissions adjustment but the error persists