Cannot declare class PlacemarkVisualization

More
4 years 9 months ago #13159 by Dima
Then check code, which you include into addition html text field.
Probably something wrong here

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #13187 by esedic
Replied by esedic on topic Cannot declare class PlacemarkVisualization
I have same problem with using plugin shortcode in 2 tabs, showing 2 separate maps:
Code:
Fatal error: Cannot redeclare class PlacemarkVisualization in /.../components/com_zhosmmap/views/zhosmmap/tmpl/display_map_data.php on line 4696

If I remove one map, error disappears.

I've solved this by using condition:
Code:
if (!class_exists('PlacemarkVisualization')) { class PlacemarkVisualization { public $latitude; public $longitude; public $title; public $desc; public $addHTML; } }

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #13188 by Dima
If you use last version of component, it is already fixed.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #13189 by esedic
Replied by esedic on topic Cannot declare class PlacemarkVisualization
Ok, I see now new version is out. Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.186 seconds
Powered by Kunena Forum