Page 1 of 1

„PhocaMapsPath::getPath() should not be called statically”

Posted: 14 Jul 2015, 14:43
by Zotius
These error messages appear here, but previously everything was fine.
What is the solution?
Deprecated: Non-static method PhocaMapsPath::getPath() should not be called statically, assuming $this from incompatible context in /home/vuf/public_html/plugins/content/phocamaps/phocamaps.php on line 263

Deprecated: Non-static method PhocaMapsPath::getInstance() should not be called statically, assuming $this from incompatible context in /home/vuf/public_html/administrator/components/com_phocamaps/helpers/phocamapspath.php on line 29

Deprecated: Non-static method PhocaMapsIcon::getIconData() should not be called statically, assuming $this from incompatible context in /home/vuf/public_html/administrator/components/com_phocamaps/helpers/phocamapsmap.php on line 461

Deprecated: Non-static method PhocaMapsIcon::getIconData() should not be called statically, assuming $this from incompatible context in /home/vuf/public_html/administrator/components/com_phocamaps/helpers/phocamapsmap.php on line 461

Deprecated: Non-static method PhocaMapsIcon::getIconData() should not be called statically, assuming $this from incompatible context in /home/vuf/public_html/administrator/components/com_phocamaps/helpers/phocamapsmap.php on line 461

Deprecated: Non-static method PhocaMapsIcon::getIconData() should not be called statically, assuming $this from incompatible context in /home/vuf/public_html/administrator/components/com_phocamaps/helpers/phocamapsmap.php on line 461

Deprecated: Non-static method PhocaMapsIcon::getIconData() should not be called statically, assuming $this from incompatible context in /home/vuf/public_html/administrator/components/com_phocamaps/helpers/phocamapsmap.php on line 461

Re: „PhocaMapsPath::getPath() should not be called staticall

Posted: 15 Jul 2015, 00:12
by Jan
Hi, thank you for this info, see:

I will change the code to prevent these warnings in next version.

Thank you, Jan

Re: „PhocaMapsPath::getPath() should not be called staticall

Posted: 16 Aug 2015, 13:35
by jabi
Hi, I have same problem after I insert markers. Map without markers is fine. When can be expected update? I have version 3.0.1. on Joomla 3.4.3.

Thanks for reply. :-)

Re: „PhocaMapsPath::getPath() should not be called staticall

Posted: 21 Aug 2015, 09:39
by jabi
Hi, just wanted to ask when will come update for phoca maps, or how to get rid of this problem?

Just to clerify map is OK until I publish markers. Then I get:
Deprecated: Non-static method PhocaMapsIcon::getIconData() should not be called statically, assuming $this from incompatible context in /www/doc/www.xxxxxxxxx.cz/www/administrator/comp ... apsmap.php on line 461


Thanks for help.

Re: „PhocaMapsPath::getPath() should not be called staticall

Posted: 22 Aug 2015, 01:17
by Jan
Hi, thank you for the info:
https://www.phoca.cz/documents/50-phoca/ ... tic-method

I will fix it in next version.

Jan