<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hello Alan Lord,<br><br>I think this is an error :</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default"><div class="gmail_default"><font face="arial, helvetica, sans-serif">PHP Warning:  copy(): The second argument to copy() function cannot be a directory in /var/www/html/vtigercrm/vtlib/Vtiger/PackageExport.php on line 162</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Warning: copy(): The second argument to copy() function cannot be a directory in /var/www/html/vtigercrm/vtlib/Vtiger/PackageExport.php on line 162</font></div><div style="font-family:arial,helvetica,sans-serif"><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 17, 2019 at 3:59 PM Pooja Beladiya <<a href="mailto:pooja@vindaloovoip.com">pooja@vindaloovoip.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font color="#202124" face="arial, helvetica, sans-serif"><span style="font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">forth argument as true in </span></font><span style="color:rgb(32,33,36);font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">$package->export() don't generate any zip file in </span><font color="#202124" face="arial, helvetica, sans-serif"><span style="font-size:14px;letter-spacing:0.2px;white-space:nowrap">test/vtlib direcotory.</span></font><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 17, 2019 at 3:58 PM Pooja Beladiya <<a href="mailto:pooja@vindaloovoip.com" target="_blank">pooja@vindaloovoip.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hello <span style="color:rgb(32,33,36);font-size:0.875rem;letter-spacing:0.2px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;white-space:nowrap">Alan Lord,<br><br>When i disable error reporting this script :</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(32,33,36);font-size:0.875rem;letter-spacing:0.2px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;white-space:nowrap"><br></span></div><div class="gmail_default"><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap"><?php</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">require_once('includes/main/WebUI.php');</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">require_once('vtlib/Vtiger/Package.php');</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">require_once('vtlib/Vtiger/Module.php');</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">$package = new Vtiger_Package();</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">$package->export(</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">      Vtiger_Module::getInstance('Expenses'),</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">      'test/vtlib',</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">      'Expenses-Export.zip',</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">      true</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">);</div><div class="gmail_default" style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">?></div><div class="gmail_default"><font color="#202124" face="arial, helvetica, sans-serif"><span style="font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">forth argument as true in </span></font><span style="color:rgb(32,33,36);font-family:arial,helvetica,sans-serif;font-size:0.875rem;letter-spacing:0.2px;white-space:nowrap">$package->export() does generate any zip file in </span><font color="#202124" face="arial, helvetica, sans-serif"><span style="font-size:14px;letter-spacing:0.2px;white-space:nowrap">test/vtlib direcotory.<br><br>But when i change fourth argument as false generate zip file but it is not proper file because when i import that file using module manager getting invalid file message. </span></font></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 17, 2019 at 3:48 PM Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 17/05/2019 11:10, Pooja Beladiya wrote:<br>
> Warning: Cannot modify header information - headers already sent by <br>
> (output started at <br>
> /var/www/html/vtigercrm/libraries/antlr/AntlrLexer.php:297) in <br>
> /var/www/html/vtigercrm/vtlib/Vtiger/Zip.php on line 33<br>
<br>
Again this is not an error. This is an extremely common warning <br>
generated because the script has sent these warning messages (and <br>
generated the http headers) before the actual data.<br>
<br>
<br>
So now try it without Error reporting ;-)<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_5799399760802168227gmail-m_-7137033682692948079gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><b><span style="font-family:"courier new",monospace">Regards,</span><br></b></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b>Pooja Beladiya</b></font></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b>(Senior Software Engineer)</b></font></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b><br></b></font></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b><br></b></font></div><div style="font-size:small"><div style="color:rgb(136,136,136);font-size:12.8px"><font face="verdana, sans-serif" size="2"><a href="http://www.vindaloovoip.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://vindaloovoip.com/email_sign/sign.png"></a><br></font></div><div style="color:rgb(136,136,136);font-size:12.8px"><span style="font-family:verdana,sans-serif;font-size:small">Vindaloo VoIP Solutions Pvt. Ltd.</span><br></div><div style="color:rgb(136,136,136);font-size:12.8px"><span style="font-family:verdana,sans-serif;font-size:small">Website: </span><a href="http://www.vindaloovoip.com/" style="color:rgb(17,85,204)" target="_blank">www.vindaloovoip.com</a><br></div><div style="color:rgb(136,136,136);font-size:12.8px"><font face="verdana, sans-serif" size="2">Skype: <a href="mailto:info@vindaloovoip.com" style="color:rgb(17,85,204)" target="_blank">info@vindaloovoip.com</a></font></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_5799399760802168227gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><b><span style="font-family:"courier new",monospace">Regards,</span><br></b></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b>Pooja Beladiya</b></font></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b>(Senior Software Engineer)</b></font></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b><br></b></font></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b><br></b></font></div><div style="font-size:small"><div style="color:rgb(136,136,136);font-size:12.8px"><font face="verdana, sans-serif" size="2"><a href="http://www.vindaloovoip.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://vindaloovoip.com/email_sign/sign.png"></a><br></font></div><div style="color:rgb(136,136,136);font-size:12.8px"><span style="font-family:verdana,sans-serif;font-size:small">Vindaloo VoIP Solutions Pvt. Ltd.</span><br></div><div style="color:rgb(136,136,136);font-size:12.8px"><span style="font-family:verdana,sans-serif;font-size:small">Website: </span><a href="http://www.vindaloovoip.com/" style="color:rgb(17,85,204)" target="_blank">www.vindaloovoip.com</a><br></div><div style="color:rgb(136,136,136);font-size:12.8px"><font face="verdana, sans-serif" size="2">Skype: <a href="mailto:info@vindaloovoip.com" style="color:rgb(17,85,204)" target="_blank">info@vindaloovoip.com</a></font></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><b><span style="font-family:"courier new",monospace">Regards,</span><br></b></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b>Pooja Beladiya</b></font></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b>(Senior Software Engineer)</b></font></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b><br></b></font></div><div style="font-size:small"><font size="2" style="font-family:"courier new",monospace"><b><br></b></font></div><div style="font-size:small"><div style="color:rgb(136,136,136);font-size:12.8px"><font face="verdana, sans-serif" size="2"><a href="http://www.vindaloovoip.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://vindaloovoip.com/email_sign/sign.png"></a><br></font></div><div style="color:rgb(136,136,136);font-size:12.8px"><span style="font-family:verdana,sans-serif;font-size:small">Vindaloo VoIP Solutions Pvt. Ltd.</span><br></div><div style="color:rgb(136,136,136);font-size:12.8px"><span style="font-family:verdana,sans-serif;font-size:small">Website: </span><a href="http://www.vindaloovoip.com/" style="color:rgb(17,85,204)" target="_blank">www.vindaloovoip.com</a><br></div><div style="color:rgb(136,136,136);font-size:12.8px"><font face="verdana, sans-serif" size="2">Skype: <a href="mailto:info@vindaloovoip.com" style="color:rgb(17,85,204)" target="_blank">info@vindaloovoip.com</a></font></div></div></div></div></div></div></div></div></div></div>