Main menu

Forum


× Help Forum English

JavaScript error relating to Google maps

  • softforge
  • Auteur du sujet
  • Membre junior
  • Membre junior
Plus d'informations
il y a 13 ans 2 mois - il y a 13 ans 2 mois #4750 par softforge
JavaScript error relating to Google maps a été créé par softforge
Hello,

There is a JavaScript error on some pages which is causing further JavaScript on the page not to execute. The error can be seen on these pages:

demo.joomlic.com/en/icagenda-en/all-events
demo.joomlic.com/en/icagenda-en/all-even...ftwerk/event_details

This is the error outputted from the Web Developer Toolbar in Firefox:

Timestamp: 26/08/2013 17:20:34
Error: TypeError: a is null
Source File: maps.gstatic.com/intl/en_us/mapfiles/api-3/14/0/main.js
Line: 33

It seems to be looking for a script tag but not finding it. I have tried a few hacks to fix the issue but no luck.

Any idea how to solve this? It is causing other modules on my pages not to function correctly.

Many thanks :)
Dernière édition: il y a 13 ans 2 mois par softforge.

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 13 ans 2 mois #4761 par Lyr!C
Réponse de Lyr!C sur le sujet JavaScript error relating to Google maps

softforge écrit:
Error: TypeError: a is null
Source File: maps.gstatic.com/intl/en_us/mapfiles/api-3/14/0/main.js


Just try by removing this line in file site/js/icmap.js :
google.maps.event.addDomListener(window, 'load', initialize);

In fact, not needed, as onload initialize in php code.

Keep me informed if it is working for you ! B)

Latest version : iCagenda 4.0.17 Joomla! 4 > Joomla! 6
We recommend every user to keep iCagenda updated.
Support for iCagenda version 3.9 (the final version compatible with Joomla 3) ended on October 13, 2026
Extended security support for the iCagenda PRO 3.9 version until October 13, 2027 (to benefit from this extended support, you must have a Pro subscription: www.joomlic.com/extensions/icagenda)
Don't forget to have your Joomla!® up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: Lyr!C
Temps de génération de la page : 0.059 secondes

Follow Us

Créez vos templates Joomla avec Template Creator CK

acymailing logo new