Plugin doesn't work on leading article

Phoca Maps - displaying maps in Joomla! CMS
iwoshek
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 30 Sep 2014, 10:04

Plugin doesn't work on leading article

Post by iwoshek »

Hello,
i have installed phoca maps plugin on my site. Works great for example on Contact page. However when i try to show map on index page, in leading article via {phocamaps view=map|id=1}, there is no html generated. The index page is blank, only with empty <body></body> tags.

Could anybody help me?
Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Plugin doesn't work on leading article

Post by Jan »

Hi, try to see errorLog on your server or try to enable php error reporting, maybe there is some php error :idea:
https://www.phoca.cz/documents/16-joomla ... rs-on-site
Jan
If you find Phoca extensions useful, please support the project
iwoshek
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 30 Sep 2014, 10:04

Re: Plugin doesn't work on leading article

Post by iwoshek »

Hello, thanks for your tip.
There was some trouble with Directory Separator at line 58 in phocamaps.php. We set it to "/" and now it works.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Plugin doesn't work on leading article

Post by Jan »

Hi, do you use latest version of the plugin?

It has defined the directory separator:
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);

so there should not be any problem with the constant :idea:

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