rvalitov / widgetkit-map-ex

Responsive version of Yootheme's Map Widget (Widgetkit2) with center map point and advanced features
GNU General Public License v3.0
22 stars 3 forks source link

Autocomplete not working when typing location #47

Closed BloomBoy closed 8 years ago

BloomBoy commented 8 years ago

Expected behavior

Allow me to start enter an adress and that google suggest adresses matching the input

Actual behavior

Nothing happens. grey input on the right side of the input stating that: "Field disabled by MapEx widget"

Steps to reproduce the behavior

System information

Plugin version v1.5.1 Plugin build date 14/07/2016 Widgetkit version 2.7.3 Database version 2.0.0 jQuery version 1.12.4 UIkit version 2.26.2 AngularJS version 1.3.20 PHP version 7.0.8 (fpm-fcgi)

CMS type: Joomla or WordPress Joomla

CMS version:

Version of the widget:

Website URL:

Debug output of the widget:

rvalitov commented 8 years ago

Attach a screenshot please.

BloomBoy commented 8 years ago

My bad, I had issue with API key...

Morgan Gustafsson Bloom Webb AB 08-559 24 354

On Fri, Jul 15, 2016 at 1:29 PM, Ramil Valitov notifications@github.com wrote:

Attach a screenshot please.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rvalitov/widgetkit-map-ex/issues/47#issuecomment-232928558, or mute the thread https://github.com/notifications/unsubscribe-auth/AELq-RwYbfVMcLiUq0_DKlIimwUUvvjZks5qV28bgaJpZM4JNTl5 .

BloomBoy commented 8 years ago

Ok, still have the same issue, watch this short video: https://vimeo.com/174803732

Morgan Gustafsson Bloom Webb AB 08-559 24 354

On Fri, Jul 15, 2016 at 1:31 PM, Morgan Gustafsson morgan@bloom.se wrote:

My bad, I had issue with API key...

Morgan Gustafsson Bloom Webb AB 08-559 24 354

On Fri, Jul 15, 2016 at 1:29 PM, Ramil Valitov notifications@github.com wrote:

Attach a screenshot please.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rvalitov/widgetkit-map-ex/issues/47#issuecomment-232928558, or mute the thread https://github.com/notifications/unsubscribe-auth/AELq-RwYbfVMcLiUq0_DKlIimwUUvvjZks5qV28bgaJpZM4JNTl5 .

rvalitov commented 8 years ago

Thank you for the video. It helps a lot! First of all the disabled field is disabled on purpose because it's not used by MapEx widget, and this field is not related to the autocomplete feature. The warning notices in the console log are not related to your problem, too. Only the error message about missing file should not be there, I'll investigate why it appears in your case. I never tested the widget with PHP7. May be it's the reason of your problem. I suggest you to test the autocomplete feature in the standard Map widget. Does it work there?

rvalitov commented 8 years ago

And please, check the error.log file of Apache (PHP), may be there you will find some more warnings or errors that will help to find the reason of this problem.

BloomBoy commented 8 years ago

Hi again,

The standard widget also fails. I checked on another old project thats been working fine and that also failed. I tested with php 5.6 and on other server with same issue. To me it seems the warnings below are new, havent seen them before.

Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

Could it be that I have some issue with the api key? Or did gogle change anything?

Morgan Gustafsson Bloom Webb AB 08-559 24 354

On Fri, Jul 15, 2016 at 3:35 PM, Ramil Valitov notifications@github.com wrote:

And please, check the error.log file of Apache (PHP), may be there you will find some more warnings or errors that will help to find the reason of this problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rvalitov/widgetkit-map-ex/issues/47#issuecomment-232952104, or mute the thread https://github.com/notifications/unsubscribe-auth/AELq-Rnat3eQoiAmcnpqH7zqXsyTQtDpks5qV4yPgaJpZM4JNTl5 .

BloomBoy commented 8 years ago

No issues registered in the error logs by the way.

