alfio-event / alf.io

alf.io - The open source ticket reservation system for conferences, trade shows, workshops, meetups
https://alf.io
GNU General Public License v3.0
1.42k stars 347 forks source link

Cant insert address #76

Closed mg-1999 closed 9 years ago

mg-1999 commented 9 years ago

When I try to add an address to an event, it says that it cant find the address. I've tried it in any format I could think off. How to fix this?

cbellone commented 9 years ago

Hi @mg-1999,

Did you create and set the Google Maps' API Keys? (Both server and Browser) If not, you can create an application here: https://console.developers.google.com/ then go under APIs & Auth -> Credentials and click on Add Credential -> API Key. You must do it twice, one time for the Server API Key and the other for the Browser API Key (Client).

After doing that, do not forget to enable the following services under APIs & auth -> APIs:

that's it. After adding the keys to the Alfio's configuration, you should be able to find an address and to show it on a map.

Celestino

mg-1999 commented 9 years ago

It works now. Only if I hit the 'save' button nothing happens, and no errors appear in config. Also every field has been filled in.

cbellone commented 9 years ago

Which version are you using? Il 24-set-2015 09:31 PM, "Matthijs" notifications@github.com ha scritto:

It works now. Only if I hit the 'save' button nothing happens, and no errors appear in config. Also every field has been filled in.

— Reply to this email directly or view it on GitHub https://github.com/exteso/alf.io/issues/76#issuecomment-143026860.

mg-1999 commented 9 years ago

Version 1.5, downloaded just a few days ago.

cbellone commented 9 years ago

Please upgrade to 1.5.1 as 1.5 could have problems on some cloud environments. However, this shouldn't have nothing to do with your problem.

Please could you open the browser dev toolbar (F12 on some browsers) click again on the button and see if something strange happens?

Could you also answer the questions below?

Thank you Celestino Il 24-set-2015 09:41 PM, "Matthijs" notifications@github.com ha scritto:

Version 1.5, downloaded just a few days ago.

— Reply to this email directly or view it on GitHub https://github.com/exteso/alf.io/issues/76#issuecomment-143029337.

mg-1999 commented 9 years ago

I just fill everything in, add a category and hit save. Also the Chrome Dev Tools is giving an error in the console, I will attach it to this post.

The log: [INFO ] 2015-09-24 15:23:18.013 [main] SpringBootLauncher - requested profiles [INFO ] 2015-09-24 15:23:20.416 [main] SpringBootLauncher - Starting SpringBootLauncher on server.mg-dev.eu with PID 20878 (started by root in /root/alf) [WARN ] 2015-09-24 15:23:22.827 [main] PathMatchingResourcePatternResolver - Skipping [/root/alf/alfio-1.5-boot.war] because it does not denote a directory [INFO ] 2015-09-24 15:23:25.939 [main] DataSourceConfiguration - Detected DEFAULT cloud provider [INFO ] 2015-09-24 15:23:35.873 [main] DataSourceConfiguration - Quartz scheduler configured to run! [INFO ] 2015-09-24 15:23:40.022 [main] ConfigurationStatusChecker - performing migration from previous version, if any [INFO ] 2015-09-24 15:23:40.202 [main] ConfigurationStatusChecker - done. [INFO ] 2015-09-24 15:23:40.206 [main] ConfigurationStatusChecker - initialized alf.io version 1.5 [INFO ] 2015-09-24 15:23:40.478 [QuartzScheduler_Worker-8] FileUploadManager - removed 0 unused file_blob [INFO ] 2015-09-24 15:23:40.564 [main] SpringBootLauncher - Started SpringBootLauncher in 22.061 seconds (JVM running for 26.467) [INFO ] 2015-09-24 15:23:40.568 [main] SpringBootLauncher - active profiles: dev-psql, spring-boot [WARN ] 2015-09-24 15:24:00.450 [qtp2138369213-18] PageNotFound - No mapping found for HTTP request with URI [/favicon.ico] in DispatcherServlet with name 'dispatcherServlet'

The errors in the console: alf

cbellone commented 9 years ago

