[Vtigercrm-developers] Error in Webservice\Retrieve.php

Nilay Khatri nilay.khatri at vtiger.com
Thu Jun 28 03:44:13 PDT 2012


Hi,

smownerid is the id given for the assigned_user_id so check if the value
for assigned_to is set or not.

Try to log the values passed in params at line 347 in file
data\CRMEntity.php.

On Thu, Jun 28, 2012 at 3:19 PM, Desarrollo - Affinity <
desarrollo.affinity at gmail.com> wrote:

> I thought vTiger did it itself inside the function save($module)
>
> 2012/6/28 Nilay Khatri <nilay.khatri at vtiger.com>
>
>> Hi,
>>
>> you cannot have the smownerid column value as NULL. Are you setting the
>> value properly?
>>
>>
>> On Thu, Jun 28, 2012 at 2:36 PM, Desarrollo - Affinity <
>> desarrollo.affinity at gmail.com> wrote:
>>
>>> I have the entry in vtiger_ws_entity_table , debugging MySQL this
>>> happens: " Column 'smownerid' cannot be null" ->   insert into
>>> vtiger_crmentity
>>> (crmid,smcreatorid,smownerid,setype,description,createdtime,modifiedtime)
>>> values(1262,'1',NULL,'CuentasContables','','2012-06-28
>>> 10:03:56','2012-06-28 10:03:56')
>>>
>>> But this is so strange, with my develop enviroment all works, but then I
>>> upload to production (other webserver, pc etc) and this error happens.
>>>
>>> 2012/6/28 Nilay Khatri <nilay.khatri at vtiger.com>
>>>
>>>> Hi,
>>>>
>>>> you can check if the webserviceObject is created or not. I guess you do
>>>> not have an entry for your entity under the vtiger_ws_entity table.
>>>>
>>>> On Thu, Jun 28, 2012 at 1:31 PM, Desarrollo - Affinity <
>>>> desarrollo.affinity at gmail.com> wrote:
>>>>
>>>>> I have this error when i save a custom module that i made:
>>>>>
>>>>> Fatal error: Uncaught exception 'WebServiceException' with message
>>>>> 'Permission to perform the operation is denied' in
>>>>> C:\apache\htdocs\manager\include\Webservices\Retrieve.php:26 Stack trace:
>>>>> #0
>>>>> C:\apache\htdocs\manager\modules\com_vtiger_workflow\VTEntityCache.inc(16):
>>>>> vtws_retrieve('35x1247', Object(Users)) #1
>>>>> C:\apache\htdocs\manager\modules\com_vtiger_workflow\VTEntityCache.inc(83):
>>>>> VTWorkflowEntity->__construct(Object(Users), '35x1247') #2
>>>>> C:\apache\htdocs\manager\modules\com_vtiger_workflow\VTEventHandler.inc(48):
>>>>> VTEntityCache->forId('35x1247') #3
>>>>> C:\apache\htdocs\manager\include\events\VTEventTrigger.inc(119):
>>>>> VTWorkflowEventHandler->handleEvent('vtiger.entity.a...',
>>>>> Object(VTEntityData)) #4
>>>>> C:\apache\htdocs\manager\include\events\VTEventsManager.inc(118):
>>>>> VTEventTrigger->trigger(Object(VTEntityData)) #5
>>>>> C:\apache\htdocs\manager\data\CRMEntity.php(863):
>>>>> VTEventsManager->triggerEvent('vtiger.entity.a...', Object(VTEntityData))
>>>>> #6 C:\apache\htdocs\manager\modules\Vendors\Save.php(44):
>>>>> CRMEntity->save('CuentasContabl in
>>>>> C:\apache\htdocs\manager\include\Webservices\Retrieve.php on line 26
>>>>>
>>>>> What can I do? Where should I start to find?
>>>>> _______________________________________________
>>>>> http://www.vtiger.com/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> regards
>>>> Nilay Khatri
>>>> (VTiger)
>>>>
>>>>
>>>> _______________________________________________
>>>> http://www.vtiger.com/
>>>>
>>>
>>>
>>> _______________________________________________
>>> http://www.vtiger.com/
>>>
>>
>>
>>
>> --
>> regards
>> Nilay Khatri
>> (VTiger)
>>
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
regards
Nilay Khatri
(VTiger)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20120628/34e9a0c8/attachment.html 


More information about the vtigercrm-developers mailing list