×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Hotspots no longer working

Hotspots no longer working 11 years 6 months ago #20511

  • Andrew Soye
  • Andrew Soye's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi

We installed this component last August and it's been working without any problems until now. It stopped working suddenly and we haven't done any updates recently.

Joomla version is 1.5.26
Hotspots version 2.0.5

Page is at www.character-cottages.com/regions

Any ideas?

Thanks

Hotspots no longer working 11 years 6 months ago #20513

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
This code over here:
<div class="moduletable_avail">
					<h3>Or use our Quick Search</h3>
					<script language="javascript" type="text/javascript">
	function iFrameHeight() {
		var h = 0;
		if ( !document.all ) {
			h = document.getElementById('blockrandom').contentDocument.height;
			document.getElementById('blockrandom').style.height = h + 60 + 'px';
		} else if( document.all ) {
			h = document.frames('blockrandom').document.body.scrollHeight;
			document.all.blockrandom.style.height = h + 20 + 'px';
		}
	}
</script>

is craeting a js error + your floating menu is creating js errors. Once you fix the js errors hotspots should work.

Regards,
Daniel

Hotspots no longer working 11 years 6 months ago #20515

  • Andrew Soye
  • Andrew Soye's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi Daniel

Thank you for your response.

I removed the one module and temporarily removed the javascript that was causing the other error.

The hotspots still didn't work though and I'm getting a Javascript error for the Hotspots as well:





Thanks again
Attachments:

Hotspots no longer working 11 years 6 months ago #20517

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Andrew,
The request that should return the hotspots is actually returning 301 - moved permanently? Have you installed any SEF extension lately?

Daniel

Hotspots no longer working 11 years 6 months ago #20522

  • Andrew Soye
  • Andrew Soye's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi Daniel

No we've not installed anything for a while and we don't use a 3rd party SEF extension. We just have Joomla SEF urls enabled and mod_rewrite.

I did add some 301s to the .htaccess recently, could they have affected it? For example to redirect non www. to www.

I just tried removing them in case, but didn't change anything.

Do you want me to check the server to see if any files gone missing?

Thanks
Jennie (masquerading as Andy)

Hotspots no longer working 11 years 6 months ago #20523

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
the redirect that takes place is from :
www.character-cottages.com/index.php?option=com_hotspots
to:
www.character-cottages.com/?option=com_hotspots

Also - have you deleted any hotspots categories?

Hotspots no longer working 11 years 6 months ago #20527

  • Andrew Soye
  • Andrew Soye's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi Daniel

Indeed it is the redirect that's causing the problem, I should have thought of it. I assumed it was a Javascript thing.

Removed it and the hotspots is working again. I'm surprised it didn't cause any problems anywhere else.

Thanks for pointing me in the right direction

Best wishes
Jennie

Hotspots no longer working 11 years 6 months ago #20530

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
It is not working for hotspots, because hotspots needs to make an ajax request that has to return a json object. But in this case the page is redirecting without returning the necessary info. On other locations it would just show you the expected html.

Anyway, glad it is working again :)

Regards,
Daniel

P.S. Don't forget to write a review over here:
extensions.joomla.org/extensions/maps-a-...-locations/maps/9468
  • Page:
  • 1
Time to create page: 0.137 seconds