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 |2 Answers
Reset to default 0I 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
版权声明:本文标题:pages - Updated Wordpress, now getting errors on site 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736282507a1926664.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
pum
a plugin? Forwp_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