Title: Multisite Switcher Error?
Last modified: August 22, 2016

---

# Multisite Switcher Error?

 *  Resolved [HJ](https://wordpress.org/support/users/coach-henk/)
 * (@coach-henk)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/multisite-switcher-error/)
 * The main language on the website shows fine. If I switch to the seconde language
   of the page I get a blank page with the error:
 * Warning: preg_match() expects parameter 2 to be string, object given in /home/
   website/public_html/wp-includes/post-template.php on line 254
 * Catchable fatal error: Object of class WP_Post could not be converted to string
   in /home/website/public_html/wp-includes/post-template.php on line 272
 * The code is:
 *     ```
       $content = $pages[$page - 1];
       LINE 254	if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) {
       		$content = explode( $matches[0], $content, 2 );
       		if ( ! empty( $matches[1] ) && ! empty( $more_link_text ) )
       			$more_link_text = strip_tags( wp_kses_no_null( trim( $matches[1] ) ) );
   
       		$has_teaser = true;
       	} else {
       		$content = array( $content );
       	}
   
       	if ( false !== strpos( $post->post_content, '<!--noteaser-->' ) && ( ! $multipage || $page == 1 ) )
       		$strip_teaser = true;
   
       	$teaser = $content[0];
   
       if ( $more && $strip_teaser && $has_teaser )
       		$teaser = '';
   
       LINE 272	$output .= $teaser;
       ```
   
 * If I comment this codeblock out I don’t see the content in neither language, 
   but all the rest is showing on both languages.
 * Is this a problem of the multisite language switcher?
 * [https://wordpress.org/plugins/multisite-language-switcher/](https://wordpress.org/plugins/multisite-language-switcher/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * (@realloc)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/multisite-switcher-error/#post-5740291)
 * Sorry, but I have no idea what the switcher can or has to do here…
 *  Thread Starter [HJ](https://wordpress.org/support/users/coach-henk/)
 * (@coach-henk)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/multisite-switcher-error/#post-5740292)
 * It was jetpack causing the issue. Thx for your reply.
 *  Plugin Author [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * (@realloc)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/multisite-switcher-error/#post-5740294)
 * OK, thanks for pointing that out.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multisite Switcher Error?’ is closed to new replies.

 * ![](https://ps.w.org/multisite-language-switcher/assets/icon-256x256.png?rev=
   2793358)
 * [Multisite Language Switcher](https://wordpress.org/plugins/multisite-language-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multisite-language-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multisite-language-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/multisite-language-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multisite-language-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multisite-language-switcher/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/multisite-switcher-error/#post-5740294)
 * Status: resolved