[Vtigercrm-developers] Custom Module Issue in vTiger 6

Sutharsan Jeganathan ajstharsan at gmail.com
Sun Jan 27 20:02:36 PST 2013


Salim

These are simply warning and could be resolved if you set them off in
php.ini.
But real solution is check the coding, and place a validation when you have
an foreach which raises invalid argument warning.

Thanks
Sutharsan Jeganathan


On Mon, Jan 28, 2013 at 12:03 AM, salim <salim at posibolt.com> wrote:

> Hi vTiger Team,
>     I am trying to create  new a custom module for vTiger6 using Vtlib, So
> started with "Payslip" module. I could have successfully installed the
> module.
>
> [image: Inline images 1]
>
> But when i try to Save a New Payslip, I am getting some errors. This the
> Script that i used to create Payslip Module : http://pastebin.com/nh6hmx9v
>
> This the error that i getting now :
>
>
> ( ! ) Warning: Invalid argument supplied for foreach() in
> C:\wamp\www\vt6\include\events\VTEventTrigger.inc on line *133* Call Stack
> #TimeMemory FunctionLocation10.0015334048 {main}( )..\index.php*:*020.541628399912Vtiger_WebUI->process(
> )..\index.php*:*193 0.767731622616Vtiger_Save_Action->process( )
> ..\WebUI.php*:*161 40.767731622616Vtiger_Save_Action->saveRecord( )..\Save.php
> *:*2350.845132233464Vtiger_Record_Model->save( ) ..\Save.php*:*4360.845132233464Vtiger_Module_Model->saveRecord(
> )..\Record.php*:*196 70.845832237192CRMEntity->save( ) ..\Module.php*:*148
> 80.849832248232VTEventsManager->triggerEvent( ) ..\CRMEntity.php*:*7989
> 0.8498 32248472VTEventTrigger->trigger( )..\VTEventsManager.inc*:*118
>  ( ! ) Warning: Invalid argument supplied for foreach() in
> C:\wamp\www\vt6\include\events\VTEventTrigger.inc on line *133* Call Stack
> #TimeMemory FunctionLocation10.0015334048 {main}( )..\index.php*:*020.541628399912Vtiger_WebUI->process(
> )..\index.php*:*193 0.767731622616Vtiger_Save_Action->process( )
> ..\WebUI.php*:*161 40.767731622616Vtiger_Save_Action->saveRecord( )..\Save.php
> *:*2350.845132233464Vtiger_Record_Model->save( ) ..\Save.php*:*4360.845132233464Vtiger_Module_Model->saveRecord(
> )..\Record.php*:*196 70.845832237192CRMEntity->save( ) ..\Module.php*:*148
> 80.866032547816VTEventsManager->triggerEvent( ) ..\CRMEntity.php*:*7999
> 0.8660 32548056VTEventTrigger->trigger( )..\VTEventsManager.inc*:*118
>  ( ! ) Warning: Invalid argument supplied for foreach() in
> C:\wamp\www\vt6\include\events\VTEventTrigger.inc on line *133* Call Stack
> #TimeMemory FunctionLocation10.0015334048 {main}( )..\index.php*:*020.541628399912Vtiger_WebUI->process(
> )..\index.php*:*193 0.767731622616Vtiger_Save_Action->process( )
> ..\WebUI.php*:*161 40.767731622616Vtiger_Save_Action->saveRecord( )..\Save.php
> *:*2350.845132233464Vtiger_Record_Model->save( ) ..\Save.php*:*4360.845132233464Vtiger_Module_Model->saveRecord(
> )..\Record.php*:*196 70.845832237192CRMEntity->save( ) ..\Module.php*:*148
> 81.640832658896VTEventsManager->triggerEvent( ) ..\CRMEntity.php*:*8109
> 1.6409 32659136VTEventTrigger->trigger( )..\VTEventsManager.inc*:*118
>  ( ! ) Warning: Invalid argument supplied for foreach() in
> C:\wamp\www\vt6\include\events\VTEventTrigger.inc on line *133* Call Stack
> #TimeMemory FunctionLocation10.0015334048 {main}( )..\index.php*:*020.541628399912Vtiger_WebUI->process(
> )..\index.php*:*193 0.767731622616Vtiger_Save_Action->process( )
> ..\WebUI.php*:*161 40.767731622616Vtiger_Save_Action->saveRecord( )..\Save.php
> *:*2350.845132233464Vtiger_Record_Model->save( ) ..\Save.php*:*4360.845132233464Vtiger_Module_Model->saveRecord(
> )..\Record.php*:*196 70.845832237192CRMEntity->save( ) ..\Module.php*:*148
> 82.116435586744VTEventsManager->triggerEvent( ) ..\CRMEntity.php*:*8119
> 2.1164 35586984VTEventTrigger->trigger( )..\VTEventsManager.inc*:*118
>  ( ! ) Warning: Cannot modify header information - headers already sent
> by (output started at
> C:\wamp\www\vt6\include\events\VTEventTrigger.inc:133) in
> C:\wamp\www\vt6\vtiger6\modules\Vtiger\actions\Save.php on line *33* Call
> Stack#TimeMemory FunctionLocation10.0015334048 {main}( )..\index.php*:*02
> 0.5416 28399912Vtiger_WebUI->process( )..\index.php*:*193 0.767731622616Vtiger_Save_Action->process(
> )..\WebUI.php*:*161 42.138535961840header <http://www.php.net/header> ( )
> ..\Save.php*:*33
>
>
> Thanks
> --
> Salim
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130128/5f5132c0/attachment.html 


More information about the vtigercrm-developers mailing list