Catchable fatal error: Object of class WP_Post could not be converted to string
-
Hello !
Great plugin and very happy to use it ! Today I’v installed another plugin “Rich Reviews”, which allow people to submit reviews on the website.
After submiting it, instead of the success message, I get this error :
Catchable fatal error: Object of class WP_Post could not be converted to string in /var/www/vhosts/…/wp-includes/formatting.php on line 1025
Based on the notepad ++, the line 1025 is : $string = (string) $string;
from the function that starts this way :function wp_check_invalid_utf8( $string, $strip = false ) {
$string = (string) $string;if ( 0 === strlen( $string ) ) {
return ”;
}So these are inside the formatting.php in the wp-includes, which is a core wordpress file.
So first thing first, I desactivated all the plugins to see if nothing was conflicting, and I noticed that Tracking Code Manager was the one responsible for this error ! I know that there is an error with WP SUper cache as well, but even with this one desactivated, the error stayed.
I tried even to desactivate all my codes, exclude them from the page that gets the error, still. Only when the plugin is desactivated, it behaves well.
So I believe something must be wrong, any idea of how to adress this issue ?
Thank you very much !
- The topic ‘Catchable fatal error: Object of class WP_Post could not be converted to string’ is closed to new replies.