<br><br><b>Hi <br><br>Can anybody tel me how to export custom module as a zip (package) file which can used for importing through Module Manger<br><br>i have the below script<br><br><?php<br>ini_set('display_errors',true);<br>
ini_set('error_reporting',E_ALL&~E_NOTICE&~E_DEPRECATED);<br>include_once('vtlib/Vtiger/Package.php');<br>include_once('vtlib/Vtiger/Module.php');<br>$package = new Vtiger_Package();<br>$package->export(Vtiger_Module::getInstance('FacilityReservation'), 'test/vtlib', 'FacilityReservation.zip', true);<br>
echo "Successfully Created";<br>?><br><br>when run this script,i get the below errors<br><br></b><b><font size="1">Fatal error: Class 'Vtiger_Package' not found in C:\wamp\www\vtigercrm540\vtlib\Vtiger\LanguageExport.php on line <i>16<br>
<br></i></font></b><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0"><tbody><tr><td align="right" bgcolor="#eeeeec"><br></td><td bgcolor="#eeeeec">include_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\vtlib\Vtiger\Package.php'</font> )</td>
<td title="C:\wamp\www\vtigercrm540\vtlib.ExportModule.php" bgcolor="#eeeeec">..\vtlib.ExportModule.php<b>:</b>4</td></tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0">
<tbody><tr><td bgcolor="#eeeeec">require_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\vtlib\Vtiger\PackageUpdate.php'</font> )</td><td title="C:\wamp\www\vtigercrm540\vtlib\Vtiger\Package.php" bgcolor="#eeeeec">
..\Package.php<b>:</b>10</td></tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0"><tbody><tr><td align="right" bgcolor="#eeeeec"><br></td><td bgcolor="#eeeeec">
include_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\vtlib\Vtiger\PackageImport.php'</font> )</td><td title="C:\wamp\www\vtigercrm540\vtlib\Vtiger\PackageUpdate.php" bgcolor="#eeeeec">..\PackageUpdate.php<b>:</b>10</td>
</tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0"><tbody><tr><td align="right" bgcolor="#eeeeec"><br></td><td bgcolor="#eeeeec">include_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\vtlib\Vtiger\PackageExport.php'</font> )</td>
<td title="C:\wamp\www\vtigercrm540\vtlib\Vtiger\PackageImport.php" bgcolor="#eeeeec">..\PackageImport.php<b>:</b>10</td></tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0">
<tbody><tr><td bgcolor="#eeeeec">include_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\vtlib\Vtiger\ModuleBasic.php'</font> )</td><td title="C:\wamp\www\vtigercrm540\vtlib\Vtiger\Module.php" bgcolor="#eeeeec">
..\Module.php<b>:</b>10</td></tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0"><tbody><tr><td bgcolor="#eeeeec">include_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\vtlib\Vtiger\Access.php'</font> )</td>
<td title="C:\wamp\www\vtigercrm540\vtlib\Vtiger\ModuleBasic.php" bgcolor="#eeeeec">..\ModuleBasic.php<b>:</b>10</td></tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0">
<tbody><tr><td bgcolor="#eeeeec">include_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\include\utils\UserInfoUtil.php'</font> )</td><td title="C:\wamp\www\vtigercrm540\vtlib\Vtiger\Access.php" bgcolor="#eeeeec">
..\Access.php<b>:</b>10</td></tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0"><tbody><tr><td bgcolor="#eeeeec">require_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\include\utils\utils.php'</font> )</td>
<td title="C:\wamp\www\vtigercrm540\include\utils\UserInfoUtil.php" bgcolor="#eeeeec">..\UserInfoUtil.php<b>:</b>16</td></tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0">
<tbody><tr><td bgcolor="#eeeeec">require_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\include\utils\DetailViewUtils.php'</font> )</td><td title="C:\wamp\www\vtigercrm540\include\utils\utils.php" bgcolor="#eeeeec">
..\utils.php<b>:</b>38</td></tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0"><tbody><tr><td bgcolor="#eeeeec">require_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\vtlib\Vtiger\Language.php'</font> )</td>
<td title="C:\wamp\www\vtigercrm540\include\utils\DetailViewUtils.php" bgcolor="#eeeeec">..\DetailViewUtils.php<b>:</b>26</td></tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0">
<tbody><tr><td bgcolor="#eeeeec">require_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\vtlib\Vtiger\LanguageImport.php'</font> )</td><td title="C:\wamp\www\vtigercrm540\vtlib\Vtiger\Language.php" bgcolor="#eeeeec">
..\Language.php<b>:</b>10</td></tr></tbody></table><br><table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellpadding="1" cellspacing="0"><tbody><tr><td align="right" bgcolor="#eeeeec"><br></td><td bgcolor="#eeeeec">
include_once( <font color="#00bb00">'C:\wamp\www\vtigercrm540\vtlib\Vtiger\LanguageExport.php'</font> )</td><td title="C:\wamp\www\vtigercrm540\vtlib\Vtiger\LanguageImport.php" bgcolor="#eeeeec">..\LanguageImport.php<b>:</b>10</td>
</tr></tbody></table><br>Can any body help me on this please <br>Thanks & Regards,<br>B.Ramya.<br><b><font size="1"><i></i></font></b>