Support » Plugin: Translate Wordpress with GTranslate » Conflict make menu disappear

  • Resolved neversaynever504

    (@neversaynever504)


    Any time i enable this plug in. My main menu disappear.

    Chrome console showing error

    trx_addons.js:3 Uncaught TypeError: Cannot read property 'MapTypeId' of undefined
        at trx_addons_sc_googlemap_create (trx_addons.js:3)
        at HTMLDivElement.<anonymous> (trx_addons.js:3)
        at Function.each (jquery.js:2)
        at a.fn.init.each (jquery.js:2)
        at HTMLDocument.trx_addons_sc_googlemap_init (trx_addons.js:3)
        at HTMLDocument.dispatch (jquery.js:3)
        at HTMLDocument.r.handle (jquery.js:3)
        at Object.trigger (jquery.js:3)
        at Object.a.event.trigger (jquery-migrate.min.js:2)
        at HTMLDocument.<anonymous> (jquery.js:3)

    I think some JS did this. Please give me a hand. I dont know much JS

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    You have this javascript code inside /wp-content/plugins/trx_addons/js/trx_addons.js

    function trx_addons_sc_googlemap_create(dom_obj, coords) {
        if (typeof google == "undefined") {
            return;
        }
    ...

    I recommend changing it to:

    function trx_addons_sc_googlemap_create(dom_obj, coords) {
        if (typeof google == "undefined" || typeof google.maps == "undefined") {
            return;
        }
    ...

    So basically it checks if google variable is not present, since you have both google.translate and google.maps the maps should make proper checks.

    I recommend contacting trx_addons plugin developer, so they can provide a permanent fix, so that future plugin updates will not revert your changes.

    Thanks! πŸ™‚

    Thread Starter neversaynever504

    (@neversaynever504)

    love you. work like charm.

    Plugin Author edo888

    (@edo888)

    You are welcome. Please feel free to share your feedback by writing a review: https://wordpress.org/support/plugin/gtranslate/reviews/

    Thanks! πŸ™‚

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict make menu disappear’ is closed to new replies.