Closed (fixed)
Project:
Openlayers
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 16:27 UTC
Updated:
26 Feb 2010 at 00:00 UTC
I have a strange problem with openlayers on my webpage: when I insert a map into the page and save it, the map is shown perfectly. However, if I reload the page the map disappears???
I noticed that if I compare the source of both pages, in the reload version the openlayers javascript things are not in the header?! I have no clue why this happens - perhaps a caching issue?
Any ideas?
Comments
Comment #1
didittwice commentedIf I clear the cache in the 'performance' module (although caching is disabled), the page with the map is shown - after reloading the page it disappears again.
Comment #2
zzolo commentedThis one is tough because I don't think any of us are able to recreate this issue. So you have any other cache modules installed, like Boost or Memcached?
Comment #3
didittwice commentedI have no special caching modules installed. I also temporary removed all filters, but also no improvement. In the configuration page the map appears all the time, on a normal content page even the test default map does not work on reload - very strange?!
Comment #4
phayes commentedDo you have a public URL you might point us towards?
Comment #5
didittwice commentedhere the url: http://itis-graduateschool.de/web/content/participating-universities
beyond the map (picture) there should be the openlayers interactive map (which you might not see)...
[Edit]
I tried to switch on the pre-render post-render debug option for openlayers: After editing the map page I get an entry in the protocol, but on reload both do not appear in the log.
[/Edit]
Comment #6
zzolo commentedOn the page linked to above, I do get the same behavior. The first time I go, I see the map, but after that, there is no map. Looking at the page, the HTML for the map is rendered fine, but there is no JS included (both OL Drupal JS and OL JS).
* Do you have regular caching installed?
* Can you set up a quick test site on the same server and only install OL?
* Do you see any PHP errors in the log?
Comment #7
didittwice commentedWhat do you mean by "regular caching installed"?
I have the following in the apache config
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not cache dynamically generated pages.
ExpiresByType text/html A1
In the drupal config, I have no caching enabled and no other caching modules activated.
I am sorry, but for an additional installation I don't have any rights. I am rather restricted with the access because I am not the admin of the server - just a 'normal' user. That makes it generally difficult to track down the problem.
There are no PHP errors in the log. The only thing that is confirming the above impressions is that on reload in the apache2 access log no JS files are requested.
Very strange. Besides, what makes me wonder is the fact that obviously I am the only person with this problem, so it seems to be likely that there must be a misconfiguration on the server.
Comment #8
zzolo commented@didittwice, sorry for the delayed response; I have been busy with moving.
How is this issue going? This sounds like a really weird issue and something pretty specific to your environment. Maybe you can try making a local copy of the site with MAMP, WAMP or LAMP and to see if the problem persists.
Comment #9
jessia commentedHm, I'm having a similar problem. I'm running this on a local server, so I can't point you to a test page, unfortunately. But here's what happens:
I have a map displayed in two locations on my site:
1. on the user profile page (displaying the current user marked on the map)
2. on a "user map" page (displaying all members)
I've been trying to figure out how to theme it so that each of the user roles displays in a different color, but I don't know what I'm doing. So I keep trying things and going back to my map. But sometimes, when I go back to my map, it's simply not there... but it's not a problem with the view, because I lose the map in *both* places, and I don't get it back when I undo what I was doing right before then.
However, I tried the suggestion of clearing the caches, which seemed to have worked for the OP. It did NOT bring the maps back for me.
Strangely enough, with a quick glance, the HTML appears identical in both cases...
Comment #10
zzolo commented* Is there any way you can disable other modules and try to get it down to a minimum Drupal instance with OpenLayers? Just to ensure that there are not other scripts involved here that could be messing it up.
* Have you installed Firebug and checked the JS console?
* Also, if you are messing with things and coming back to the map and it disappears, it could be something that you changed.
* Can you consistently recreate this issue?
* Is it true in all browsers?
Comment #11
zzolo commentedComment #12
zzolo commentedAny more information on this bug? Have you upgraded to newest 1.x? Closing for now.