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"
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.
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.