[Vtigercrm-developers] google sync error

lajeesh k lajeeshk at gmail.com
Fri Oct 30 08:34:28 GMT 2020


Hi

I am getting this error while clicking the sync button . Does anyone have a
clue about this issue ?

( ! ) Fatal error: Uncaught Error: Cannot use object of type
WSAPP_VtigerModel as array in
/var/www/html/2020/vtiger73/modules/Google/models/Contacts.php on line *19*
( ! ) Error: Cannot use object of type WSAPP_VtigerModel as array in
/var/www/html/2020/vtiger73/modules/Google/models/Contacts.php on line *19*
Call Stack
#TimeMemoryFunctionLocation
1 0.0002 362992 {main}( ) .../index.php*:*0
2 0.0059 1134032 Vtiger_WebUI->process( ) .../index.php*:*20
3 0.0251 2318096 Google_Sync_View->process( ) .../WebUI.php*:*215
4 0.0269 2323832 Google_Sync_View->sync( ) .../Sync.php*:*21
5 0.0269 2323832 Google_Sync_View->invokeExposedMethod( ) .../Sync.php*:*33
6 0.0269 2324240 Google_Sync_View->Contacts( ) .../Controller.php*:*64
7 0.0311 2350968 Google_Contacts_Controller->synchronize( ) .../List.php*:*
122
8 0.3865 2429392 Google_Contacts_Controller->synchronizePull( )
.../SynchronizeController.php*:*156
9 0.7533 2828832 Google_Vtiger_Connector->postEvent( )
.../SynchronizeController.php*:*100
10 0.7533 2828832 Google_Vtiger_Connector->map( ) .../VtigerConnector.php*:*
195
11 0.7533 2829208 Google_Contacts_Model->getId( ) .../VtigerConnector.php*:*
210

Error is throwing from this file
modules/WSAPP/synclib/connectors/VtigerConnector.php function map line 210
$mapFormatedRecords['create'][$destinationRecord->getId()] = array(
'serverid' => $sourceRecord->getId(),

error is exactly from this code $destinationRecord->getId()

and the getId function will look like this
public function getId() {
return $this->data['entity']['id']['$t'];
}

getting id value from data array. but the $this->data['entity'] has an
object of WSAPP_VtigerModel

Anyone encountered this error ?.

Regards,
Lajeesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20201030/6a6a1cbf/attachment.html>


More information about the vtigercrm-developers mailing list