js error in edit post /page
-
Hi,
In the edit post / page screen we get a js error:
/wp-content/plugins/easy-digital-downloads/assets/js/admin-scripts.min.js?ver=0451d35afe540197057f6b8f2cd10bfdUncaught TypeError: e(…).chosen is not a function
Thank you,
Sam
-
Hi Sam,
That usually happens when another plugin is loading jQuery incorrectly.
Can you test whether it goes away when all other plugins are deactivated?
I can’t deactivate at this moment all plugins because it’s a live site.
I can do it when there is no traffic in the site.I deactivated only the Easy Digital Downloads plugin for a moment and the error was gone, however I still have problem in the page (Can’t work with the editor).
I suspect something wrong with my theme.
Last week I switched the theme with Twenty Sixteen and then I was able to work with the editor.I guess something wrong with the jquery of the theme, although in the source code of the page I couldn’t find any include of js file from the theme.
Here are all the included js files.<script type=’text/javascript’ src=’/wp-includes/js/jquery/jquery.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-includes/js/jquery/jquery-migrate.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-includes/js/jquery/ui/core.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-includes/js/jquery/ui/widget.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-includes/js/jquery/ui/position.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-includes/js/jquery/ui/tooltip.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/gravityforms/js/tooltip_init.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/js_composer/assets/lib/bower/json-js/json2.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/js_composer/assets/js/lib/events.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/js_composer/assets/lib/bower/lessjs/dist/less.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/js_composer/assets/js/backend/composer-tools.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/js_composer/assets/js/lib/vc_less.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/wordfence/js/tourTip.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-includes/js/json2.min.js?ver=0451d35afe540197057f6b8f2cd10bfd-05-03′></script>
<script type=’text/javascript’ src=’/wp-content/plugins/wordpress-seo/js/jquery.qtip.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/wordpress-seo/js/wp-seo-metabox-302.min.js?ver=0451d35afe540197057f6b8f2cd10bfd-RC’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/akismet/_inc/akismet.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/easy-digital-downloads/assets/js/admin-scripts.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/easy-digital-downloads/assets/js/jquery.colorbox-min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/easy-digital-downloads/assets/js/jquery.flot.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>
<script type=’text/javascript’ src=’/wp-content/plugins/js_composer/assets/lib/bower/vcIconPicker/jquery.fonticonpicker.min.js?ver=0451d35afe540197057f6b8f2cd10bfd’></script>Sam
Can you please go to Downloads > Tools > System Info and post the contents here?
Here is the info (I replaced the name of the site with the name: mysite)
### Begin System Info ###— Site Info
Site URL: https://mysite.com
Home URL: https://mysite.com
Multisite: No— Hosting Provider
Host: DBH: localhost, SRV: mysite.com
— User Browser
Platform: Windows
Browser Name: Chrome
Browser Version: 48.0.2564.109
User Agent String: Mozilla/5.0 (Windows NT 10.0; WO
W64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/48.0.2564.109
Safari/537.36— WordPress Configuration
Version: 4.4.2
Language: en_US
Permalink Structure: /%postname%/
Active Theme: mysite New Child Theme
Show On Front: page
Page On Front: mysite Homepage (#14442)
Page For Posts: Unset
ABSPATH: /home/cloud40/public_html/
Remote Post: wp_remote_post() works
Table Prefix: Length: 7 Status: Acceptable
WP_DEBUG: Disabled
Memory Limit: 40M
Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, expired, preview, refunded, failed, revoked, abandoned, active, inactive— EDD Configuration
Version: 2.5.7
Upgraded From: 2.5.7
Test Mode: Disabled
Ajax: Enabled
Guest Checkout: Enabled
Symlinks: Disabled
Download Method: Direct
Currency Code: USD
Currency Position: before
Decimal Separator: .
Thousands Separator: ,
Upgrades Completed: upgrade_customer_payments_association,upgrade_payment_taxes,upgrade_user_api_keys— EDD Page Configuration
Checkout: Valid
Checkout Page: https://mysite.com/register-to-download/
Success Page: https://mysite.com/download-file/
Failure Page: Unset
Downloads Slug: /downloads— EDD Gateway Configuration
Enabled Gateways: Test Payment
Default Gateway: Test Payment— EDD Tax Configuration
Taxes: Disabled
Tax Rate: 0
Display On Checkout: Not Displayed
Prices Include Tax: No— Must-Use Plugins
— WordPress Active Plugins
404 Redirection: 1.8
Add Logo to Admin: 1.6.2
Advanced Menu Widget: 0.3
Akismet: 3.1.7
Custom Post Type UI: 1.2.4
Easy Digital Downloads: 2.5.7
Easy Digital Downloads – Conditional Success Redirects: 1.1 (needs update – 1.1.1)
Easy Digital Downloads – Mail Chimp: 2.4.5 (needs update – 2.5.6)
Easy Theme and Plugin Upgrades: 1.0.4
Enhanced Text Widget: 1.4.5
Floating Social Bar: 1.1.7
Gravity Forms: 1.9.16
Gravity Forms MailChimp Add-On: 3.7.1
LayerSlider WP: 5.6.3
LiveChat: 3.2.14
Open external links in a new window: 1.3.1
OptinMonster: 2.1.7
OptinMonster – After Post Addon: 2.0.2
OptinMonster – Canvas Addon: 2.0.1
OptinMonster – Effects Addon: 2.0.0
OptinMonster – Exit Intent Addon: 2.0.0
OptinMonster – Footer Bar Addon: 2.0.0
OptinMonster – Mobile Addon: 1.0.2
OptinMonster – Sidebar Addon: 2.0.0
OptinMonster – Slide-In Addon: 2.0.0
Post Duplicator: 2.14
Safe Redirect Manager: 1.7.8
Simple Social Icons: 1.0.13
Testimonials Widget: 3.2.0
W3 Total Cache: 0.9.4.1
Wistia WordPress Plugin: 0.8
Wordfence Security: 6.0.24
WP-PageNavi: 2.89.1
WPBakery Visual Composer: 4.6.2
WP Featherlight: 0.3.0
WP Hide Admin Bar: 2.0
WP Job Manager: 1.24.0
WP Job Manager – Apply With Gravity Forms: 1.3.1
WP Robots Txt: 1.1
Yoast SEO: 3.1-RC— WordPress Inactive Plugins
Dahz DF Shortcodes: 1.3.0
— Webserver Configuration
PHP Version: 5.6.14
MySQL Version: 5.6.23
Webserver Info: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4 PHP/5.6.14— PHP Configuration
Safe Mode: Disabled
Memory Limit: 256M
Upload Max Size: 2M
Post Max Size: 20M
Upload Max Filesize: 2M
Time Limit: 300
Max Input Vars: 10000
Display Errors: On (1)— PHP Extensions
cURL: Supported
fsockopen: Supported
SOAP Client: Installed
Suhosin: Not Installed— Session Configuration
EDD Use Sessions: Enabled
Session: Enabled
Session Name: PHPSESSID
Cookie Path: /
Save Path: /tmp
Use Cookies: On
Use Only Cookies: On### End System Info ###
Ok it could really be caused by any number of those.
The only way to track it down will be to deactivate each plugin one by one until we find the conflict.
If necessary since it’s a live site, put the site into maintenance mode temporarily while you do it.
- The topic ‘js error in edit post /page’ is closed to new replies.