I am probably missing something here but it is very strange that the parent field in child post form does not show any value!
I have the relationship O2M relationship between "project prompt" and "project submission". The "project submission" page does not show any values in the relationship field to select.
I have 5 CPTs and they are interconnected with one another. This issue is happening at every child post publish form.
What am I missing here? The whole project is stalled because of this fundamental issue. Please help.
If it helps, I am also getting the following error when I try to preview the page:
Fatal error: Uncaught Error: Argument 1 passed to OTGS\Toolset\Access\Controllers\Filters\ErrorPreview::filter_posts_results() must be of the type array, null given, called in /wordpress/core/5.6/wp-includes/class-wp-hook.php on line 287
in /srv/htdocs/wp-content/plugins/types-access/application/controllers/filters/post_preview.php on line 113
Thank you for contacting us and I'd be happy to assist.
Can you please make sure that:
1. A "project prompt" post exists with the published status, which can be connected to the "project submission" post.
2. The user that you're testing the form is allowed access to the "project prompt" posts.
In case the issue still persists, I'll need to see exactly how this form and the CPT access is set up on your website, in order to investigate and reproduce this issue on a test website. You can share the temporary admin login details along with the example page where this form can be seen.
Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.
When I checked the "Submit Project" page, I could see the available "Project Prompts" posts in the form's "Project Prompts To Project Submissions" field.
( screenshot: hidden link )
Can you please check the form again and see if the issue still persists and if it is limited to a particular user?
Waqar,
The problem was more persistent before but now it happens only on first rendering of the page. The fields don't load the first time but when I refresh the page, the dropdown changes format and shows the data. I had the layout plugin enabled and once I removed it all worked well.