title: Warning: strpos() expects parameter 1 to be string, object given in
body: <p>I have this problem.</p>
  <blockquote>
  <p>Warning: strpos() expects parameter 1 to be string, object given in /home/faizalia/public_html/wp-includes/post.php on line 277</p>
  <p>Warning: preg_match() expects parameter 2 to be string, object given in /home/faizalia/public_html/wp-includes/post.php on line 277</p>
  <p>Catchable fatal error: Object of class WP_Error could not be converted to string in /home/faizalia/public_html/wp-includes/post.php on line 278</p>
  </blockquote>
  <p>Line 277 :</p>
  <pre><code>if ( $file &amp;&amp; 0 !== strpos( $file, '/' ) &amp;&amp; ! preg_match( '|^.:\\\|', $file ) &amp;&amp; ( ( $uploads = wp_get_upload_dir() ) &amp;&amp; false === $uploads['error'] ) ) {
  </code></pre>
  <p>Line 278:</p>
  <pre><code>$file = $uploads['basedir'] . &quot;/$file&quot;;
  </code></pre>
  <p>Any solutions?</p>