Skip Navigation

[Closed] One to one relationship mistake.

This support ticket is created 2 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
- 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 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Mateus Getulio 2 years, 1 month ago.

Assisted by: Mateus Getulio.

Author
Posts
#2624649
toolset-dashboard.png
toolset-list-luoghi.png
toolset-relations-noresult.png
toolset-donazioni-details.png
toolset-relationships-list.png

Hello,
i create two custom post types: "Donazioni" and "Luoghi". I create a one-to-one relationship between this CPTs.

If i edit an item of "Donazioni" and i try to connect an existent item from"Luoghi" i receive a "no result s found" although the CPT "Luoghi" contains some items (Attach "toolset-list-luoghi")

I tried removing the relationship and recreating it but it didn't fix. I can't find a solution.

The web site is still in production...
hidden link

thank you in advance, CORO

#2624823

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks for your contact and welcome to our support forum!

Could you please check if the same happens to two new dummy CPTs created with Toolset (for instance, a CPT 'Country' connected with another CPT 'State')?

Regardless, We might be facing an interaction issue with a third-party functionality, in this case:

- Deactivate all the plugins that are not related to Toolset
- Switch for a moment to a WordPress default theme like Twenty Twenty-one
- If the issue is gone, activate one by one to see with which one there is an interaction issue

Could you please tell me the results of this investigation? Also, can you enable the debug mode? Just add the following code in your wp-config.php file:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
  
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
  
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
  
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );

Please check the following links to read more about debugging with WordPress.
- https://codex.wordpress.org/Debugging_in_WordPress
- https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging

After adding the code above, try to reproduce the issue again and check if you'll find a debug.log file inside the wp-content folder. If you locate it there, kindly send us the last lines here in the ticket.

Regards,
Mateus.

The topic ‘[Closed] One to one relationship mistake.’ is closed to new replies.