JavaScript Error ‘expected identifier, string or number’

Phoca Maps - displaying maps in Joomla! CMS
jegbertzen
Phoca Member
Phoca Member
Posts: 21
Joined: 01 Aug 2009, 20:12

JavaScript Error ‘expected identifier, string or number’

Post by jegbertzen »

Hello, I get a javascript error ‘expected identifier, string or number’ in IE7.
Doing some research this is probably caused by a comma or such.
I seem to have found the one causing this error (developer tools ie9 in ie7 mode) but am unable to locate the actual script to solve this. Found another post on a greyed out map in IE but that one didn't help me. Installing the latest version of both component and plugin unfortunately has not solved anything either.

I think the comma after 'rect' is the one causing this error.

Code: Select all

 var phocaImageShape4 = {
   coord: [0,0,25,30],
   type: 'rect',
 };
This is the link where the error is occuring:

http://ismh.ismh.nl/index.php?option=co ... Itemid=231

And here's an imageshack screenshot of the problem

http://imageshack.us/photo/my-images/36/ie7bug.png/
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JavaScript Error ‘expected identifier, string or number’

Post by Jan »

Hi, which version of Phoca Maps you are using?
If you find Phoca extensions useful, please support the project
jegbertzen
Phoca Member
Phoca Member
Posts: 21
Joined: 01 Aug 2009, 20:12

Re: JavaScript Error ‘expected identifier, string or number’

Post by jegbertzen »

was using 2.0.1, upgrade to 2.0.2 does not seem to fix it.
mooshoe
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Oct 2011, 14:15

Re: JavaScript Error ‘expected identifier, string or number’

Post by mooshoe »

Hi

I am getting exactly the same error in IE7 and the upgrade to 2.0.2 did not address it either:

Code: Select all

   coord: [0,0,25,30],
   type: 'rect',
};
any suggestions?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JavaScript Error ‘expected identifier, string or number’

Post by Jan »

Hi, I will take a look at it.

Jan
If you find Phoca extensions useful, please support the project
mooshoe
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Oct 2011, 14:15

Re: JavaScript Error ‘expected identifier, string or number’

Post by mooshoe »

Thanks Jan, the url for my IE7 map issue can be viewed at http://www.organicseo.co.za/joomla17/co ... nding.html
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JavaScript Error ‘expected identifier, string or number’

Post by Jan »

Hi, confirmed, will be fixed in next version.

For quick fix, just download this file:
https://www.phoca.cz/forumfiles/phocamapsmap.zip
Unzip it and overwrite the following file:
administrator\components\com_phocamaps\helpers\phocamapsmap.php

Jan
If you find Phoca extensions useful, please support the project
mooshoe
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Oct 2011, 14:15

Re: JavaScript Error ‘expected identifier, string or number’

Post by mooshoe »

Thank you so much, this has fixed my problem :-)
I have just made a donation on your Paypal. Keep up the great work!
Post Reply