In my wp admin, I can no longer toggle certain areas such as post types. It used to work fine. If I want to edit/add post fields, I can no longer do so because the toggle button does not work. Please advise so I can provide better information in regards to the issue.
Possible source of issue - jquery : Object.fireWith
This is the only thing I see in chrome console:
Uncaught TypeError: $(...).wpColorPicker is not a function
at HTMLDocument.<anonymous> (admin_style.js:23)
at i (load-scripts.php:2)
at Object.fireWith [as resolveWith] (load-scripts.php:2)
at Function.ready (load-scripts.php:2)
at HTMLDocument.K (load-scripts.php:2)
Dear William,
I can not find the problem source from your Javascript debug logs, we need to know if there is any other compatibility problem in your website, please check these first:
1) make sure you are using the latest version of Toolset plugins,
2) deactivate other plugins(expect Toolset plugins) and switch to wordpress default theme, and test again
This will help us to locate the problem plugin/theme.
I still have version of the site on separate server. The site is running wp 4.6.4 and using wp types 2.1 /// Toggles work fine, in areas such as editing postfields ...
The production site is running wp 4.7.3 and wp types 2.2.9 // Toggles do not work in this.
Can you guys look further into this? These sites are exact duplicates. With the only difference being wp update and toolset update.
I tried deactivating any other plugin on the production site except toolsets plugins. This doesnt help.
The toggle opens the tables under it that are initially set to "display:none" in css.
From the post field area I am current viewing in wp-types that table class :
<table class="widefat inside js-wpcf-slugize-container">
If I inspect element and remove the display:none... all tables, of course, will be expanded. So it something with the JS or CSS that fires this.
The CSS that appears to be on the table in question is set by :
/wp-admin/load-styles.php which appears to load a bunch of stylesheets from wordpress.
Can u please confirm you are using wp 4.7.3 and types latest? Even if the issue is a wordpress core file issue. I think it's important to determine.
what about class "js-wpcf-slugize-container" ??
I see many changes were made to:
plugins/types/library/toolset/types/embedded/resources/js/basic.js
Something in there?
Thanks.
Yes, I am using the latest version of Types plugin 2.2.9 + wordpress 4.7.3, and Jquery toggle works fine in my localhost, please try as I mentioned above:
1) deactivate other plugins(expect Toolset plugins) and switch to wordpress default theme, and test again
2) If the problem persists, please provide a database dump file of your website, also point out the problem page URL, how and where I can see the problem, I need to test and debug it in my localhost, thanks