After updating the version from 6.1.9-to-6.1.10, and then 6.1.10-to-7.0.8, receiving data through the API stopped working. Before that, everything worked correctly.
got this error
[2021-12-17 13:52:25] ERROR: (0) where should be array.; GET /Contact; line: 335, file: /home/aaaaaaaa/public_html/crm/application/Espo/Core/Select/SearchParams.php [] [] [2021-12-17 13:52:25] ERROR: (0) where should be array.; GET /TerminalProfile; line: 335, file: /home/aaaaaaa/public_html/crm/application/Espo/Core/Select/SearchParams.php [] []
For the test, I removed part of the code
if ($where !== null && !is_array($where)) {
throw new InvalidArgumentException("where should be array.");
}
and got another error
[2021-12-17 16:26:25] ERROR: (0) Bad 'value'.; GET /Contact; line: 105, file: /home/aaaaaaa/public_html/crm/application/Espo/Core/Select/Where/Item.php [] [] [2021-12-17 16:26:26] ERROR: (0) Bad 'value'.; GET /TerminalProfile; line: 105, file: /home/aaaaaaaa/public_html/crm/application/Espo/Core/Select/Where/Item.php [] []
Then he restored everything. Using the exclusion method, I removed various packages that are transmitted via the API, but I did not find an error. I left a minimum of information for transferring via API, but the transfer of data did not start. Help please, I really need to get this data.
[2021-12-17 17:15:28] ERROR: (0) where should be array.; GET /Options; line: 335, file: /home/aaaaaaa/public_html/crm/application/Espo/Core/Select/SearchParams.php [] []
got this error
[2021-12-17 13:52:25] ERROR: (0) where should be array.; GET /Contact; line: 335, file: /home/aaaaaaaa/public_html/crm/application/Espo/Core/Select/SearchParams.php [] [] [2021-12-17 13:52:25] ERROR: (0) where should be array.; GET /TerminalProfile; line: 335, file: /home/aaaaaaa/public_html/crm/application/Espo/Core/Select/SearchParams.php [] []
For the test, I removed part of the code
if ($where !== null && !is_array($where)) {
throw new InvalidArgumentException("where should be array.");
}
and got another error
[2021-12-17 16:26:25] ERROR: (0) Bad 'value'.; GET /Contact; line: 105, file: /home/aaaaaaa/public_html/crm/application/Espo/Core/Select/Where/Item.php [] [] [2021-12-17 16:26:26] ERROR: (0) Bad 'value'.; GET /TerminalProfile; line: 105, file: /home/aaaaaaaa/public_html/crm/application/Espo/Core/Select/Where/Item.php [] []
Then he restored everything. Using the exclusion method, I removed various packages that are transmitted via the API, but I did not find an error. I left a minimum of information for transferring via API, but the transfer of data did not start. Help please, I really need to get this data.
[2021-12-17 17:15:28] ERROR: (0) where should be array.; GET /Options; line: 335, file: /home/aaaaaaa/public_html/crm/application/Espo/Core/Select/SearchParams.php [] []
Comment