Morgan Gustafsson Bloom Webb AB 08-559 24 354

On Fri, Jul 15, 2016 at 3:52 PM, Morgan Gustafsson morgan@bloom.se wrote:

Hi again,

The standard widget also fails. I checked on another old project thats been working fine and that also failed. I tested with php 5.6 and on other server with same issue. To me it seems the warnings below are new, havent seen them before.

Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

Could it be that I have some issue with the api key? Or did gogle change anything?

Morgan Gustafsson Bloom Webb AB 08-559 24 354

On Fri, Jul 15, 2016 at 3:35 PM, Ramil Valitov notifications@github.com wrote:

And please, check the error.log file of Apache (PHP), may be there you will find some more warnings or errors that will help to find the reason of this problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rvalitov/widgetkit-map-ex/issues/47#issuecomment-232952104, or mute the thread https://github.com/notifications/unsubscribe-auth/AELq-Rnat3eQoiAmcnpqH7zqXsyTQtDpks5qV4yPgaJpZM4JNTl5 .

rvalitov commented 8 years ago

The MapEx widget uses the UI controls from the standard Map widget. So, if a standard Map widget fails to autocomplete, then the MapEx fails, too (because as I said they use the same input box). There is an issue #30 that was designed to add a new feature: own controls and give more options and freedom for selecting a location, but this issue isn't solved yet.

As far as I understand this issue happens in Safari? Did you try other browsers (Chrome and Firefox are recommended for testing)?

BloomBoy commented 8 years ago

I use Chrome.

Ok, I will test to update widgetkit and se if that solves this issue.

Morgan Gustafsson Bloom Webb AB 08-559 24 354

On Fri, Jul 15, 2016 at 4:15 PM, Ramil Valitov notifications@github.com wrote:

The MapEx widget uses the UI controls from the standard Map widget. So, if a standard Map widget fails to autocomplete, then the MapEx fails, too (because as I said they use the same input box). There is an issue #30 https://github.com/rvalitov/widgetkit-map-ex/issues/30 that was design to add a new feature: own controls and give more options and freedom for selecting a location, but this issue isn't solved yet.

As far as I understand this issue happens in Safari? Did you try other browsers (Chrome and Firefox are recommended for testing)?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rvalitov/widgetkit-map-ex/issues/47#issuecomment-232962118, or mute the thread https://github.com/notifications/unsubscribe-auth/AELq-UM9VJv4YHOTgZ2__Sej_RJO8yggks5qV5X0gaJpZM4JNTl5 .

rvalitov commented 8 years ago

I doubt that updating will help you, because I also tested the MapEx with Widgetkit 2.7.3 and the autocomplete works fine. And does autocomplete work if you just type the location in the Google Maps https://maps.google.com ?

rvalitov commented 8 years ago

If it's possible, please, create an account for me to access the Joomla's backend, so that I can investigate this issue and your website in details. Please, send the credentials privately to my e-mail ramilvalitov@gmail.com

BloomBoy commented 8 years ago

Yes, https://maps.google.com works as usual.

Morgan Gustafsson Bloom Webb AB 08-559 24 354

On Fri, Jul 15, 2016 at 4:19 PM, Ramil Valitov notifications@github.com wrote:

I doubt that updating will help you, because I also tested the MapEx with Widgetkit 2.7.3 and the autocomplete works fine. And does autocomplete work if you just type the location in the Google Maps https://maps.google.com ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rvalitov/widgetkit-map-ex/issues/47#issuecomment-232963458, or mute the thread https://github.com/notifications/unsubscribe-auth/AELq-ZWmackfMmcZrfKrIljKrqsRCkXZks5qV5cBgaJpZM4JNTl5 .

rvalitov commented 8 years ago

Current status of issue: issue is confirmed, it happens both for Map and MapEx widgets. It's not related with PHP7, widgetkit and Joomla version. Investigation is still ongoing.

rvalitov commented 8 years ago

The reason was that the Google Places API was not enabled for the domain. The Wiki updated.