-
Notifications
You must be signed in to change notification settings - Fork 106
Class geocoder does not exist #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Remove this line: Can you copy/paste the stacktrace from your laravel log file as well, please? |
Removed this line: [2017-08-03 22:18:33] local.ERROR: exception 'ReflectionException' with message 'Class geocoder does not exist' in /var/www/html/addressbook/vendor/laravel/framework/src/Illuminate/Container/Container.php:729 |
Did you upgrade from a previous version? Be sure to remove the alias you may have registered in you |
No! I didn't upgrade... i've installed it few hours ago... there is only one entry in config/app.php in providers array: I've executed following command: but it didn't work so I manually copy/paste geocoder.php in my config folder... and nothing else... i've also tried removing that copied file... but didn't work... removed cache also... my php version: |
I've completely removed
|
That's expected output. |
No! same |
Ignore my previous comment about php7. I got it confused with the upcoming release. |
Try removing the geocoder config file, if you published it. |
Hi @foziazahoor ... have you been able to solve this? This is most likely a configuration issue on your end, as we have not received any other reports like this, and I am unable to replicate it. |
Hi, yup there is something wrong at my end... because it is working fine on my windows on php 7.0.9... i've upgraded to php 7.1 on my ubuntu as well... but still not working... |
Bugger ... maybe start a new project and try it there? You can always run the unit tests to see if they work. They use their own configuration. If you're running on Ubuntu 14.x it might be an OpenSSL security issue, preventing the HTTPS requests from completing. Push your project to a production server on Ubuntu 16 (I use Laravel Forge), and it might work there. I've seen the old versions (prior to last week's 4.0 release) not work on local environments because of the OoenSSL issue, but work fine in production. Give that a shot. I will close this for now, but feel free to open a new ticket if you find an issue in the end (maybe a conflict with another package, etc.). |
Getting "Class geocoder does not exist"
use Geocoder\Laravel\Facades\Geocoder;
app('geocoder')->geocode('Los Angeles, CA')->get();
toin0u/geocoder-laravel 1.1.2 Geocoder Service Provider for Laravel
Added Geocoder\Laravel\Providers\GeocoderService::class, in app.php in providers array
Laravel Version : 5.4
The text was updated successfully, but these errors were encountered: