Uncaught TypeError after 2023.1.0 Update
-
After an auto-update to 2023.1.0, our site started returning 500s on a few custom wp-json endpoints. I’ll include the error stack below. Disabling WP REST Cache fixes the issue so I just did that until you have a chance to take a look. Thank you!
Fatal error: Uncaught TypeError: Argument 3 passed to WP_Rest_Cache_Plugin\Includes\API\Oembed_Api::process_cache_relations() must be of the type string, array given, called in /app/wp-includes/class-wp-hook.php on line 307 and defined in /app/wp-content/plugins/wp-rest-cache/includes/api/class-oembed-api.php:105 Stack trace: #0 /app/wp-includes/class-wp-hook.php(307): WP_Rest_Cache_Plugin\Includes\API\Oembed_Api->process_cache_relations(4181, Array, Array, ‘/wp-json/easton…’) #1 /app/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array) #2 /app/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /app/wp-content/plugins/wp-rest-cache/includes/caching/class-caching.php(872): do_action(‘wp_rest_cache/p…’, 4181, Array, Array, ‘/wp-json/easton…’) #4 /app/wp-content/plugins/wp-rest-cache/includes/caching/class-caching.php(173): WP_Rest_Cache_Plugin\Includes\Caching\Caching->register_endpoint_cache(’92b1e960e83bffa…’, Array, ‘/wp-json/easton…’, Array, ‘GET’) #5 /app/wp-content/plugins/wp-rest-cac in?/app/wp-content/plugins/wp-rest-cache/includes/api/class-oembed-api.php?on line?105
- The topic ‘Uncaught TypeError after 2023.1.0 Update’ is closed to new replies.