Page 1 of 1
Syntax error deleting a map
Posted: 28 May 2016, 03:44
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
Re: Syntax error deleting a map
Posted: 29 May 2016, 19:31
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
Re: Syntax error deleting a map
Posted: 29 May 2016, 22:56
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
Re: Syntax error deleting a map
Posted: 30 May 2016, 00:35
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
Re: Syntax error deleting a map
Posted: 30 May 2016, 01:56
by NickOg
That's it Jan. Fixed.
Thanks for the prompt help.
Regards
Nick
Re: Syntax error deleting a map
Posted: 01 Jun 2016, 22:57
by Jan
Ok, thank you for the info, I will fix it in the next version.
Thank you, Jan
Re: Syntax error deleting a map
Posted: 11 Jul 2016, 02:18
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