• drvenkat

    (@drvenkat)


    I get the following error if I have the Inspeect element windows open in IE:

    * @return Array same list with new discovered nodes, if any
    */
    function grabAllTextNodes(node, allText) {
    var
    childNodes = node.childNodes,

    // ERROR MESSAGE TYPED IN BELOW
    Unable to get property ‘childNodes’ of undefined or null reference
    // END OF ERROR
    length = childNodes.length,
    subnode,
    nodeType;
    while (length–) {
    subnode = childNodes[length];
    nodeType = subnode.nodeType;
    // parse emoji only in text nodes
    if (nodeType === 3) {
    // collect them to process emoji later
    allText.push(subnode);
    }
    // ignore all nodes that are not type 1 or that
    // should not be parsed as script, style, and others
    else if (nodeType === 1 && !shouldntBeParsed.test(subnode.nodeName)) {
    grabAllTextNodes(subnode, allText);
    }
    }
    return allText;
    }

    https://wordpress.org/plugins/siteorigin-panels/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg – SiteOrigin

    (@gpriday)

    Hi drvenkat

    I don’t recognise any of that code, so I’m not sure where it’s coming from. It’s definitely not from Page Builder. Would it be possible for you to temporarily disable all plugins besides Page Builder and see if that fixes the issue?

    If it does, then you can reactive your plugins one by one until the issues comes back. This will help you diagnose which plugin is causing the issue.

    Thread Starter drvenkat

    (@drvenkat)

    As per debug on IE, it is a javascript called: twemoji.js

    Thread Starter drvenkat

    (@drvenkat)

    I do not know where this is from as I have not written any Java scripts on my page.

    Thread Starter drvenkat

    (@drvenkat)

    More details from debug window – What do I need to deactivate? I do not seem to be having any plugin that seems relevant.

    /**
    * Default callback used to generate emoji src
    * based on Twitter CDN
    * @param string the emoji codepoint string
    * @param string the default size to use, i.e. “36×36”
    * @param string optional “\uFE0F” variant char, ignored by default
    * @return string the image source to use
    */
    function defaultImageSrcGenerator(icon, options) {
    return ”.concat(options.base, options.size, ‘/’, icon, options.ext);
    }

    /**
    * Given a generic DOM nodeType 1, walk through all children
    * and store every nodeType 3 (#text) found in the tree.
    * @param Element a DOM Element with probably some text in it
    * @param Array the list of previously discovered text nodes
    * @return Array same list with new discovered nodes, if any
    */
    }
    // ignore all nodes that are not type 1 or that
    // should not be parsed as script, style, and others
    else if (nodeType === 1 && !shouldntBeParsed.test(subnode.nodeName)) {
    grabAllTextNodes(subnode, allText);
    }
    }
    return allText;
    }

    Plugin Author Greg – SiteOrigin

    (@gpriday)

    The latest version of WordPress (4.2) added support for Emojis. That’s what twemoji.js is. It stands for Twitter Emoji.

    https://github.com/twitter/twemoji

    It’s strange that’s causing an issue though.

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

The topic ‘Error after updating wp and pagebuilder’ is closed to new replies.