Skip to content

bug with fmDataSource #8

@gractrit

Description

@gractrit

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions