Skip Navigation

[Resolved] Repeatable Field Groups disappear from view

This support ticket is created 3 years, 11 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 16 replies, has 2 voices.

Last updated by nadavL 3 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2079277
Screenshot 2021-06-07 163400.jpg

Hi,

I have a few post types and templates that show Repeatable Field Groups under a view.

For some reason, many times the template doesn't save the Repeatable Field I chose. It actually saved but after adding data to the site, many times the connection is lost and I have to edit the template and select the group again (see image for example).

For example, see the template for Tours post type. In that template, you can see the group from the attached image.

Thanks

#2079557

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nadav,

This is quite strange if there are repeatable fields then the information should show up.

Perhaps you have plugins that are interfering with the normal running of the query ? When you view the view on the frontend does the data show up?

If yes then it is quite possible that another plugin is interrupting our view query on the backend. If nothing is displayed even after disabling the non-toolset plugins, you can provide me with admin access and I have a quick look at the view to see what is happening here.

Thanks,
Shane

#2080011

Hi,
Following the private message, it just happened again so I recorded the screen so you'll be able to see how the selected field is suddenly not selected.
It's a different template. This one is for Trips and not Tours, but it's the same problem.

I hope that helps. The video link: hidden link

Thanks

#2081877

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nadav,

I'm still working on the issue however I do believe I have a workaround for you.

To do this you will need to use the classic views editor, but don't worry you can still use the block editor on the view, to design the template.

Go to Toolset -> Settings and scroll to Editing Experience and select the 3rd option.

Next refresh the page and go to Toolset -> Views. From there you can create a new view. Select your post type as normal, in this case it will be your repeatable field and then under Query Filter you will add a new query for the Post Relationship.

Once the filter is added ensure the first option on the filter is selected and then save it.

Scroll to the Loop wizard and then use it to add the initial field in this case the post title to your view. It should create the view template as using the Gutenburg editor. Next you can just go to the template and click on the edit button for that template to customise the view further.

The final step is to re-add this view to your content template for tours or trips. Using the Views block you can add this view to your template but you won't be able to edit it from there.

This should allow your items to display while I work through the issue.

Thanks,
Shane

#2082273

Thank you Shane,
I haven't tried your workaround yet since it sounds complicated and as a temp solution which I'll have to change again after you'll find a solution.

I can't keep working on the site since I keep losing my work. I'll have to wait for your update. Please let me know if there's anything I can do to speed the investigation of this issue.

Thanks,
Nadav

#2085093

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nadav,

Also in my testing when I added a new view with the RFG i'm able to see the items being displayed on the frontend.

Have a look here
hidden link

At the bottom of the page you will see that i'm displaying the FAQ for the tour. Please let me know if after some time if this view too loses its connected posts.

Thanks,
Shane

#2086521
Screenshot 2021-06-13 122424.jpg

Hi Shane,

I looked at the page you've added yesterday and so the FAQ (questions only).
I checked it again now and it's missing as you can see in the attached screenshot.

#2088651

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2021-06-14 at 1.54.51 PM.png

Hi Nadav,

Thank you for the screenshot, however i'm referring to the new view that I created to display the FAQ's.

It would appear that this view that I've created is still functioning correctly. See Screenshot

If you scroll to the bottom of the template below, you will see the view that i've created.
hidden link

As you can see the view is still displaying the posts. This is just a proof of theory that remaking the view resolves the issue. What you can do is to customize this view and place it where the original view is.

Thanks,
Shane

#2090051

Indeed your view is currently available.

But what's the reason mine keeps losing connection?

Initially, I thought it's due to the fact that it's using another Accordion block but the same problem happens with other RFG which don't use this block.

#2090593

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nadav,

This one appears to be a case where the view has been corrupted. Gutenburg editor does dynamic processing of the data on the edit page. During the dynamic loading and saving of data it could appear to have affected the view.

Given that recreating the view solve the issue then its pointing heavily to a corrupt view at some point. If the issue still occurred even with a new view then it would strongly lead to the query to the database interrupting at some point in the data loading.

Thanks,
Shane

#2090675

Hi Shane,

I'm not sure what you suggest here.
If the view is corrupted, should I recreate all the view that has this issue?

If it's DB issue, what can I do to fix or check it?

Thanks

#2090841

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nadav,

If the view is corrupted, should I recreate all the view that has this issue?

That is correct, given that the problem is replicable on a new view then this would be the option.

If it's DB issue, what can I do to fix or check it?

Its not a database issue because checking on the duplicate package the information was there. Also if it was a database issue, the new view would not display any data.

Secondly this issue can also be caused by plugin conflicts interfering with the views accessing the database but given that the issue is still present when I disabled all the plugins on the duplicate as well as switched the theme, this just leaves the existing view.

Given that remaking the view doesn't show this symptom gives a good indicator that the view is the culprit.

Please let me know if this clears this up for you.

Thanks,
Shane

#2094289
Selection_139.png

Hi Shane,
Sorry for the late response.
I rebuild one of the views and I'll monitor the page to see if it works now.

Not sure if it's relevant but note that you used a different field source than mine. You used:
Post Source=Current Tour FAQ
Source=Post Title

I used:
Post Source=Current Tour FAQ
Source=Tour FAQ
Field=FAQ Question

In addition, when I'm editing this page or other template, it raises the server CPU to 100%.
It runs endless queries as you can see in the attached image.

Again, I have no idea why.

Please advise.

Thanks,
Nadav

#2094563

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nadav,

Thank you for the update.

Using your set of dynamic sources should still give the desired results. The reason for my using of the basic post information was to verify that remaking the view actually produces some output on the frontend which it did.

Regarding the server usage to 100% I too noticed this as well, however it can be due to the number of dynamically loading data on your page. The gutenburg editor I would say is in a constant active state and requesting data.

Essentially the more dynamic data is on the page the higher the server load will be.

Thanks,
Shane

#2095473

Hi,

I spoke with my hosting provider and they don't know how to solve the CPU overload, other than private servers.
I don't have that much data on that page. Any chance you can consult the developers on that or tell me recommended host requirements for sites working with Toolset?

Thanks