Updated Wordpress, now getting errors on site

I just recently updated my Wordpress, theme, and plugins, and am now getting these two errors on top of the homepage and pages page.

Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /var/www/html/wp-includes/functions.php on line 4773

and the pages page,

Notice: register_rest_route was called incorrectly. The REST API route definition for pum/v1/analytics is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225

I also did this in another website but did not get any errors, the sites are built with the same theme/plugins.

Topic homepage pages updates Wordpress

Category Web


I suspect this is already resolved in the plugin, but I added a check for the new function in wp-content/plugins/fusion-builder/shortcodes/fusion-image.php:285.

if ( ! empty( $image_id ) &&  function_exists( 'wp_image_add_srcset_and_sizes' ) )  {
    $content = wp_image_add_srcset_and_sizes(
        $content,
        wp_get_attachment_metadata( (int) $image_id ),
        $image_id );
} elseif ( function_exists( 'wp_make_content_images_responsive' ) ) {
        $content = wp_make_content_images_responsive( $content );
}

If nothing is broken, in your wp-config.php put this:

define( 'WP_DEBUG', false );
define( 'WP_DEBUG_DISPLAY', false );

to get rid of the error messages

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.