title: PHP Warning: strpos() expects parameter 1 to be string, array given
body: <p>In this <a href="https://stackoverflow.com/questions/21901769/warning-strpos-expects-parameter-1-to-be-string-resource">question</a>, I see where the <code>$handle = @fopen($thumb, 'r');</code> was changed to <code>$handle = @file_get_contents($thumb);</code> because he needed to use file_get_contents for a string.  </p>
  
  <p>I am getting the same error but I do not see a fopen() element that needs to be changed?  Where does this need to occur?</p>
  
  <pre><code>} elseif( strpos($post_id, 'user_') !== false ) {
  
      $user_id = str_replace('user_', '', $post_id);
      $user_id = intval( $user_id );
  
      $v = get_user_meta( $user_id, $field['name'], false );
  
      // value is an array
      if( isset($v[0]) ) {
  
          $value = $v[0];
  
      }
  </code></pre>