I'm working on a website using ampps local server. when I try to edit any page this error occurs.
Catchable fatal error: Object of class WP_Error could not be converted to string in /Applications/AMPPS/www/wp-includes/formatting.php on line 1111
This is the line on formatting.php
line 1110 function wp_check_invalid_utf8( $string, $strip = false ) { line 1111 $string = (string) $string;
I'm working on a website using ampps local server. when I try to edit any page this error occurs.
Catchable fatal error: Object of class WP_Error could not be converted to string in /Applications/AMPPS/www/wp-includes/formatting.php on line 1111
This is the line on formatting.php
line 1110 function wp_check_invalid_utf8( $string, $strip = false ) { line 1111 $string = (string) $string;
Share Improve this question asked Aug 19, 2019 at 10:24 Saqib KhanSaqib Khan 31 bronze badge 1- Can you see what the error you're getting is, i.e. the contents of the WP_Error? You probably just need to fix that to save again. However it might make sense to modify wp_check_invalid_utf8 accept and pass through a WP_Error object, and if the source of the WP_Error and the route through wp_check_invalid_utf8 is all core code and not a third-party block or plugin then this is a WordPress bug. – Rup Commented Aug 19, 2019 at 10:36
1 Answer
Reset to default 0i think you should overwrite old file with NEW WORDPRESS file (formatting.php)
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745232913a4617759.html
评论列表(0条)