Hi !
Could you please help with the Fatal PHP error on Opportunity creation via API:
Espo error_log:
[2018-01-25 15:34:44] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/bhome/part3/****/application/Espo/Services/Record.php","line":521,"context":{"data":"{"stage" :"Closed Won","leadSource":"Web Site","assignedUserId":"5a69a352b353dcc31","assign edUserName":"robot","probability":100,"name":"Robo Market-1000","amount":1100,"amountCurrency":"RUB","closeD ate":"2018-01-25","description"...
My Internal Error log:
[Thu Jan 25 23:39:59 2018] [error] [client 62.113.**] PHP Fatal error: Cannot unset string offsets in /bhome/part3/03/***/crm/application/Espo/Services/Record.php on line 571
JSON body of API request:
{"stage":"Closed Won","leadSource":"Web Site","assignedUserId":"5a69a352b353dcc31","assign edUserName":"robot","probability":100,"name":"Deal # 12345","amount":1999,"amountCurrency":"RUB","close Date":"2018-01-26","description":"Deal description","accountName":null,"accountId":null," contactsIds":[],"contactsNames":{},"contactsColumns":{},"teams Ids ":[],"teamsNames":{}}
PS. connection / user-password & token are Ok, no issues on that (query is working fine)
PPS. EspoCRM v.4.6.0
Could you please help with the Fatal PHP error on Opportunity creation via API:
Espo error_log:
[2018-01-25 15:34:44] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/bhome/part3/****/application/Espo/Services/Record.php","line":521,"context":{"data":"{"stage" :"Closed Won","leadSource":"Web Site","assignedUserId":"5a69a352b353dcc31","assign edUserName":"robot","probability":100,"name":"Robo Market-1000","amount":1100,"amountCurrency":"RUB","closeD ate":"2018-01-25","description"...
My Internal Error log:
[Thu Jan 25 23:39:59 2018] [error] [client 62.113.**] PHP Fatal error: Cannot unset string offsets in /bhome/part3/03/***/crm/application/Espo/Services/Record.php on line 571
JSON body of API request:
{"stage":"Closed Won","leadSource":"Web Site","assignedUserId":"5a69a352b353dcc31","assign edUserName":"robot","probability":100,"name":"Deal # 12345","amount":1999,"amountCurrency":"RUB","close Date":"2018-01-26","description":"Deal description","accountName":null,"accountId":null," contactsIds":[],"contactsNames":{},"contactsColumns":{},"teams Ids ":[],"teamsNames":{}}
PS. connection / user-password & token are Ok, no issues on that (query is working fine)
PPS. EspoCRM v.4.6.0
Comment