• I’m seeing a couple of errors in some core WordPress files. Do plugins write to default.js or load-scripts.php or are these purely core?

    Here are the errors:

    default.js

    Line 3:14 undefined is not an object (evaluating ‘wp.media’)
    wp.media.customlibEditGallery = {
    Here’s a little more code, to give context:

    jQuery(document).ready(function($) {
        var $upload_button = jQuery('.qode-gallery-upload');
    <strong>    wp.media.customlibEditGallery = {
    </strong>        frame: function() {
                if (this._frame)

    load-scripts.php

    Line 13 Can’t find variable:jQuery
    }(function(a) {
    here’s the code around it:

    !function(a) {
        "function" == typeof define && define.amd ? define(["jquery"], a) : a(jQuery)
    <strong>}(function(a) {</strong>
        function b(b, d) {
            var e, f, g, h = b.nodeName.toLowerCase();
            return "area" === h ? (e = b.parentNode, f = e.name, b.href && f && "map" === e.nodeName.toLowerCase() ? (g = a("img[usemap='#" + f + "']")[0], !!g && c(g)) : !1) : (/^(input|select|textarea|button|object)$/.test(h)?!b.disabled : "a" === h ? b.href || d : d) && c(b)
        }

    Line 1246:19 Can’t find variable:_
    regexp: _.memoize(function(a) {
    code around that line:

    <strong>regexp: _.memoize(function(a) {</strong>
                return new RegExp("\\[(\\[?)(" + a + ")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)", "g")
            }),

    I’m seeing issues with updating plugins, using the upload button, and theme rendering in mobile.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    The files are not written to directly, but variables are passed through them.

    Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Sixteen theme to rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter WP Monkey

    (@scdesmond)

    Ah, the errors go away when I disable the LayerSlider WP plugin. Am I to assume that it is the only culprit, or could it be that it is having a conflict with the theme or another plugin, and that I can still use it if I find out where that conflict is coming from?

    Moderator James Huff

    (@macmanx)

    Yes, but I’d start with LayerSlider as it seems to be the prime culprit.

    Since that is a commercial plugin, we ask that you please go to their official support channel, so you can get support from the people who know it best.

    https://support.kreaturamedia.com/faq/

    Forum volunteers are also not given access to commercial products, so they would not know why it is not working properly. Other community members who may have faced your issue might be able to help you but your best bet is your product’s developer. Keep in mind we encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way.

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

The topic ‘load-scripts.php Can't find variable’ is closed to new replies.