Problem z odnalezieniem błędu |
Problem z odnalezieniem błędu |
12.01.2018, 15:07:55
Post
#1
|
|
Grupa: Zarejestrowani Postów: 51 Pomógł: 0 Dołączył: 1.03.2016 Ostrzeżenie: (0%) |
Witam,
Mój skrypt nie działa a konsola wywala błąd czy ktoś jest mi w stanie pomóc to z debugować ? Cytat (index):1 This page was loaded non-securely in an incognito mode browser. A warning has been added to the URL bar. For more information, see https://goo.gl/y8SRRv.
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1 jquery.js?ver=1.12.4:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. send @ jquery.js?ver=1.12.4:4 VM24935:1 Uncaught TypeError: Cannot read property 'toString' of undefined at HTMLFormElement.e.onFindVariation (eval at <anonymous> (jquery.js?ver=1.12.4:2), <anonymous>:1:4188) at HTMLFormElement.dispatch (jquery.js?ver=1.12.4:3) at HTMLFormElement.r.handle (jquery.js?ver=1.12.4:3) at Object.trigger (jquery.js?ver=1.12.4:3) at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2) at HTMLFormElement.<anonymous> (jquery.js?ver=1.12.4:3) at Function.each (jquery.js?ver=1.12.4:2) at a.fn.init.each (jquery.js?ver=1.12.4:2) at a.fn.init.trigger (jquery.js?ver=1.12.4:3) at HTMLSelectElement.e.onChange (eval at <anonymous> (jquery.js?ver=1.12.4:2), <anonymous>:1:6547) util.js:249 Google Maps API warning: NoApiKeys https://developers.google.com/maps/document...ges#no-api-keys NC.j @ util.js:249 util.js:249 Google Maps API warning: InvalidKey https://developers.google.com/maps/document...ges#invalid-key NC.j @ util.js:249 |
|
|
12.01.2018, 15:12:22
Post
#2
|
|
Grupa: Moderatorzy Postów: 36 455 Pomógł: 6292 Dołączył: 27.12.2004 |
Cytat Uncaught TypeError: Cannot read property 'toString' of undefined A bledow o API key chyba nie trzeba tlumaczyc. Przenosze. Z ajax to nie ma wiekszego zwiazku -------------------- "Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista "Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer |
|
|
12.01.2018, 15:42:24
Post
#3
|
|
Grupa: Zarejestrowani Postów: 51 Pomógł: 0 Dołączył: 1.03.2016 Ostrzeżenie: (0%) |
Cytat Uncaught TypeError: Cannot read property 'toString' of undefined Jakaś podpowiedź jak to rozwiązać ? |
|
|
12.01.2018, 15:57:06
Post
#4
|
|
Grupa: Zarejestrowani Postów: 6 365 Pomógł: 1114 Dołączył: 30.08.2006 Ostrzeżenie: (0%) |
Przecież masz napisane. Jakaś zmienna jest undefined. Nie wykonuj toString na undefined.
-------------------- |
|
|
12.01.2018, 17:12:34
Post
#5
|
|
Grupa: Zarejestrowani Postów: 51 Pomógł: 0 Dołączył: 1.03.2016 Ostrzeżenie: (0%) |
Czyli co wywalić ten kod ?
|
|
|
12.01.2018, 17:33:06
Post
#6
|
|
Grupa: Zarejestrowani Postów: 6 365 Pomógł: 1114 Dołączył: 30.08.2006 Ostrzeżenie: (0%) |
Tak. Wywal cały i idź na piwo. Najlepsze rozwiązanie na piątek
-------------------- |
|
|
15.01.2018, 14:45:17
Post
#7
|
|
Grupa: Zarejestrowani Postów: 51 Pomógł: 0 Dołączył: 1.03.2016 Ostrzeżenie: (0%) |
Ponawiam prośbę o pomoc proszę o pomoc w rozwiązaniu przypadku. Kompletnie nie wiem co mam zrobić aby to naprawić.
|
|
|
15.01.2018, 15:14:13
Post
#8
|
|
Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) |
Odpal konsolę dev, odśwież stronę, kliknij po prawej stronie od błędu na "plik".
Przeniesie Cię do źródła z kodem. Na dole masz {} - kliknij a ukaże Ci się objawienie. |
|
|
15.01.2018, 22:57:19
Post
#9
|
|
Grupa: Zarejestrowani Postów: 51 Pomógł: 0 Dołączył: 1.03.2016 Ostrzeżenie: (0%) |
Witam,
Przepraszam że tak truje ale zależy mi na rozwiązaniu tego problemu jest to strona moja strona oparta na WP i nie bardzo wiem dlaczego to nie chce działać ? Zrobiłem jak powyżej pisałeś Cytat Uncaught TypeError: Cannot read property 'toString' of undefined at HTMLFormElement.e.onFindVariation (eval at <anonymous> (jquery.js:2), <anonymous>:1:4188) at HTMLFormElement.dispatch (jquery.js:3) at HTMLFormElement.r.handle (jquery.js:3) at Object.trigger (jquery.js:3) at Object.a.event.trigger (jquery-migrate.min.js:2) at HTMLFormElement.<anonymous> (jquery.js:3) at Function.each (jquery.js:2) at a.fn.init.each (jquery.js:2) at a.fn.init.trigger (jquery.js:3) at HTMLSelectElement.e.onChange (eval at <anonymous> (jquery.js:2), <anonymous>:1:6547) Rozumiem że mam błąd w pliku jquery.js odwołuje sie do toString który jest nie zdefiniowany. Pytanie jak mam to rozwiązać ? |
|
|
Wersja Lo-Fi | Aktualny czas: 24.04.2024 - 11:52 |