Support » Plugin: Directorist - Business Directory Plugin » Open Street Map SyntaxError in Firefox

  • Hi, good day!
    I have the next error in my Firefox console so an Open Street Map not showing on the single pages:

    SyntaxError: literal not terminated before end of script

    In the page source I see single ` character, not ‘ , in inline script making map on a page. There is no similar error in Chrome.
    Could you help me, please.
    Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AazzTech

    (@aazztech)

    Hello,
    We haven’t found any issue in our testing, please try deactivating all plugins except Directorist temporarily and see if problem exists, also make sure that you are using latest version of Directorist.

    Dear AazzTech,
    I found the source of the problem.

    /directorist/templates/front-end/single-listing/listing-map.php, line 535:

    .bindPopup(<?php echo $info_content; ?>);

    it needs to be changed to

    .bindPopup(“<?php echo $info_content; ?>”);

    When minifying by W3 Total Cache, these unusual quotes disappear.

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.