admin管理员组

文章数量:1122826

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.

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.

Share Improve this question asked Aug 13, 2020 at 19:44 Sadib AhasanSadib Ahasan 111 silver badge2 bronze badges 2
  • Looks like one site is printing the error messages in the PHP error log, and the other is printing them to the browser output. it still needs fixing eitherway but that's why it only happens on 1 site, really it's happening on both they're just configured to handle error output differently – Tom J Nowell Commented Aug 13, 2020 at 20:56
  • 3 For the REST API route issue, iis pum a plugin? For wp_make_content_images it's difficult to answer without knowing more about the code that uses that function. Generally it sounds like your plugins and theme vendor need to release an update. In the meantime, don't print errors to the browser! Print them to the PHP error log – Tom J Nowell Commented Aug 13, 2020 at 20:58
Add a comment  | 

2 Answers 2

Reset to default 0

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

本文标签: pagesUpdated Wordpressnow getting errors on site