Syntax error deleting a map

Phoca Maps - displaying maps in Joomla! CMS
NickOg
Phoca Member
Phoca Member
Posts: 34
Joined: 14 May 2009, 07:36
Location: Mid North Coast, NSW, Australia

Syntax error deleting a map

Post by NickOg »

Hi Jan

I am having trouble unpublishing or deleting a map. I get this syntax error

Code: Select all

 0 syntax error, unexpected 'getModel' (T_STRING), expecting function (T_FUNCTION)
I am running Joomla 3.5 and PHP 7

any suggestions?
Regards
Nick
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Syntax error deleting a map

Post by Jan »

Hi, which version of Phoca Maps you are using?
Can you paste a complete error message here (include the file and row of the problem)

Thank you, Jan
If you find Phoca extensions useful, please support the project
NickOg
Phoca Member
Phoca Member
Posts: 34
Joined: 14 May 2009, 07:36
Location: Mid North Coast, NSW, Australia

Re: Syntax error deleting a map

Post by NickOg »

Morning Jan

PhocaMaps Version 3.0.3.
This is the compete error message

Code: Select all

An error has occurred.
 0 syntax error, unexpected 'getModel' (T_STRING), expecting function (T_FUNCTION)
 Return to Control Panel

and this is the error in FirePHP

Code: Select all

"NetworkError: 500 syntax error, unexpe...g function (T_FUNCTION) - http://www.xxxxxx.xxxxxx.org.au/administrator/index.php?option=com_phocamaps&view=phocamapsmaps"
I can't find any reference to the offending file or line number. I can arrange access to the site for you if that helps.
Regards
Nick
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Syntax error deleting a map

Post by Jan »

Hi, seems like I found the problem:

Try to download this file:
https://www.phoca.cz/forumfiles/phocamapsmaps.zip

and unzip it to folder:
administrator/components/com_phocamaps/controllers/

It should overwrite the file: phocamapsmaps.php After overwriting it should be OK. Please let me know, so I can add it to next version.


Thank you,
Jan
If you find Phoca extensions useful, please support the project
NickOg
Phoca Member
Phoca Member
Posts: 34
Joined: 14 May 2009, 07:36
Location: Mid North Coast, NSW, Australia

Re: Syntax error deleting a map

Post by NickOg »

That's it Jan. Fixed.

Thanks for the prompt help.

Regards

Nick
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Syntax error deleting a map

Post by Jan »

Ok, thank you for the info, I will fix it in the next version.

Thank you, Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Syntax error deleting a map

Post by Jan »

Hi,

please, update to the latest version (3.0.4): https://www.phoca.cz/news/890-phoca-maps-3-0-4-released

It should work OK now (including the API Key), see demo (3.0.4): https://www.phoca.cz/documents/53-phoca-maps ... izing-maps

Please, test it and let me know.

Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply