fatal error on certain page
-
Hello. Thanks for all your nice plugins.
By the way, I got a fatal error.
Only certain pages that I happened to try to modify in a page, I get an error when I try to open it with edit. The display is normal.
I don’t know if it is caused by something text in this page. For now, I have hidden the page with the error.Some other pages do not have this error.
I have not been able to confirm whether other pages or posts get this error, as there are too many of them.
SlimSeo version 4.3.0
Fatal error: Uncaught TypeError: SlimSEO\RestApi::prepare_value_for_post(): Return value must be of type array, null returned in /xxxxxwp-content/plugins/slim-seo/src/RestApi.php:64 Stack trace:
#0 /xxxxxwp-includes/rest-api/fields/class-wp-rest-meta-fields.php(127): SlimSEO\RestApi->prepare_value_for_post(Array, Object(WP_REST_Request), Array)
#1 /xxxxxwp-includes/rest-api/fields/class-wp-rest-meta-fields.php(94): WP_REST_Meta_Fields->prepare_value_for_response(‘a:1:{s:7:”noind…’, Object(WP_REST_Request), Array)
#2 /xxxxxwp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(2029): WP_REST_Meta_Fields->get_value(154516, Object(WP_REST_Request))
#3 /xxxxxwp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(635): WP_REST_Posts_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request))
#4 /xxxxxwp-includes/rest-api/class-wp-rest-server.php(1292): WP_REST_Posts_Controller->get_item(Object(WP_REST_Request))
#5 /xxxxxwp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/wp/v2/pages/(?…’, Array, NULL)
#6 /xxxxxwp-includes/rest-api.php(576): WP_REST_Server->dispatch(Object(WP_REST_Request))
#7 /xxxxxwp-includes/rest-api.php(2957): rest_do_request(Object(WP_REST_Request))
#8 [internal function]: rest_preload_api_request(Array, ‘/wp/v2/pages/15…’)
#9 /xxxxxwp-includes/block-editor.php(753): array_reduce(Array, ‘rest_preload_ap…’, Array)
#10 /xxxxxwp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context))
#11 /xxxxxwp-admin/post.php(187): require(‘/home/xxxxx/…’)
#12 {main} thrown in /xxxxxwp-content/plugins/slim-seo/src/RestApi.php on line 64
- You must be logged in to reply to this topic.