When moving a database from a Filemaker Server 17 to v19, scripts that used fmRESTor stopped working.
I am getting the error:
'fmDataSource': Expected type array but found type string
It looks like the fmRESTor login function is sending:
{"fmDataSource":""}
The troublesome code seems to be here:
if ($this->fmDataSource !== null) {
$prepareParam = array(
"fmDataSource" => $this->fmDataSource
);
$param = $this->convertParametersToJson($prepareParam);
}
When I comment out this portion of the code, the error goes away. (My reading of the documentation seems to indicate fmDataSource is for connecting to external data sources, which I am not doing)
When moving a database from a Filemaker Server 17 to v19, scripts that used fmRESTor stopped working.
I am getting the error:
'fmDataSource': Expected type array but found type string
It looks like the fmRESTor login function is sending:
{"fmDataSource":""}
The troublesome code seems to be here:
When I comment out this portion of the code, the error goes away. (My reading of the documentation seems to indicate fmDataSource is for connecting to external data sources, which I am not doing)