Skip to main content
added 7 characters in body
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

FixedI fixed the problem,problem; it maywas caused by the javascriptJavaScript file. HereThis is what I have tried:

  1. Open the file of "/sites/all/modules/gmap/gmap.module"
     

  2. Find the function "_gmap_doheader()"
     

  3. Find the line begin with "drupal_set_html_head('<script src..."
     

  4. Move it to the second line of _gmap_doheader(), so it may look like:

    function _gmap_doheader() {

     function _gmap_doheader() {    
       drupal_set_html_head('<script src=xxx
         
       static $gmap_initialized = FALSE;
       // …
     }
    
  5. Upload the file to /sites/all/modules/gmap/

  6. Flush all caches

Fixed the problem, it may caused by the javascript file. Here is what I have tried:

  1. Open the file of "/sites/all/modules/gmap/gmap.module"
     

  2. Find the function "_gmap_doheader()"
     

  3. Find the line begin with "drupal_set_html_head('<script src..."
     

  4. Move it to the second line of _gmap_doheader(), so it may look like:

    function _gmap_doheader() {

      drupal_set_html_head('<script src=xxx
     
      static $gmap_initialized = FALSE;
    
  5. Upload the file to /sites/all/modules/gmap/

  6. Flush all caches

I fixed the problem; it was caused by the JavaScript file. This is what I have tried:

  1. Open the file of "/sites/all/modules/gmap/gmap.module"

  2. Find the function "_gmap_doheader()"

  3. Find the line begin with "drupal_set_html_head('<script src..."

  4. Move it to the second line of _gmap_doheader(), so it may look like:

     function _gmap_doheader() {    
       drupal_set_html_head('<script src=xxx    
       static $gmap_initialized = FALSE;
       // …
     }
    
  5. Upload the file to /sites/all/modules/gmap/

  6. Flush all caches

Source Link
Charles Yeung
  • 469
  • 1
  • 5
  • 18

Fixed the problem, it may caused by the javascript file. Here is what I have tried:

  1. Open the file of "/sites/all/modules/gmap/gmap.module"

  2. Find the function "_gmap_doheader()"

  3. Find the line begin with "drupal_set_html_head('<script src..."

  4. Move it to the second line of _gmap_doheader(), so it may look like:

    function _gmap_doheader() {

      drupal_set_html_head('<script src=xxx
    
      static $gmap_initialized = FALSE;
    
  5. Upload the file to /sites/all/modules/gmap/

  6. Flush all caches