Skip Navigation

[Resolved] Can't create post relationship to Tribe Events

This support ticket is created 7 years, 1 month 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 2 replies, has 2 voices.

Last updated by christinaB-2 7 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#588572

I am trying to:
Create a post relationship between a Types custom post type (Cats) and an Events custom post type created by The Events Calendar plugin. Cats attend Adoption Events and I would like to use post relationships to indicate which cats are attending which events.

Link to a page where the issue can be seen:
hidden link

On the Edit Cats post type wordpress admin page:

If I try to add Events as a parent and Save the Cats post type I get this error:
Fatal error: Out of memory (allocated 111149056) (tried to allocate 12288 bytes) in /home2/h9k3d4p5/public_html/wordpress/wp-content/plugins/the-events-calendar/src/Tribe/Template_Factory.php on line 296

If I try to add Events as a child and Save the Cats post type I get this error:
Fatal error: Out of memory (allocated 112984064) (tried to allocate 72 bytes) in /home2/h9k3d4p5/public_html/wordpress/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/toolset.assets.manager.class.php on line 12

Is it not possible to relate Types CPTs and Tribe CPTs? Or is this a new bug? Some previous support tickets suggested that it used to be possible.

Thanks for your help!

#588642

Nigel
Supporter

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

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

Hi Christina

I tried this locally and had no problems, I was able to assign Events as a parent of a Types post type.

The errors that you have pasted are insufficient memory errors.

You can try adding the following to your wp-config.php file:

// Increase memory limit
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Sometimes it is not possible to increase the memory allocation from WP and it needs to be done directly on the server, in which case you would need to check with your host.

#588657

I tried your fix to increase the memory, but I still get the same error.
Also, we already set the max memory to 256M in our php.ini file.

In any case, the post relationship appears to have saved despite the memory error. I'm able to relate Cats to Events inside individual Cat posts. I'm going to ignore the error message for now, but will check back in if I notice other problems.

Thanks!