Skip Navigation

[Resolved] Toolset creates empty custom fields in Woocommerce productpage in backend

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. 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/Karachi (GMT+05:00)

This topic contains 8 replies, has 3 voices.

Last updated by Waqar 1 year, 7 months ago.

Assisted by: Waqar.

Author
Posts
#2445497
Skærmbillede 2022-08-26 113309.png

I am trying to:

Link to a page where the issue can be seen:
hidden link

I expected to see:

Instead, I got:

#2445583

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

We have had one occurrence of this in the past, which occurred because of a poorly coded custom plugin.

Our plugin creates a custom field group for some required product custom fields, but first queries to check whether the custom field group exists already or not.

In the prior case, some custom code was indiscriminately modifying all queries on certain WC-related admin pages, including this query to check for the existence of the custom field group, which meant the query always returning no results (hence we go ahead and make a new group).

There must be something similar happening on your site.

If you are not running any custom code, then some other plugin may have the same problem.

I suggest you start by deactivating all plugins except for Toolset plugins and WooCommerce.

Then use the code snippet shared in the other thread to eliminate the surplus custom field groups that have been erroneously created: https://toolset.com/forums/topic/toolset-woocommerce-starts-multiplying-custom-fields-in-back-end/#post-2092581

Then try re-activating other plugins—anything related to WooCommerce—testing as you go by visiting some WC-related pages and seeing if additional custom field groups have been generated.

If you find where the conflict arises we can take a closer look, although the solution likely lies with the authors of the problem plugin.

#2447507

Hi,

I have
- Disabled all plugins except Toolset and Woocommerce.
- Change theme to 2020

I still have the error 🙁

Can I give you access to the staging server?

#2447519

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

Sure, I'm setting your next reply as private so that you can share temporary admin login details of the staging website. I'll also need your permission to download a clone/snapshot of the website, in case it needs to be investigated on a different server.

regards,
Waqar

#2447845

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the permission, but I'm getting the 'incorrect password' message.

Can you please test the username and password?

I'm setting your next reply as private, again.

#2447865

Updated password. Testet and working in my end.

#2447867

Send message multiple times :/

#2449175

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

The admin access details worked, thank you.

I'm currently performing some testing on your website's clone and will share the findings, as soon as this testing completes.

Thank you for your patience.

#2451017

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for waiting.

On your website's clone, I didn't see any new "Toolset WooCommerce" getting generated, but, the 46 extra instances of that field group need to be deleted.

To delete those extra field groups, you can include the following code, in the active theme's "functions.php" file:


$posts_array = array(
23326,
39819,
39820,
39821,
39822,
39824,
39832,
39833,
39834,
39835,
39836,
39838,
39839,
39841,
39842,
39843,
39844,
39852,
39853,
39854,
39855,
39856,
39857,
39858,
39859,
39860,
39865,
39866,
39867,
39868,
39869,
39871,
39872,
39873,
39874,
39880,
40805,
40806,
40832,
40833,
40834,
40835,
40836,
41340,
41341,
41499);

foreach ($posts_array as $post_array) {
	wp_delete_post( $post_array, true);
}

Next, check the product post edit screen or the custom field groups at WP Admin -> Toolset -> Custom Fields. If the extra field groups have been deleted, you can remove this custom code.

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