admin管理员组

文章数量:1415484

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
Add a comment  | 

1 Answer 1

Reset to default 0

i think you should overwrite old file with NEW WORDPRESS file (formatting.php)

本文标签: fatal errorunable to edit any page of my wordpress website