Ok, this is why you don't see any error message in the page. Thank you. Looks like there is something wrong with the content of the form. Could you please open the "network" tab, clear the entries and then click on the button? It should appear an ajax "check" call. Could you please export it as har and send it? (please remove all the sensitive data, if any but leave dates as they are) Il 24-set-2015 10:12 PM, "Matthijs" notifications@github.com ha scritto:

I just fill everything in, add a category and hit save. Also the Chrome Dev Tools is giving an error in the console, I will attach it to this post.

The log: [INFO ] 2015-09-24 15:23:18.013 [main] SpringBootLauncher - requested profiles [INFO ] 2015-09-24 15:23:20.416 [main] SpringBootLauncher - Starting SpringBootLauncher on server.mg-dev.eu with PID 20878 (started by root in /root/alf) [WARN ] 2015-09-24 15:23:22.827 [main] PathMatchingResourcePatternResolver

  • Skipping [/root/alf/alfio-1.5-boot.war] because it does not denote a directory [INFO ] 2015-09-24 15:23:25.939 [main] DataSourceConfiguration - Detected DEFAULT cloud provider [INFO ] 2015-09-24 15:23:35.873 [main] DataSourceConfiguration - Quartz scheduler configured to run! [INFO ] 2015-09-24 15:23:40.022 [main] ConfigurationStatusChecker - performing migration from previous version, if any [INFO ] 2015-09-24 15:23:40.202 [main] ConfigurationStatusChecker - done. [INFO ] 2015-09-24 15:23:40.206 [main] ConfigurationStatusChecker - initialized alf.io version 1.5 [INFO ] 2015-09-24 15:23:40.478 [QuartzScheduler_Worker-8] FileUploadManager - removed 0 unused file_blob [INFO ] 2015-09-24 15:23:40.564 [main] SpringBootLauncher - Started SpringBootLauncher in 22.061 seconds (JVM running for 26.467) [INFO ] 2015-09-24 15:23:40.568 [main] SpringBootLauncher - active profiles: dev-psql, spring-boot [WARN ] 2015-09-24 15:24:00.450 [qtp2138369213-18] PageNotFound - No mapping found for HTTP request with URI [/favicon.ico] in DispatcherServlet with name 'dispatcherServlet'

The errors in the console: [image: alf] https://cloud.githubusercontent.com/assets/6923382/10085376/29199ee4-6309-11e5-8627-1a1ca66a26a8.png

— Reply to this email directly or view it on GitHub https://github.com/exteso/alf.io/issues/76#issuecomment-143037191.

mg-1999 commented 9 years ago

Got it:

