<div dir="ltr">Hi<div><br></div><div>I am getting this error while clicking the sync button . Does anyone have a clue about this issue ?</div><div><br></div><div><font size="1"><table dir="ltr" cellspacing="0" cellpadding="1" border="1"><tbody><tr><th colspan="5" bgcolor="#f57900" align="left"><span style="background-color:rgb(204,0,0);color:rgb(252,233,79);font-size:x-large">( ! )</span>
 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 <i>19</i></th></tr>
<tr><th colspan="5" bgcolor="#f57900" align="left"><span style="background-color:rgb(204,0,0);color:rgb(252,233,79);font-size:x-large">( ! )</span>
 Error: Cannot use object of type WSAPP_VtigerModel as array in 
/var/www/html/2020/vtiger73/modules/Google/models/Contacts.php on line <i>19</i></th></tr>
<tr><th colspan="5" bgcolor="#e9b96e" align="left">Call Stack</th></tr>
<tr><th bgcolor="#eeeeec" align="center">#</th><th bgcolor="#eeeeec" align="left">Time</th><th bgcolor="#eeeeec" align="left">Memory</th><th bgcolor="#eeeeec" align="left">Function</th><th bgcolor="#eeeeec" align="left">Location</th></tr>
<tr><td bgcolor="#eeeeec" align="center">1</td><td bgcolor="#eeeeec" align="center">0.0002</td><td bgcolor="#eeeeec" align="right">362992</td><td bgcolor="#eeeeec">{main}(  )</td><td title="/var/www/html/2020/vtiger73/index.php" bgcolor="#eeeeec">.../index.php<b>:</b>0</td></tr>
<tr><td bgcolor="#eeeeec" align="center">2</td><td bgcolor="#eeeeec" align="center">0.0059</td><td bgcolor="#eeeeec" align="right">1134032</td><td bgcolor="#eeeeec">Vtiger_WebUI->process(  )</td><td title="/var/www/html/2020/vtiger73/index.php" bgcolor="#eeeeec">.../index.php<b>:</b>20</td></tr>
<tr><td bgcolor="#eeeeec" align="center">3</td><td bgcolor="#eeeeec" align="center">0.0251</td><td bgcolor="#eeeeec" align="right">2318096</td><td bgcolor="#eeeeec">Google_Sync_View->process(  )</td><td title="/var/www/html/2020/vtiger73/includes/main/WebUI.php" bgcolor="#eeeeec">.../WebUI.php<b>:</b>215</td></tr>
<tr><td bgcolor="#eeeeec" align="center">4</td><td bgcolor="#eeeeec" align="center">0.0269</td><td bgcolor="#eeeeec" align="right">2323832</td><td bgcolor="#eeeeec">Google_Sync_View->sync(  )</td><td title="/var/www/html/2020/vtiger73/modules/Google/views/Sync.php" bgcolor="#eeeeec">.../Sync.php<b>:</b>21</td></tr>
<tr><td bgcolor="#eeeeec" align="center">5</td><td bgcolor="#eeeeec" align="center">0.0269</td><td bgcolor="#eeeeec" align="right">2323832</td><td bgcolor="#eeeeec">Google_Sync_View->invokeExposedMethod(  )</td><td title="/var/www/html/2020/vtiger73/modules/Google/views/Sync.php" bgcolor="#eeeeec">.../Sync.php<b>:</b>33</td></tr>
<tr><td bgcolor="#eeeeec" align="center">6</td><td bgcolor="#eeeeec" align="center">0.0269</td><td bgcolor="#eeeeec" align="right">2324240</td><td bgcolor="#eeeeec">Google_Sync_View->Contacts(  )</td><td title="/var/www/html/2020/vtiger73/includes/runtime/Controller.php" bgcolor="#eeeeec">.../Controller.php<b>:</b>64</td></tr>
<tr><td bgcolor="#eeeeec" align="center">7</td><td bgcolor="#eeeeec" align="center">0.0311</td><td bgcolor="#eeeeec" align="right">2350968</td><td bgcolor="#eeeeec">Google_Contacts_Controller->synchronize(  )</td><td title="/var/www/html/2020/vtiger73/modules/Google/views/List.php" bgcolor="#eeeeec">.../List.php<b>:</b>122</td></tr>
<tr><td bgcolor="#eeeeec" align="center">8</td><td bgcolor="#eeeeec" align="center">0.3865</td><td bgcolor="#eeeeec" align="right">2429392</td><td bgcolor="#eeeeec">Google_Contacts_Controller->synchronizePull(  )</td><td title="/var/www/html/2020/vtiger73/modules/WSAPP/synclib/controllers/SynchronizeController.php" bgcolor="#eeeeec">.../SynchronizeController.php<b>:</b>156</td></tr>
<tr><td bgcolor="#eeeeec" align="center">9</td><td bgcolor="#eeeeec" align="center">0.7533</td><td bgcolor="#eeeeec" align="right">2828832</td><td bgcolor="#eeeeec">Google_Vtiger_Connector->postEvent(  )</td><td title="/var/www/html/2020/vtiger73/modules/WSAPP/synclib/controllers/SynchronizeController.php" bgcolor="#eeeeec">.../SynchronizeController.php<b>:</b>100</td></tr>
<tr><td bgcolor="#eeeeec" align="center">10</td><td bgcolor="#eeeeec" align="center">0.7533</td><td bgcolor="#eeeeec" align="right">2828832</td><td bgcolor="#eeeeec">Google_Vtiger_Connector->map(  )</td><td title="/var/www/html/2020/vtiger73/modules/WSAPP/synclib/connectors/VtigerConnector.php" bgcolor="#eeeeec">.../VtigerConnector.php<b>:</b>195</td></tr>
<tr><td bgcolor="#eeeeec" align="center">11</td><td bgcolor="#eeeeec" align="center">0.7533</td><td bgcolor="#eeeeec" align="right">2829208</td><td bgcolor="#eeeeec">Google_Contacts_Model->getId(  )</td><td title="/var/www/html/2020/vtiger73/modules/WSAPP/synclib/connectors/VtigerConnector.php" bgcolor="#eeeeec">.../VtigerConnector.php<b>:</b>210</td></tr></tbody></table></font><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div>Error is throwing from this file  modules/WSAPP/synclib/connectors/VtigerConnector.php <span style="background-color:rgb(40,44,52);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre-wrap;color:rgb(198,120,221)">function</span><span style="background-color:rgb(40,44,52);color:rgb(187,187,187);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre-wrap"> </span><span style="background-color:rgb(40,44,52);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre-wrap;color:rgb(97,175,239)">map </span>line 210 </div><div><div style="color:rgb(187,187,187);background-color:rgb(40,44,52);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;line-height:16px;white-space:pre-wrap"><div>$mapFormatedRecords[<span style="color:rgb(152,195,121)">'create'</span>][$destinationRecord<span style="color:rgb(97,175,239)">->getId</span>()] <span style="color:rgb(97,175,239)">=</span> <span style="color:rgb(86,182,194)">array</span>(<span style="color:rgb(152,195,121)">'serverid'</span> <span style="color:rgb(97,175,239)">=></span> $sourceRecord<span style="color:rgb(97,175,239)">->getId</span>(),</div></div></div><div><br></div><div>error is exactly from this code <span style="background-color:rgb(40,44,52);color:rgb(187,187,187);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre-wrap">$destinationRecord</span><span style="background-color:rgb(40,44,52);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre-wrap;color:rgb(97,175,239)">->getId</span><span style="background-color:rgb(40,44,52);color:rgb(187,187,187);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre-wrap">() </span></div><div><br></div><div>and the getId function will look like this </div><div><span style="background-color:rgb(40,44,52);color:rgb(187,187,187);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre">   </span><span style="background-color:rgb(40,44,52);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre;color:rgb(198,120,221)">public</span><span style="background-color:rgb(40,44,52);color:rgb(187,187,187);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre"> </span><span style="background-color:rgb(40,44,52);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre;color:rgb(198,120,221)">function</span><span style="background-color:rgb(40,44,52);color:rgb(187,187,187);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre"> </span><span style="background-color:rgb(40,44,52);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre;color:rgb(97,175,239)">getId</span><span style="background-color:rgb(40,44,52);color:rgb(187,187,187);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;white-space:pre">() {</span></div><div style="color:rgb(187,187,187);background-color:rgb(40,44,52);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:12px;line-height:16px;white-space:pre"><div>        <span style="color:rgb(198,120,221)">return</span> <span style="color:rgb(198,120,221)">$this</span><span style="color:rgb(97,175,239)">-></span><span style="color:rgb(224,108,117)">data</span>[<span style="color:rgb(152,195,121)">'entity'</span>][<span style="color:rgb(152,195,121)">'id'</span>][<span style="color:rgb(152,195,121)">'$t'</span>];</div><div>    }</div></div><div><br></div><div>getting id value from data array. but the $this->data['entity'] has an object of WSAPP_VtigerModel</div><div><br></div><div>Anyone encountered this error ?. </div><div><br></div><div>Regards,<br>Lajeesh<br></div><div><br></div><div><br></div></div></div></div></div></div>