• Resolved micksp

    (@micksp)


    I get this error in firebug:

    TypeError: e is undefined
    e.setAttribute(‘unselectable’,on);
    I traced it to this snippet:

    <script id=”wpcp_css_disable_selection” type=”text/javascript”>
    var e = document.getElementsByTagName(‘body’)[0];
    e.setAttribute(‘unselectable’,on);
    </script>

    Plugin works properly though

    https://ww.wp.xz.cn/plugins/wp-content-copy-protector/

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

    (@wp-buy)

    you may have an error in your page HTML
    are you sure that you have a valid <body> tag or not?
    please check or give us a url to check
    thank you

    Thread Starter micksp

    (@micksp)

    Sorry, i forgot i allready fixed this problem, and notified you in this post. After the recent plugin update the error is back.
    Re-applying my sollution is the other post fixes the problem

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Javascript error’ is closed to new replies.