When I try to customize my WordPress theme, I get a blank screen. I disabled plugins and the error was still there — it’s the theme, I tried a different theme and the issue was gone.
I ran the JS console and got these errors, but I don’t know what they mean:
load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:58 Uncaught TypeError: Cannot read property 'replace' of undefined
at Function.m.template (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:58)
at n.template (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:61)
at n.render (load-scripts.php?c=1&load[]=jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,heartbeat,customize-base,customize-controls,customize-widgets,thickbox,&load[]=mce-view,imgareaselect,image-edit,quicktags,wplink,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,media-upload,accordi&load[]=on,customize-nav-menus,customize-models,customize-views,updates&ver=4.9.8:722)
at n.initialize (load-scripts.php?c=1&load[]=jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,heartbeat,customize-base,customize-controls,customize-widgets,thickbox,&load[]=mce-view,imgareaselect,image-edit,quicktags,wplink,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,media-upload,accordi&load[]=on,customize-nav-menus,customize-models,customize-views,updates&ver=4.9.8:718)
at n.e.View (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:84)
at n.constructor (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:86)
at new n (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:84)
at f.ready (load-scripts.php?c=1&load[]=jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,heartbeat,customize-base,customize-controls,customize-widgets,thickbox,&load[]=mce-view,imgareaselect,image-edit,quicktags,wplink,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,media-upload,accordi&load[]=on,customize-nav-menus,customize-models,customize-views,updates&ver=4.9.8:31)
at Object.<anonymous> (load-scripts.php?c=1&load[]=jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,heartbeat,customize-base,customize-controls,customize-widgets,thickbox,&load[]=mce-view,imgareaselect,image-edit,quicktags,wplink,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,media-upload,accordi&load[]=on,customize-nav-menus,customize-models,customize-views,updates&ver=4.9.8:31)
at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,underscore,wp-a11y,wp-util,jquery&load[]=-ui-sortable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-tabs,shortcode,utils,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:2)
Am currently using WordPress 4.6.1 with a custom theme created by me. Am using Theme My Login plugin for front-end user profile page. The scripts needed for generating passwords are not loading with my custom theme.
When I switch the theme to default theme the below script loads
<script type='text/javascript' src='http://localhost/priya/wordpress/wp-admin/load-scripts.php?c=1&load%5B%5D=admin-bar,password-strength-meter,underscore,wp-util,user-profile,wp-embed&ver=4.7.2'></script>
and generate password works.
But switching to my custom theme does not load the above script.
![]()
Max Yudin
6,1392 gold badges24 silver badges35 bronze badges
asked Feb 17, 2017 at 6:50
1
/**
* add script
*
* https://developer.wordpress.org/reference/functions/wp_enqueue_script/
*/
function youplugin_add_frontend() {
// js
wp_enqueue_script('youplugin-js', get_template_directory_uri() . '/js/scripts.js', array('jquery'), 0.1, true);
}
// add script
add_action('wp_enqueue_scripts', 'youplugin_add_frontend');
answered Feb 17, 2017 at 8:16
TrubinETrubinE
9778 silver badges12 bronze badges
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE "application/atom+xml"
"application/javascript"
"application/json"
"application/ld+json"
"application/manifest+json"
"application/rdf+xml"
"application/rss+xml"
"application/schema+json"
"application/vnd.geo+json"
"application/vnd.ms-fontobject"
"application/x-font-ttf"
"application/x-javascript"
"application/x-web-app-manifest+json"
"application/xhtml+xml"
"application/xml"
"font/eot"
"font/opentype"
"image/bmp"
"image/svg+xml"
"image/vnd.microsoft.icon"
"image/x-icon"
"text/cache-manifest"
"text/css"
"text/html"
"text/javascript"
"text/plain"
"text/vcard"
"text/vnd.rim.location.xloc"
"text/vtt"
"text/x-component"
"text/x-cross-domain-policy"
"text/xml"
</IfModule>
Support » Topic Tag: load-scripts.php
-
- Topic
- Voices
- Replies
- Last Post
-
-
[WP Cerber Security, Anti-spam & Malware Scan] htaccess entry keeps disappearing
Started by: alligatornest
- 1
- 0
-
10 months ago
alligatornest
-
[WP Cerber Security, Anti-spam & Malware Scan] Block unauthorized access to load-scripts.php and load-styles.php only temporary
Started by: alligatornest
- 1
- 1
-
10 months, 1 week ago
alligatornest
-
Media Library Broken in 4.9.8, JavaScript errors in load-scripts.php
Started by: mariusft
- 2
- 2
-
4 years, 2 months ago
mariusft
-
[Wordfence Security — Firewall, Malware Scan, and Login Security] Does Wordfence patch DoS Issue CVE-2018-6389 automatically?
Started by: Crazy-Jake
- 6
- 6
-
4 years, 11 months ago
mountainguy2
-
Media Library Broken in 4.5, JavaScript errors in load-scripts.php
Started by: derrikeg
- 1
- 0
-
6 years, 9 months ago
derrikeg
-
4.5 admin page jQuery error – buttons not clickable
Started by: cerilam
- 4
- 7
-
6 years, 9 months ago
cerilam
-
menu doesn’t load – columns not defined in load-scripts.php
1
2Started by: createscape
- 6
- 16
-
5 years, 10 months ago
t-p
-
Admin Menu doesnt work anymore
Started by: chuebert
- 2
- 6
-
7 years ago
chuebert
-
WP-Admin area jQuery errors
Started by: Christopher Mitchell
- 1
- 0
-
7 years, 4 months ago
Christopher Mitchell
-
Admin JS console error: load-scripts.php – Blocking ajax & can’t edit pages
Started by: TJ Kelly
- 4
- 6
-
7 years, 4 months ago
lesliekirk
-
Add Media/Upload Media not working
Started by: Aaron
- 2
- 3
-
9 years, 4 months ago
esmi
-
Unable to Insert Images into Pages or Posts
1
2Started by: SecretGarden
- 10
- 17
-
10 years, 4 months ago
MikeAMA
-
object expected / load-scripts.php error
Started by: iwag
- 2
- 2
-
11 years, 7 months ago
iwag
-
Weird/Suspicious behaviour by blog user
Started by: purplewyvern
- 2
- 5
-
12 years, 8 months ago
James Huff
-
I’m using the theme Enfold (3.5.3) with WPML and some smaller plugins (deactivating doesn’t help).
After activating Yoast SEO, I’ve noticed that the built-in Avia Layout Builder’s spinner loads endlessly on the edit page screen. Furthermore, it breaks all following JavaScript, including Yoast SEO.

Two JS errors are being displayed in Chrome’s console:
Uncaught Error: cannot call methods on sortable prior to initialization; attempted to call method 'toArray'
and
wp-auth-check.min.js:1 Uncaught TypeError: Cannot read property 'hasClass' of undefined
By looking at the load-scripts.php link inside the HTML source code, I see a couple of corrupted parameters:
.../wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,underscore,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,utils,backbone,pluploa&load%5B%5D=d,wp-a11y,jquery-ui-progressbar,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,jquery-ui-resizable,jquery-ui-button,jq&load%5B%5D=uery-ui-dialog&ver=4.6.1
There were two similar threads here on Stackexchange, but the solutions posted there did not help.