• Resolved TheHungryGeek

    (@thehungrygeek)


    I encountered some bugs with my site, so I started deactivating and reactivating plugins to test.

    After deactivating and reactivating WordPress Popups plugin, I get the so-called ‘grey screen of death’.

    wp-admin works, top and side menus are showing. But when I click on any item in the admin menu, the page shows up for a second before the content portion disappears into a grey screen. To clarify, top and side menus still work, but clicking on anything just gives a grey screen after showing content for like one second.

    Your plugin causes this error message to appear:

    Uncaught HierarchyRequestError: Failed to execute 'insertBefore' on 'Node': The new child element contains the parent.

    The code in question is:

    this.parentNode && this.parentNode.insertBefore(a, this.nextSibling)

    I had to manually deactivate the plugin via cPanel to continue to have access to wp-admin.

    Any ideas for a fix? I would love to continue using your plugin.

    https://www.ads-software.com/plugins/popups/

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Damian

    (@timersys)

    Hi TheHungryGeek,
    this.parentNode && this.parentNode.insertBefore(a, this.nextSibling) doesn’t look liky any part of my code. That the whole error you get? Could you check if there is any other error in your browser console and to which files belong?

    Thread Starter TheHungryGeek

    (@thehungrygeek)

    This is the whole error:

    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3 
    
    Uncaught HierarchyRequestError: Failed to execute 'insertBefore' on 'Node': The new child element contains the parent.

    It disappears when the plugin is deactivated.

    The detailed code (excerpt) is as follows (I have enclosed the problematic line in <strong> tags):

    n.fn.extend({
            domManip: Ha,
            detach: function(a) {
                return Ia(this, a, !0)
            },
            remove: function(a) {
                return Ia(this, a)
            },
            text: function(a) {
                return Y(this, function(a) {
                    return void 0 === a ? n.text(this) : this.empty().append((this[0] && this[0].ownerDocument || d).createTextNode(a))
                }, null , a, arguments.length)
            },
            append: function() {
                return Ha(this, arguments, function(a) {
                    if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
                        var b = Ca(this, a);
                        b.appendChild(a)
                    }
                })
            },
            prepend: function() {
                return Ha(this, arguments, function(a) {
                    if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
                        var b = Ca(this, a);
                        b.insertBefore(a, b.firstChild)
                    }
                })
            },
            before: function() {
                return Ha(this, arguments, function(a) {
                    this.parentNode && this.parentNode.insertBefore(a, this)
                })
            },
            after: function() {
                return Ha(this, arguments, function(a) {
    <strong>                this.parentNode && this.parentNode.insertBefore(a, this.nextSibling)</strong>
                })
            },
            empty: function() {
                for (var a, b = 0; null != (a = this[b]); b++) {
                    1 === a.nodeType && n.cleanData(ea(a, !1));
                    while (a.firstChild)
                        a.removeChild(a.firstChild);
                    a.options && n.nodeName(a, "select") && (a.options.length = 0)
                }
                return this
            },
            clone: function(a, b) {
                return a = null == a ? !1 : a,
                b = null == b ? a : b,
                this.map(function() {
                    return n.clone(this, a, b)
                })
            },
            html: function(a) {
                return Y(this, function(a) {
                    var b = this[0] || {}
                      , c = 0
                      , d = this.length;
                    if (void 0 === a)
                        return 1 === b.nodeType ? b.innerHTML.replace(ta, "") : void 0;
                    if ("string" == typeof a && !wa.test(a) && (l.htmlSerialize || !ua.test(a)) && (l.leadingWhitespace || !aa.test(a)) && !da[($.exec(a) || ["", ""])[1].toLowerCase()]) {
                        a = n.htmlPrefilter(a);
                        try {
                            for (; d > c; c++)
                                b = this[c] || {},
                                1 === b.nodeType && (n.cleanData(ea(b, !1)),
                                b.innerHTML = a);
                            b = 0
                        } catch (e) {}
                    }
                    b && this.empty().append(a)
                }, null , a, arguments.length)
            },
            replaceWith: function() {
                var a = [];
                return Ha(this, arguments, function(b) {
                    var c = this.parentNode;
                    n.inArray(this, a) < 0 && (n.cleanData(ea(this)),
                    c && c.replaceChild(b, this))
                }, a)
            }
        }),

    I have the same problem. After I installed Popup 1.5 – none of my popups worked. I deactivated the plugin and now I get a grey screen in the dashboard all over. Running 4.5.3. Website is omsa.org. Please fix this as soon as you can. Thanks.

    Cheers, -Peter

    Thread Starter TheHungryGeek

    (@thehungrygeek)

    Phew I’m glad I’m not alone!

    Yeah – it’s a mess. Not sure what to do. No admin functions can be accessed, that I can see.

    Plugin Author Damian

    (@timersys)

    @pslom do you have the error with the plugin deactivated? That means that the error is not in the plugin… as none of the files are being loaded.

    @thehungrygeek you have latest WP version? you see that error on every screen? That code you pasted in not from my plugin nor can I reproduce the error I just tried with a clean wordpress install

    Where would I look for the error? There is no errors in the browser console.

    Something is obviously not right in the plugin, because all my existing plugins stopped working, so there must be an error in the plugin or was that intended?! I did not see any settings changed.

    That should be popups – not plugins stopped working. Sorry.

    I spoke to soon. Here are the errors from the browser console.

    HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn’t belong.
    insertBefore — load-scripts.php:3:23301
    (anonymous function) — load-scripts.php:3:23301
    Ha — load-scripts.php:3:21080
    after — load-scripts.php:3:23228
    (anonymous function) — load-scripts.php:3:24511
    (anonymous function) — load-scripts.php:2:7646
    i — load-scripts.php:2:27455
    fireWith — load-scripts.php:2:28215
    ready — load-scripts.php:2:30018
    K — load-scripts.php:2:30374

    TypeError: undefined is not an object (evaluating ‘e.hasClass’)

    Plugin Author Damian

    (@timersys)

    @pslom is the popup plugin activated when you see that error? On which url you see that error?

    I believe the plugin is deactivated, I hit deactivate – and all admin screens went grey.
    I get the error when I try to reload the list of plugins in the admin section. The website is functioning, but no popups are working of course.

    Thread Starter TheHungryGeek

    (@thehungrygeek)

    Damian, I have the latest WP version and it occurs on every admin page.

    From what I see the plugin is causing some kind of error with jQuery.

    Not too sure what other information I can give you? Short of copying the entire file with the error.

    Adding my “me too”. What happened for me is that when I activated the plugin, Admin Pages went grey with no way to access the Page functions. Once I deleted the plugin via FTP, everything is back to normal. So for me, while I did not get an error message, I did get the grey screens while the plugin was installed and active.

    Plugin Author Damian

    (@timersys)

    Can any of you provide me with access so I can checkmyself what’s going on ? By access I mean wp-admin admin user and Ftp. You could send it here : https://timersys.com/contact-us/

    Thanks

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Grey screen of death’ is closed to new replies.