Skip Navigation

[Assigned] Category view crashes site with errors from Types and Views

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by cristyF 12 hours, 22 minutes ago.

Assisted by: Minesh.

Author
Posts
#2813331

I am trying to: View a category archive at

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

I expected to see: A category archive

Instead, I got: The WP "There has been a critical error on this website" message. Server error logs show the errors below. If Types and Views are both enabled, I will get the error from Types. If I disable Types plugin, I get the error from Views. ONLY if Types and Views are both disabled does the category archive show.

Changing the theme to default Twenty-Twentyfive makes no difference.

2025/06/20 15:46:48 [error] 118535#118535: *29827 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /www/principledinnovation_968/public/wp-content/plugins/wp-views/vendor/toolset/toolset-common/toolset-forms/bootstrap.php:285
Stack trace:
#0 /www/principledinnovation_968/public/wp-includes/class-wp-hook.php(324): WPToolset_Forms_Bootstrap->pre_get_posts(Object(WP_Query))
#1 /www/principledinnovation_968/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#2 /www/principledinnovation_968/public/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#3 /www/principledinnovation_968/public/wp-includes/class-wp-query.php(1910): do_action_ref_array('pre_get_posts', Array)
#4 /www/principledinnovation_968/public/wp-includes/class-wp-query.php(3949): WP_Query->get_posts()
#5 /www/principledinnovation_968/public/wp-includes/class-wp.php(701): WP_Query->query(Array)
#6 /www/principledinnovation_968/public/wp-includes/class-wp.php(821): WP->query_post" while reading response header from upstream, client: 68.104.232.30, server: pi.education.asu.edu, request: "GET /category/personal-reflections/ HTTP/2.0", upstream: "hidden link:", host: "pi.education.asu.edu:29708"

2025/06/20 15:44:50 [error] 118535#118535: *29768 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /www/principledinnovation_968/public/wp-content/plugins/types/vendor/toolset/toolset-common/toolset-forms/bootstrap.php:285
Stack trace:
#0 /www/principledinnovation_968/public/wp-includes/class-wp-hook.php(324): WPToolset_Forms_Bootstrap->pre_get_posts(Object(WP_Query))
#1 /www/principledinnovation_968/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#2 /www/principledinnovation_968/public/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#3 /www/principledinnovation_968/public/wp-includes/class-wp-query.php(1910): do_action_ref_array('pre_get_posts', Array)
#4 /www/principledinnovation_968/public/wp-includes/class-wp-query.php(3949): WP_Query->get_posts()
#5 /www/principledinnovation_968/public/wp-includes/class-wp.php(701): WP_Query->query(Array)
#6 /www/principledinnovation_968/public/wp-includes/class-wp.php(821): WP->query_posts()" while reading response header from upstream, client: 68.104.232.30, server: pi.education.asu.edu, request: "GET /category/personal-reflections/ HTTP/2.0", upstream: "hidden link:", host: "pi.education.asu.edu:29708"

#2813405

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support. I will answer this ticket before the ticket is assigned to one of my colleagues.

Would you please check if the issue happens on a minimal installation?

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except Toolset Types and Toolset Views
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

Thanks.

#2813686

As stated in my initial support request, I have already ruled out the theme and other plugins.

To reiterate, the problem happens ONLY when Types and/or Views are activated.

Changing the theme makes no difference. No other plugins make any difference. The site running the default TwentyTwenty-five theme with no plugins works fine. The site running the default Twenty Twenty-five theme will all plugins except Types and Views works fine. The site running it's production theme with all plugins enabled except Types and/or views works fine.

The moment I enable either Types or Views, with or without any other plugins, with any theme, the problem occurs.

#2813760

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Christopher is not available at the moment and I will take care of this ticket. Hope this is ok.

Can you please try to check with PHP version 8.1.x and see if that help you to resolve your issue.

If your issue still persists:

*** Please make a FULL BACKUP of your database and website.***

Can you please send me duplicator copy of your site.
- https://toolset.com/faq/provide-supporters-copy-site/

I have set the next reply to private which means only you and I have access to it.