title: Wordpress error in formatting.php
body: <p>Since I moved the website to another server I'm getting this error on the frontend where that categories are:</p>
  
  <pre><code>Warning: preg_match() expects parameter 2 to be string, object given in /public/sites/www.siteurl.nl/wp-includes/formatting.php on line 1529
  
  Warning: strip_tags() expects parameter 1 to be string, object given in /public/sites/www.siteurl.nl/wp-includes/formatting.php on line 1981
  </code></pre>
  
  <p>Code on line 1529:</p>
  
  <pre><code>if ( !preg_match('/[\x80-\xff]/', $string) )
  </code></pre>
  
  <p>Code on line 1981:</p>
  
  <pre><code>$title = strip_tags($title);
  </code></pre>
  
  <p>What is this error and how can this be solved?</p>
  
  <p>Update:</p>
  
  <p>This is the frontend: </p>
  
  <p><a href="https://i.stack.imgur.com/708Dr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/708Dr.png" alt="enter image description here"></a></p>
  
  <p>It's showing categories from the jobs that are on the site. Which I can select on the backend side:</p>
  
  <p><a href="https://i.stack.imgur.com/Rgt3d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rgt3d.png" alt="enter image description here"></a></p>
  
  <p>Regards,
  Robert</p>