Skip Navigation

[Resolved] The toggle for post fields stopped working in admin

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 2.05 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 7 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#512834

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)

#512899

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.

#513216

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.

#513263

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

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.