emilianotisato / nova-google-autocomplete-field

Address Autocomplete with Google Place API (full metadata available)
20 stars 17 forks source link

Strange Error On Production - EmilianoTisato\GoogleAutocomplete\GoogleAutocomplete::placeType does not exist. #7

Closed nickpoulos closed 5 years ago

nickpoulos commented 5 years ago

I have been using this package in local Homestead without any issues. However, after pushing to a DigitalOcean ubuntu box via Forge I am now getting an odd error on both create/index views.

The actual errors are occurring when the Nova API tries to get the field list via:

/nova-api/businesses/creation-fields?editing=true&editMode=create&viaResource=&viaResourceId=&viaRelationship=

This dies with a:

BadMethodCallException Method EmilianoTisato\GoogleAutocomplete\GoogleAutocomplete::placeType does not exist.

My .env is setup correctly, all the calls appear to be the same, not quite sure what is happening.

Anybody else see this behavior at all?

nickpoulos commented 5 years ago

Wow...I totally forgot I am the one who submitted the original PR for this feature. 🤦‍♂

So I never actually updated my composer.json to pull the package after the placeType PR was merged, yet the code was still in my local due to my testing adding the placeType feature awhile back.

Mystery solved...user brain error.