Error Message
-
Hey there. I get this error in the backend:
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/worldfoodtravel/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Rewrite.php on line 198
This is line 198:
// When creating the link we need to re-do the Percent Placeholder
$permalink = str_replace( self::PERCENT_PLACEHOLDER, ‘%’, $permalink );if ( ! $this->is_wpml_active() || empty( $_GET[‘lang’] ) ) {
return $permalink;
}return add_query_arg( array( ‘lang’ => $_GET[‘lang’] ), $permalink );
}
- The topic ‘Error Message’ is closed to new replies.