silvershop / silvershop-geocoding Goto Github PK
View Code? Open in Web Editor NEWGeocoding support for shop module. Get coordinates for addresses, and convert visitor IP to location.
License: Other
Geocoding support for shop module. Get coordinates for addresses, and convert visitor IP to location.
License: Other
Hello
just uploaded SilverStripe 4.5.2 to the real host (PHP 7.3) and got a server error (if not logged in to Silverstripe admin)
[2020-06-25 17:03:15] error-log.ERROR: Uncaught Exception Error: "Call to undefined method Geocoder\Model\AddressCollection::toArray()" at /home/korjik5/baybuckwheat.co.nz/vendor/silvershop/geocoding/src/Extensions/GeocodedUserInfo.php line 43 {"exception":"[object] (Error(code: 0): Call to undefined method Geocoder\Model\AddressCollection::toArray() at /home/korjik5/baybuckwheat.co.nz/vendor/silvershop/geocoding/src/Extensions/GeocodedUserInfo.php:43)"} []
Could you please add the module to scrutinizer? https://scrutinizer-ci.com/g/new. We're keeping track of all modules we use on our contributions dashboard (github-dashing.herokuapp.com), and I've added scrutinizer quality and coverage scores there. Doesn't require any config, just four clicks. You'll have to click "Schedule inspection" for the first run, after that it should kick off automatically on commits.
There's banners you can copy paste into your README if you want. Also, if you feel like it, you could also add me as a collaborator :) There's a "Add collaborators to your repository" option on the homepage.
We're experimenting with a more fine tuned config, including code coverage running on travis, but that's not really to roll out yet (https://github.com/stojg/silverstripe-timeline). Happy to hear feedback and get help of course :)
Silverstripe 4 silvershop is using this and the thirdparty service doesnt work or has been shutdown.
FreeGeoIp provider has been unreliable, so I needed to remove it from default list.
We could implement a cache of bad providers. In other words, disable a provider when it it becomes slow/unavailable on subsequent requests. We would need to average failures over a few requests to make the decision on when to turn off a service, as you don't want to disable a service because of a one-off slow request.
Geocodeded data could be fetched when needed, instead of on first request. This will move the issue elsewhere.
We also need logging to tell us when providers fail. This is important to know, so sites can be updated accordingly.
The most recent published version of this package, 1.2.3
, is almost 2 years old and has a dependency on the old "burnbright/silverstripe-shop": "*"
which causes a duplicate install of SilverStripe Shop for any module that includes silvershop/silvershop-geocoding
as a dependency.
Please publish a new version based on the latest commit to fix this.
If geocoding can't complete for reasons unrelated to code, it's annoying to get lots of exception messages.
We could instead log something quieter, which perhaps ends up in application logs for later analysis.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.