Skip Navigation

[Resolved] Post relationship error

This support ticket is created 6 years, 3 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 6 replies, has 3 voices.

Last updated by dermotK 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1112201

Please help!

I have created a one to many post relationship. post type Programmes(one) and post type Events(many)

When I connect an event to a programme I get the following error

Warning: Invalid argument supplied for foreach() in /home/ezclubsite/public_html/wp-content/plugins/types/application/viewmodels/related_content_post.php on line 117

I'm running a WP multisite installation and the sites are under construction with no live sites, I have disabled all plugins bar Toolset for your convenience.

best regards

Stephen

#1112350

Hi, I'm checking this now and I will update you shortly.

#1112358

Okay I ran several tests and I believe the issue is in the Memcached system. I logged in with FTP and went to wp-content, then renamed the object-cache.php file temporarily. I reloaded this admin page: hidden link

Now I no longer see the warning, and I see two linked events. After that, I reverted the cache file name change, and now the warning message is no longer displaying. Can you run some tests and see if things are working as expected?

#1112473

If you try and add a new event relationship the error returns, the error returns even if just update the post without making a relationship.

When connecting an existing post the Events list is displayed in the Programme page, however, Programmes are not listed in the events page.

Another error displayed when connecting existing content is:

There was a problem creating the related content: These two elements are already associated and the relationship doesn't allow non-distinct associations.

This error displays even after deleting and recreating the relationship.

#1113856

Any update on this issue?

#1113863

Okay so problems return after reactivating the caching system. I think the best solution here is to deactivate the caching system, since it seems to cause problems with Toolset. If you agree, I will take care of that for you by renaming object-cache.php

#1115098

I have this too....same issue after renaming cache.php it comes back again.

I take it that you are working on a fix for this??

First time using Toolset on WordPress.....fantastic scope of things to do with it. Hope you can get this fixed!