Skip Navigation

[Resolved] Duplicate field group listed in Access Control

This support ticket is created 2 years, 9 months 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.

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)

This topic contains 11 replies, has 2 voices.

Last updated by Arno 2 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2362677
toolset-field-group.jpg
toolset-relation.jpg
toolset-access-types-fields.jpg

Hi,

I have 32 field groups. When checking Toolset - Access Control - Types Fields, there are 33 listed. There seems to be a duplicate one: there is a group named "{field group name}" and a group named "Fields for the {relation name} relationship". I attached a screenshot. The first group seems to be the correct one. The second is unexpected unless I am overlooking something?

There are no duplicate relations, and when I open the relation this field group belongs to, I only see one group. I uploaded screenshots of this too.

Does the duplicate group serve a purpose? How to I get rid of it?

Thanks,
Arno

#2364199

Hello,

I assume we are talking about intermediate post type of many-to-many relationship.

I have tried these in my localhost:
1) Create a new many-to-many relationship(Relationship name):
- enable Intermediary post type
- Add a custom field into Intermediary post type

2) Dashboard-> Toolset-> Access control-> Types Fields
I can see only one item with name: {Relationship name}Field Group

Is there any missing steps? please provide detail steps to reproduce the same problem in a fresh WP installation, thanks

#2364423

Hi Luo,

Yes, it's an intermediate post type of a many-to-many relationship.

I think your steps are correct but I don't expect it to be possible to reproduce this on a fresh installation: I have other many-to-many relations with custom fields on the intermediary post type. They don't get listed twice. It's only one that seems to have a problem. The name is strange too: the text "Fields for the " ... "relationship" seems to be generated by Toolset, as if there is/was a field group with a blank name so it auto-generated one.

Can it be caused by an old relation or field group that is still in the database somehow? Or in a trash folder?

#2364825

Since I can not duplicate the same problem, I am not sure how did it caused by.

Please try these:
Edit the many-to-many relationship, in section "Custom fields:", click button "Edit Fields", it will redirect you to custom field group setting page, you can find the correct field group name, find the field group name in Access setting page, and setup the access options as what you want.

#2365289
relation-field-group.jpg

Ok, I did that (see screenshot). So the field group is named "Travel guide location details". I can setup access options for that.

Where "Fields for the "Travel guide-Location relations" relationship" is coming from is not clear to me. Should I just ignore that one or is there a way to delete it?

#2365623

If the field group "Fields for the "Travel guide-Location relations" does not take effect on your website, you can ignore it.

If you need assistance to remove it, please provide your website database dump file in below private message box, I need to debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#2365721

Please follow duplicator document to export the database only file:
hidden link
Private message box enabled again, thanks

#2366431

Thanks for the details, I am downloading the files, will update here if find anything

#2367551

Please try these:
1) Backup your website database
2) Use mysql tools, for example PHPmyadmin, run below SQL query in your website database:

DELETE FROM mys.stg220517_posts WHERE ID IN (628);

It works fine with your database dump file in my localhost

#2368293
database-field-record.jpg

Thanks Luo! The field group is now gone from Access Control - Types Fields.

I grabbed a screenshot of the record before deleting it (see attached). Was this an orphaned database record? Any idea where it came from, and how to prevent this?

#2369037

Since there isn't detail steps to reproduce the same problem, I am not sure where it came from, but you can create new ticket if the problem appear again.

#2369097

My issue is resolved now. Thank you!