Cannot declare class PlacemarkVisualization

More
3 months 2 weeks 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 thanslation ;)

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

More
3 months 1 week 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:
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:
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
3 months 1 week 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 thanslation ;)

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

More
3 months 1 week 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.049 seconds

Donate


Go to top