Catchable fatal error: Object of class WP_Error could not be converted to string
-
I’ve got this error using wp-phpbb bridge
Catchable fatal error: Object of class WP_Error could not be converted to string in /var/www/name/data/www/site.ru/wp-includes/formatting.php on line 2822/** * Properly strip all HTML tags including script and style * * @since 2.9.0 * * @param string $string String containing HTML tags * @param bool $remove_breaks optional Whether to remove left over line breaks and white space chars * @return string The processed string. */ function wp_strip_all_tags($string, $remove_breaks = false) { 2822--> $string = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string ); $string = strip_tags($string); if ( $remove_breaks ) $string = preg_replace('/[\r\n\t ]+/', ' ', $string); return trim($string); }
WPMU 3.1.2 + BuddyPress 1.2.8 + phpBB 3.0.7
- The topic ‘Catchable fatal error: Object of class WP_Error could not be converted to string’ is closed to new replies.