Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

PHP warnings about count() on line 23 GeocodeResponse and no debug data #19

@goldhat

Description

@goldhat

I can't seem to get either a response, or even debug information from the PHP version of this. When I try the test.php it says OK on all tests including Mapbox authentication, so I think my token is fine. The only concern in the command line test is multiple warnings for count(): parameter must be an array or an object that implement Countable in GeocodeResponse.php on line 23. Every test results in this warning, and then "Doh" is output.

When I try to make the example request for San Francisco the response is just "null". I try debug mode, and still nothing is output. I try outputting some of the suggested other parts of the response like code, and I get a fatal error for instance:

Fatal error: Uncaught Error: Call to undefined method geocodeResponse::getCode() in C:\wamp64\www\skygearsolutions\wp-content\plugins\skygear-mapbox\skygear-mapbox.php on line 31

I am running this on a local machine, that's one thing I could think of that might interfere?

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