Activating the WPGraphQL plugin crashes my wordpress site.
-
I am using the WPGraphQL plugin (Version 1.11.1) to transfer some data in my application. When I activate the plugin, my application crashes. It shows the following error.
Fatal error: Uncaught TypeError: Argument 4 passed to WPGraphQL\Utils\Preview::filter_post_meta_for_previews() must be of the type bool or null, array given, called in /var/www/html/wp-includes/class-wp-hook.php on line 309 and defined in /var/www/html/wp-content/plugins/wp-graphql/src/Utils/Preview.php:23 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(309): WPGraphQL\Utils\Preview::filter_post_meta_for_previews(NULL, 38, 'gm_custom_prese...', Array) #1 /var/www/html/wp-includes/plugin.php(191): WP_Hook->apply_filters(NULL, Array) #2 /var/www/html/wp-includes/meta.php(632): apply_filters('get_post_metada...', NULL, 38, 'gm_custom_prese...', Array, 'post') #3 /var/www/html/wp-includes/meta.php(571): get_metadata_raw('post', 38, 'gm_custom_prese...', Array) #4 /var/www/html/wp-includes/post.php(2485): get_metadata('post', 38, 'gm_custom_prese...', Array) #5 /var/www/html/wp-content/themes/stratusx/base.php(20): get_post_meta(38, 'gm_custom_prese...', Array) #6 /var/www/html/wp-includes/template-loader.php(106): in /var/www/html/wp-content/plugins/wp-graphql/src/Utils/Preview.php on line 23
I am unable to fix it. I want to know what is the issue. Need some help.
- The topic ‘Activating the WPGraphQL plugin crashes my wordpress site.’ is closed to new replies.