Skip Navigation

[Résolu] Unable to add repeatable field group

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
When editing a Custom Field Group there is no option to add a Repeatable Field Group.

Solution:
The site was made with Types 2 and the migration wizard to update relationships to Types 3 has not been run, and Repeatable Field Groups are built on Types 3 relationships.

The migration wizard at Toolset > Relationships needs to be run.

This support ticket is created Il y a 6 années et 2 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Ce sujet contient 8 réponses, a 2 voix.

Dernière mise à jour par marcB-6 Il y a 6 années et 2 mois.

Assisté par: Nigel.

Auteur
Publications
#1106647
Schermafbeelding 2018-09-12 om 20.24.26.png

I am trying to add a repeatable field group in custom fields. Even after assigning the fieldgroup to a CPT the button is not visible (normally it's greyed out).

See screenshot. What can i do to fix?

#1106718

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Marc

As a first step, can you

1. check your browser console and PHP logs for warnings/errors, and
2. disable all non-Toolset plugins and switch theme to twentyseventeen in case there is a conflict with another plugin

Let me know what you find.

#1106922

Hi Nigel,
Thanks for your reply.

I did the following:
- disabled all plugins except types. This did not solve the problem.
- checked console. There was no error.
- inspected the element. The button is not hidden by CSS or something.

I did not do following:
- switch themes, since that messes up my widgets and i'm using toolset starter (won't expect that to be the problem; do you?)

If switching themes is likely to cause the problem ofcourse i can do.
So what's the next step?

#1107492

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Marc

The Toolset Starter theme shouldn't be an issue itself (I just tested it), but when we ask you to change to twentyseventeen it is partly to use a theme we know works normally, and partly to eliminate any custom code you may have added to your theme's functions.php.

So, if you don't want to switch theme, can you confirm that there is no custom code added? If there is, can you temporarily disable it and check again?

If not, I think I'll need a copy of your site so that I can install it locally and see if I get the same problem (so, the issue may be server related).

lien caché

I'll set up a private reply in case you have a duplicate to share.

#1107527

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Marc

I installed the copy of your site, saw the issue, did some basic steps such as re-installing WordPress and Types, but couldn't identify the cause.

I've escalated this so my colleagues can take a closer look, and I'll get back to you.

#1108163

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Marc

The answer is simple in the end.

This is an old site you have updated to Types 3. You need to run the migration wizard to convert existing relationships to the new format for repeating field groups to work (under the hood they are implemented using post relationships).

Make sure you have a backup before running the wizard, and once you have check that the current functionality based upon post relationships still works as expected. The migration attempts to handle custom code that uses related posts and is able to in most common cases, but you should check.

#1109255

Hi Nigel,
well, good to hear that the answer is simple 🙂
Where can i find a tutorial on how to run the wizard?
Thanks!

#1109334

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Marc

We don't have a tutorial as such, you just go to Toolset > Relationships, and if you already have existing relationships made with Types 2 it will offer to migrate them for you.

You'll see warning notices advising you to make sure you have a full backup before you do.

If something goes wrong, let me know.

#1109763

Hi Nigel,
Thanks, that was easy :). Will run the wizard later this week. If any problems occur i will start a new thread and assign it to you.
Thanks again!
Marc