{ "log": { "version": "1.2", "creator": { "name": "WebInspector", "version": "537.36" }, "pages": [ { "startedDateTime": "2015-09-25T13:01:11.091Z", "id": "page1", "title": "https://--------.eu/admin", "pageTimings": { "onContentLoad": 1698.4370000427589, "onLoad": 1903.5539999604225 } } ], "entries": [ { "startedDateTime": "2015-09-25T13:20:16.113Z", "time": 61.96399999316782, "request": { "method": "POST", "url": "https://--------.eu/admin/api/events/check", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Cookie", "value": "cfduid=de24cc9ab6e7e9c568ce3ae0ed40279331441012176; uvt=; uvts=3Z4XyePvpvbjs4E2; JSESSIONID=8v8k8a9ndjsg1gkww400rixpe" }, { "name": "Origin", "value": "https://--------.eu" }, { "name": "Accept-Encoding", "value": "gzip, deflate" }, { "name": "X-CSRF-TOKEN", "value": "9324d7dd-37e6-4b84-8963-d773652c4431" }, { "name": "Host", "value": "https://--------.eu" }, { "name": "Accept-Language", "value": "nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4" }, { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36" }, { "name": "Content-Type", "value": "application/json;charset=UTF-8" }, { "name": "Accept", "value": "application/json, text/plain, /_" }, { "name": "Referer", "value": "https://--------.eu/admin" }, { "name": "X-Requested-With", "value": "XMLHttpRequest" }, { "name": "Connection", "value": "keep-alive" }, { "name": "Content-Length", "value": "1116" }, { "name": "DNT", "value": "1" } ], "queryString": [], "cookies": [ { "name": "JSESSIONID", "value": "8v8k8a9ndjsg1gkww400rixpe", "expires": null, "httpOnly": false, "secure": false }, { "name": "cfduid", "value": "de24cc9ab6e7e9c568ce3ae0ed40279331441012176", "expires": null, "httpOnly": false, "secure": false }, { "name": "uvt", "value": "", "expires": null, "httpOnly": false, "secure": false }, { "name": "uvts", "value": "3Z4XyePvpvbjs4E2", "expires": null, "httpOnly": false, "secure": false } ], "headersSize": 709, "bodySize": 1116, "postData": { "mimeType": "application/json;charset=UTF-8", "text": "{\"freeOfCharge\":true,\"begin\":{\"date\":\"2015-09-25\",\"time\":\"15:00\"},\"end\":{\"date\":\"2015-09-25\",\"time\":\"15:00\"},\"locales\":2,\"ticketCategories\":[{\"inception\":{\"date\":\"2015-09-25\",\"time\":\"15:00\"},\"tokenGenerationRequested\":false,\"expiration\":{\"date\":\"2015-09-25\",\"time\":\"15:00\"},\"sticky\":true,\"bounded\":true,\"dateString\":\"2015-09-25 15:00 / 2015-09-25 15:00\",\"name\":\"Naam\",\"maxTickets\":99,\"description\":{\"en\":\"NAAM\"}}],\"dateString\":\"2015-09-25 15:00 / 2015-09-25 15:00\",\"displayName\":\"NAAM\",\"shortName\":\"naam\",\"organizationId\":1,\"location\":\"Grote Beemd 3, Boxtel\",\"geolocation\":{\"timeZone\":\"Europe/Amsterdam\",\"latitude\":\"51.5852824\",\"longitude\":\"5.329255799999999\",\"mapUrl\":\"https://maps.googleapis.com/maps/api/staticmap?center=51.5852824,5.329255799999999&key=AIzaSyACYmPIdsfGFSOYE14HLS6_3icU8rj9NUU&zoom=16&size=400x400&markers=color:blue%7Clabel:E%7C51.5852824,5.329255799999999\"},\"description\":{\"en\":\"OMG DIT IS ENGELS DIT KUNNEN WIJ NIET AAN\"},\"websiteUrl\":\"https://theaterklas-jrl.nl/\",\"termsAndConditionsUrl\":\"https://theaterklas-jrl.nl/\",\"imageUrl\":\"https://theaterklas-jrl.nl/img/logo.svg\",\"availableSeats\":100}" } }, "response": { "status": 200, "statusText": "OK", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Date", "value": "Fri, 25 Sep 2015 13:19:50 GMT" }, { "name": "Server", "value": "nginx/1.1.19" }, { "name": "Connection", "value": "keep-alive" }, { "name": "Transfer-Encoding", "value": "chunked" }, { "name": "Content-Type", "value": "application/json;charset=UTF-8" } ], "cookies": [], "content": { "size": 123, "mimeType": "application/json", "compression": -11 }, "redirectURL": "", "headersSize": 176, "bodySize": 134, "_transferSize": 310 }, "cache": {}, "timings": { "blocked": 6.08700001612306, "dns": -1, "connect": -1, "send": 0.8359999628737498, "wait": 54.34400006197389, "receive": 0.6969999521971175, "ssl": -1 }, "connection": "17280", "pageref": "page_1" } ] } }

mg-1999 commented 9 years ago

Any progress?

syjer commented 9 years ago

Hi, @mg-1999

from the trace it seems the issue is caused by the dates (start/end) : they have all the same values: "2015-09-25 15:00 / 2015-09-25 15:00". This is not handled by alf.io, as he need an interval of time greater than 0 :)

An error message should appear but for some reason that we need to investigate it's not visibile.

mg-1999 commented 9 years ago

It is indeed fixed now, forgot to hit the apply button. Thanks for all the help you provided.