• Resolved fedeflooro

    (@fedeflooro)


    Hi,

    I’m experiencing a persistent issue with the directory listing map. When I access the page for the first time, the map sometimes does NOT appear and I see this error in the console:

    • TypeError: Cannot read properties of undefined (reading 'tE') – main.js:525

    Other errors shown:

    • Element with name "gmp-pin" already defined
    • You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.

    If I reload the page, the map loads perfectly and the errors disappear.

    This generally happens on the first load, regardless of cache or optimization settings.

    What I’ve already tested (all completely disabled):

    • Cache plugins (LiteSpeed, Perfmatters) fully OFF
    • Avada optimizations (JS/CSS compiler, Critical CSS) disabled
    • Cloudflare in Development Mode (no cache)
    • Directorist script debugging enabled

    The issue still occurs exactly the same way.

    Questions:

    1. Is this a known bug when Marker Clustering is enabled?
    2. Do you have an official fix or workaround?

    Looking forward to your reply, thank you!

Viewing 1 replies (of 1 total)
  • Plugin Support Al-Amin Khan

    (@alamin56649)

    Hi @fedeflooro,

    Thank you for the detailed report.

    This behavior is usually caused when the Google Maps JavaScript API is loaded more than once on the same page (often by another theme or plugin), which can also trigger the gmp-pin and clustering related errors you mentioned.

    At the moment, this is not a core Directorist bug. As a quick check, please make sure no other plugin or your theme is enqueueing the Google Maps script in parallel with Directorist.

    If the issue still persists after confirming the API is loaded only once, please open a technical support ticket so our team can inspect the conflicting script directly.

    Thanks for your patience.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.