Skip Navigation

[Resolved] Help with empty View / archive generating fatal error

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

Last updated by Christian Cox 6 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#639138
Screenshot 2018-04-09 17.00.46.png
Screenshot 2018-04-09 16.53.57.png

Hi !

After a lot of work we was finally able to create this View:
hidden link

But we have a Fatal Error when we search for a combination that should output an empty set.
(see the screenshot)

It is actually created inside the file that handles the wordpress archives

This is the code:

 Fatal error: Uncaught exception 'InvalidArgumentException' in /var/www/NIRVANA/wp-content/plugins/wp-views/vendor/toolset/toolset-common/inc/m2m/relationship/query/condition/type.php:28 Stack trace: #0 /var/www/NIRVANA/wp-content/plugins/wp-views/vendor/toolset/toolset-common/inc/m2m/relationship/query/condition_factory.php(83): Toolset_Relationship_Query_Condition_Type->__construct('', Object(Toolset_Relationship_Role_Child)) #1 /var/www/NIRVANA/wp-content/plugins/wp-views/vendor/toolset/toolset-common/inc/m2m/relationship/query/relationship_query_v2.php(380): Toolset_Relationship_Query_Condition_Factory->has_type('', Object(Toolset_Relationship_Role_Child)) #2 /var/www/NIRVANA/wp-content/plugins/wp-views/vendor/toolset/toolset-common/inc/public_api/m2m.php(492): Toolset_Relationship_Query_V2->has_domain_and_type('', 'posts', Object(Toolset_Relationship_Role_Child)) #3 /var/www/NIRVANA/wp-content/plugins/types/vendor/toolset/types/embedded/includes/post-relationship.php(194): toolset_get_related_post_types('parent', '') in /var/www/NIRVANA/wp-content/plugins/wp-views/vendor/toolset/toolset-common/inc/m2m/relationship/query/condition/type.php on line 28

Before opening this ticket, we already tryed to upgrade to current BETA of Views and Types.

THANKS !

#639886

Hi, we have also released a beta version of Layouts, so please install that beta as well. Layouts 2.3-b1 is designed to be used with the Types and Views betas. If the problem remains, please try the following troubleshooting steps:
- Temporarily activate a default theme like Twenty Seventeen, then deactivate everything except Types, Views and Layouts. If you need to activate a plugin like Maintenance Mode during testing, that's fine.
- Reload the page where the fatal error was seen before. If the problem was resolved, reactivate your theme and other plugins one by one until the conflict is revealed.
- If the problem was not resolved, please take screenshots showing the entire View editor screen in wp-admin, and copy + paste any code in the Filter editor, Loop Output editor, and any Content Templates associated with this View. Include those with your next reply for me to review.

#639887

We was using only Types and Views.

We was not using Layouts at all (it has always been deactivated during the developement of the website),
is this the cause of the problem ?

#639893

Oh okay, your site debug information included the Layouts plugin so I assumed it was active. If not, then there is no need to install the Layouts 2.3-b1 beta. You can disregard that step.