• Resolved simooo

    (@simooo)


    Hi there,

    Thanks for great looking plugin. I have recently started using it and am incorporating in a site I’ve just started building, but hit a snag that I can’t get past.

    I’m getting the following JS error when loading my front page:

    Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
        at Object.getCurrentDeviceMode (frontend.min.js?ver=1.6.5:2)
        at u (frontend.min.js?ver=1.6.5:2)
        at HTMLDocument.init (frontend.min.js?ver=1.6.5:2)
        at i (jquery.js?ver=1.12.4:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
        at Function.ready (jquery.js?ver=1.12.4:2)
        at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    However I don’t get the error when loading a single post, which is the only other implemented screen so far. On the front page are no actual posts at the moment, only static content.

    Any ideas what could be going wrong? I’ve already tried deactivating all other plugins. Would greatly appreciate any help in getting past this.

    Cheers!

    Simon

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author ArielK

    (@arielk-1)

    Hi @simooo This is something that has been fixed in the next version to be released tomorrow

    Thread Starter simooo

    (@simooo)

    That’s great news, thanks so much!

    Hi Team

    I am still getting the same error and i am using the latest version of Elementor. Can you please help? The page is showing fine in edit mode with Elementor.

    I, too, am receiving this error. On version 1.7.2, and the error shows up in the console. Currently, I’m assuming that this error is what is causing conflict with the map refresh on a directory plugin, as when Elementor is deactivated, the issue is resolved.

    jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
    frontend.min.js?ver=1.7.2:2 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
        at Object.getCurrentDeviceMode (frontend.min.js?ver=1.7.2:2)
        at u (frontend.min.js?ver=1.7.2:2)
        at HTMLDocument.init (frontend.min.js?ver=1.7.2:2)
        at i (jquery.js?ver=1.12.4:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
        at Function.ready (jquery.js?ver=1.12.4:2)
        at HTMLDocument.K (jquery.js?ver=1.12.4:2)
    getCurrentDeviceMode @ frontend.min.js?ver=1.7.2:2
    u @ frontend.min.js?ver=1.7.2:2
    init @ frontend.min.js?ver=1.7.2:2
    i @ jquery.js?ver=1.12.4:2
    fireWith @ jquery.js?ver=1.12.4:2
    ready @ jquery.js?ver=1.12.4:2
    K @ jquery.js?ver=1.12.4:2

    Details:
    WP 4.8.1
    Elementor 1.7.2
    Fullby Premium theme

    Hi Im having the same issue. I cant use my navigation menus once I activate my elementor plug in. please fix the issue.

    Ashish Dung Dung

    (@ashishdungdung)

    I’m still facing this problem in the latest version.
    WP 4.9.
    Elementor: v1.8.5
    Theme: GeneratPress

    Hi, same error today..

    frontend.min.js:2 Uncaught TypeError: Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
    at Object.getCurrentDeviceMode (frontend.min.js:2)
    at u (frontend.min.js:2)
    at HTMLDocument.init (frontend.min.js:2)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.K (jquery.js:2)

    I’m getting a similar error on Fluida theme only when I run Elementor.
    I disabled all other plugins to make sure. When Elementor is activated the mobile menu does not work on the home page. It works on all other pages except the home page. Running WP 4.9.1 with Fluida 1.3.6.1 and Elementor 1.8.11

    Uncaught TypeError: Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
    at Object.getCurrentDeviceMode (frontend.min.js?ver=1.8.11:2)
    at u (frontend.min.js?ver=1.8.11:2)
    at HTMLDocument.init (frontend.min.js?ver=1.8.11:2)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)
    getCurrentDeviceMode @ frontend.min.js?ver=1.8.11:2
    u @ frontend.min.js?ver=1.8.11:2
    init @ frontend.min.js?ver=1.8.11:2
    i @ jquery.js?ver=1.12.4:2
    fireWith @ jquery.js?ver=1.12.4:2
    ready @ jquery.js?ver=1.12.4:2
    K @ jquery.js?ver=1.12.4:2

    frontend.min.js?ver=1.8.11:2 Uncaught TypeError: Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
    at Object.getCurrentDeviceMode (frontend.min.js?ver=1.8.11:2)
    at u (frontend.min.js?ver=1.8.11:2)
    at HTMLDocument.init (frontend.min.js?ver=1.8.11:2)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Javascript error: Failed to execute ‘getComputedStyle’ on ‘Window’’ is closed to new replies.