Error on widgets.php
-
Just recently made an update on my website (WP 6.2 => 6.4) and all the plugins aswell
I got an error getting on Dashboard > appearance > Widget (widgets.php)
Be aware, Customize > Widgets DO WORK FINE
See error here :
Also here :
Fatal error: Uncaught TypeError: SlimSEO\ImagesAlt::add_missing_alt_attribute(): Argument #2 ($attachment) must be of type WP_Post, null given, called in /htdocs/citypop-blog/wp-includes/class-wp-hook.php on line 326 and defined in /htdocs/citypop-blog/wp-content/plugins/slim-seo/src/ImagesAlt.php:22 Stack trace: #0 /htdocs/citypop-blog/wp-includes/class-wp-hook.php(326): SlimSEO\ImagesAlt->add_missing_alt_attribute(Array, NULL) #1 /htdocs/citypop-blog/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #2 /htdocs/citypop-blog/wp-includes/media.php(1138): apply_filters('wp_get_attachme...', Array, NULL, 'thumbnail') #3 /htdocs/citypop-blog/wp-includes/post-thumbnail-template.php(189): wp_get_attachment_image(-1, 'thumbnail', false, Array) #4 /htdocs/citypop-blog/wp-content/plugins/yet-another-related-posts-plugin/includes/template_thumbnails.php(47): get_the_post_thumbnail(Object(WP_Post), 'thumbnail', Array) #5 /htdocs/citypop-blog/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php(1654): include('/htdocs/citypop...') #6 /htdocs/citypop-blog/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php(1854): YARPP->get_template_content(NULL, Array, true) #7 /htdocs/citypop-blog/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Block.php(115): YARPP->display_demo_related(Array, false) #8 /htdocs/citypop-blog/wp-includes/class-wp-block.php(258): YARPP_Block->yarpp_block_render_callback(Array, '', Object(WP_Block)) #9 /htdocs/citypop-blog/wp-includes/blocks.php(1484): WP_Block->render() #10 /htdocs/citypop-blog/wp-includes/blocks.php(1522): render_block(Array) #11 /htdocs/citypop-blog/wp-includes/class-wp-hook.php(326): do_blocks('<!-- wp:yarpp/y...') #12 /htdocs/citypop-blog/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:yarpp/y...', Array) #13 /htdocs/citypop-blog/wp-includes/widgets/class-wp-widget-block.php(77): apply_filters('widget_block_co...', '<!-- wp:yarpp/y...', Array, Object(WP_Widget_Block)) #14 /htdocs/citypop-blog/wp-includes/class-wp-widget.php(394): WP_Widget_Block->widget(Array, Array) #15 /htdocs/citypop-blog/wp-includes/widgets.php(2026): WP_Widget->display_callback(Array, Array) #16 /htdocs/citypop-blog/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(697): wp_render_widget('block-10', 'sidebar-1') #17 /htdocs/citypop-blog/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(154): WP_REST_Widgets_Controller->prepare_item_for_response(Array, Object(WP_REST_Request)) #18 /htdocs/citypop-blog/wp-includes/rest-api/class-wp-rest-server.php(1193): WP_REST_Widgets_Controller->get_items(Object(WP_REST_Request)) #19 /htdocs/citypop-blog/wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/widgets', Array, NULL) #20 /htdocs/citypop-blog/wp-includes/rest-api.php(551): WP_REST_Server->dispatch(Object(WP_REST_Request)) #21 /htdocs/citypop-blog/wp-includes/rest-api.php(2918): rest_do_request(Object(WP_REST_Request)) #22 [internal function]: rest_preload_api_request(Array, '/wp/v2/widgets?...') #23 /htdocs/citypop-blog/wp-includes/block-editor.php(750): array_reduce(Array, 'rest_preload_ap...', Array) #24 /htdocs/citypop-blog/wp-admin/widgets-form-blocks.php(26): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context)) #25 /htdocs/citypop-blog/wp-admin/widgets.php(32): require('/htdocs/citypop...') #26 {main} thrown in /htdocs/citypop-blog/wp-content/plugins/slim-seo/src/ImagesAlt.php on line 22
I Think the final line is the most important :
26 {main} thrown in?/htdocs/citypop-blog/wp-content/plugins/slim-seo/src/ImagesAlt.php?on line?22
WordPress version 6.4.2
Thème actif?: Music Zone (version 1.0.7)
Extension actuelle?: Slim SEO (version 3.22.5)
PHP version 8.2.14I hope this will help
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Error on widgets.php’ is closed to new replies.