[Vtigercrm-developers] Guide in API for vtigercrm7

Pooja Beladiya pooja at vindaloovoip.com
Fri May 17 11:00:56 GMT 2019


Hello Alan Lord,

I think this is an error :

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

Warning: copy(): The second argument to copy() function cannot be a
directory in /var/www/html/vtigercrm/vtlib/Vtiger/PackageExport.php on line
162


On Fri, May 17, 2019 at 3:59 PM Pooja Beladiya <pooja at vindaloovoip.com>
wrote:

> forth argument as true in $package->export() don't generate any zip file
> in test/vtlib direcotory.
>
> On Fri, May 17, 2019 at 3:58 PM Pooja Beladiya <pooja at vindaloovoip.com>
> wrote:
>
>> Hello Alan Lord,
>>
>> When i disable error reporting this script :
>>
>> <?php
>> require_once('includes/main/WebUI.php');
>> require_once('vtlib/Vtiger/Package.php');
>> require_once('vtlib/Vtiger/Module.php');
>> $package = new Vtiger_Package();
>> $package->export(
>>       Vtiger_Module::getInstance('Expenses'),
>>       'test/vtlib',
>>       'Expenses-Export.zip',
>>       true
>> );
>> ?>
>> forth argument as true in $package->export() does generate any zip file
>> in test/vtlib direcotory.
>>
>> 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.
>>
>> On Fri, May 17, 2019 at 3:48 PM Alan Lord <alanslists at gmail.com> wrote:
>>
>>> On 17/05/2019 11:10, Pooja Beladiya wrote:
>>> > Warning: Cannot modify header information - headers already sent by
>>> > (output started at
>>> > /var/www/html/vtigercrm/libraries/antlr/AntlrLexer.php:297) in
>>> > /var/www/html/vtigercrm/vtlib/Vtiger/Zip.php on line 33
>>>
>>> Again this is not an error. This is an extremely common warning
>>> generated because the script has sent these warning messages (and
>>> generated the http headers) before the actual data.
>>>
>>>
>>> So now try it without Error reporting ;-)
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> http://www.vtiger.com/
>>>
>>
>>
>> --
>>
>> *Regards,*
>> *Pooja Beladiya*
>> *(Senior Software Engineer)*
>>
>>
>> <http://www.vindaloovoip.com/>
>> Vindaloo VoIP Solutions Pvt. Ltd.
>> Website: www.vindaloovoip.com
>> Skype: info at vindaloovoip.com
>>
>
>
> --
>
> *Regards,*
> *Pooja Beladiya*
> *(Senior Software Engineer)*
>
>
> <http://www.vindaloovoip.com/>
> Vindaloo VoIP Solutions Pvt. Ltd.
> Website: www.vindaloovoip.com
> Skype: info at vindaloovoip.com
>


-- 

*Regards,*
*Pooja Beladiya*
*(Senior Software Engineer)*


<http://www.vindaloovoip.com/>
Vindaloo VoIP Solutions Pvt. Ltd.
Website: www.vindaloovoip.com
Skype: info at vindaloovoip.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20190517/ff272182/attachment-0001.html>


More information about the vtigercrm-developers mailing list