Hi
Upgraded Drupal from 4.7.7 to 5.2. Installed the latest 5.x.1 version (14 aug. 2007). update.php gave me som warnings during run: WARNING! Obsolete gmap_location update #@num was triggered! Please verify the schema of your location table manually!

The macro-builder is working just fine, and a node with a map was looking just fine, BUT reloading the node and the map just dissaperd. Checked it with Safari and Firefox but they are gone!

If I run a web-debugger like Firebug in Firefox it rapport one error viewing a node with a map:
Drupal is not defined:

Drupal.extend({ settings: { "gmap": { "macro_map": { "width": "490px", "height": "300px", "zoom": 11, "controltype": "Small", "align": "None", "maptype": "Map", "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], "behavior": { "locpick": false, "nodrag": false, "nokeyboard": true, "nomousezoom": false, "autozoom": false, "dynmarkers": false, "overview": false, "notype": false, "collapsehack": false, "fatmarkers": false }, "id": "macro_map", "control": "Large", "lines": [ ], "longitude": "18.885498046875", "latitude": "69.68451951288856", "markers": [ { "longitude": "18.909530639648438", "latitude": "69.66615509187251", "markername": "numbers", "offset": 1 } ], "querypath": "http://www.tbsk.no/map/query" } } } });

I have no other errors in my apache and drupal logs. I have tested the same Gmap version on a Drupal 5.2 that not had gmap prev. installed and it is running just fine, so some problems with a upgraded gmap module?

I could just reinstall gmap i someone could tell me how.

--
SMB

Comments

steinmb’s picture

I have tried to delete all gmap entry in SYSTEM table
Deletet all gmap settings in table VARIABLE (left the google API-key)
Installed gmap module again, but I still have the same error.

ray007’s picture

"Drupal is not defined" sounds like a problem loading jquery.js

steinmb’s picture

Okey... it could be it, but I'm not a JS wiz. so it kind of hard for me to track down the problem, any sugg where to look? The strange thing that sometime I can see the map but reloading the page make it disappear again???
I have duplicated my problem to my testsite, http://test.tbsk.no
I also went back to default Garland theme.

--
SMB

steinmb’s picture

Status: Active » Closed (fixed)

Solved it!!
Looking on the browsercode loading a node with a map I found that noen of the js scripts was loaded or defined in section, so it was not a problem with jQuery.

Going into admin/settings/filters. Klicking on Configure - Gmap, changed some of the settings, saved and set them back again solved it! I have verified it with on two different Drupal servers and it solves the problem on both of them. I think it is something in the installation system that are not setting up the filter settings properly on a upgrade or a installation if it finds gmap input filter already defined.

--
steinmb