Skip Navigation

[Resolved] How to prepare your sites for the new post relationships, coming in Types 2.3

This thread is resolved. Here is a description of the problem and solution.

Problem:
Types 3.0 will bring new enhanced post relationships, how will it affect existing sites?

Solution:
Existing sites will continue to work as-is, though a wizard can be used to update existing relationships to the new relationship format, which will also be able to handle many cases where custom code is used.

Clients should ideally test the new versions on a duplicate of their site, and in any case *must* make sure they have a current backup before upgrading.

Relevant Documentation:
https://toolset.com/documentation/post-relationships/

This support ticket is created 6 years, 10 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
- 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)

This topic contains 12 replies, has 2 voices.

Last updated by janeC-2 6 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#621937

Hi,
I am a bit scared about the upgrade to the new Post Relationships API

One of my sites has a complex array of post relationships and I'm not sure whether they will be affected by this change. I have not written any custom PHP so does that mean it will be a safe transition?

Could someone please login and check my site to advise me? I'll send a login on request.

#621974

Nigel
Supporter

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

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

Hi Jane

If you are not using any custom code then the migration wizard should handle your post relationships automatically.

There will be a big fat health warning advising you to make sure you have a backup before running the wizard (which you don't have to run if you are not making any changes to your site, it will continue to work as before).

If you have particularly complex relationships I would suggest you make a duplicate of your site on a test server, install the betas and run the relationship migration wizard, then confirm that your site still works correctly, including when adding new data. (I could do that for you, but you know your site and how it is expected to work.)

If you try that and find any problems then please let me know and I can then take a copy of your site to pass to the developers.

#623549

So, is the update available now? Can I access a beta to do the testing?

#623601

Nigel
Supporter

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

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

Hi Jane

The migration wizard is already available in the betas.

If you go to your downloads page (wp-types.com/account/downloads) and switch channel to the betas you can get copies from there.

Install on a test site and run the relationship migration wizard from Toolset > Settings > Custom Content.

Then test your site to see that the relationship-related functionality works as expected.

Let me know if you find anything that doesn't or if anything is somehow unexpected.

#623897
g2.jpg

Okay so on my test site, I deleted Types and Views, then installed beta types and beta views.

the front end output looks okay.

Problem:
For each main post - I log into the post and link related Services, related Glossary terms and related resources.
Previously they were listed by a title, but now there is only 'related-service 3804' etc

see screen shot for related Services

#624161

Nigel
Supporter

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

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

Hi Jane

In your screenshot for the live version, what field is "Service Providers" and to what does it belong? It's a custom field of your intermediate related service post type, would that be right?

It looks like the post titles are the same in each, but you have lost the field you wanted to display.

#626372

Hi Nigel,
It should show the post title.

Can I send you a login to have a look?

Jane

#626612

Nigel
Supporter

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

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

Hi Jane

Sorry for the delay getting back to you, it was a long weekend here in Ireland.

Yes, let me mark the next reply as private and I can look at how you have this set up.

#627038

Nigel
Supporter

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

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

Hi Jane

Thanks for that. I have compared the two side-by-side. I have a meeting with the devs in the meeting and I will run it past them to get their feedback, and let you know what they say.

#627239

Nigel
Supporter

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

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

Hi Jane

I spoke with the developers who said this is an unintended omission that will be fixed in the release candidate for the final version, so when we go from beta to stable you will see the same as before.

Thanks for testing and bringing it to our attention.

#640724

Hi Nigel,
Did you log into my test site again? I had a message from Sucuri saying Toolset logged in.

Event: Success Login
Website: hidden link
IP Address: 185.51.73.174
Reverse IP: 185-51-73-174.cgn1.srl.meteor.ie
Date/Time: April 9, 2018 8:25 am

Message: User authentication succeeded: ToolsetSupport

#641327

Nigel
Supporter

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

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

Hi Jane

I did, yes. The developer who just started working on this asked if I could provide a copy of your before site and I hadn't already taken one.

Sorry if I set the alarm bells ringing.

#641352

no worries, I'm glad it was you guys. I deleted the userid, so if you need to get in again, just email me and I'll create a login.

Jane