AnsweredAssumed Answered

Module Loader: ZIP Error

Question asked by cheng yuzen on Mar 26, 2019
Latest reply on Mar 26, 2019 by cheng yuzen
Hi everyone,
I have custom installer (logic hook customize) with zip , when I trying to upload it and I get 
ZIP Error(0): Status(9): Arhive(upload://sendmail.zip): Directory(/var/www/html/sugarcrm8/cache/upgrades/temp/bCgSDv)
I had tried on mac and windows to zip the file and they both not work .
I find their are some people said just re zip the file ,but it didn't work in my case .
here is my mainfest.php , I don't have experience with this , so I don't know is mine problem or the zip problem..
<?php

$manifest = array(
'acceptable_sugar_flavors' => array('CE','PRO','CORP','ENT','ULT'),
'acceptable_sugar_versions' => array(
'exact_matches' => array(),
'regex_matches' => array('(.*?)\\.(.*?)\\.(.*?)$'),
),
'author' => 'SugarCRM',
'description' => 'Installs send mail logic hook ',
'icon' => '',
'is_uninstallable' => true,
'name' => 'Activities send mail ',
'published_date' => '2019-03-26 2019 20:45:04',
'type' => 'module',
'version' => '1',
);

$installdefs = array(
'id' => 'package_20190326',
'copy' => array(
0 => array(
'from' => '<basepath>/Files/custom/modules/ActivityStream/Activities/Emails.php',
'to' => 'custom/modules/ActivityStream/Activities/Emails.php',
),
1 => array(
'from' => '<basepath>/Files/custom/Extension/modules/ActivityStream/Activities/Ext/LogicHooks/sendmail.php',
'to' => 'custom/Extension/modules/ActivityStream/Activities/Ext/LogicHooks/sendmail.php',
),
),
'logic_hooks' => array(
array(
'module' => 'Activities',
'hook' => 'after_save',
'order' => 99,
'description' => 'Logic Hook - Activities send mail',
'file' => 'custom/modules/ActivityStream/Activities/Emails.php',
'class' => 'Sendmail',
'function' => 'Sendmail',
),
),
);

?>

Thanks for helping!

Outcomes