title: PHP Warning: A non-numeric value encountered Error
body: <p>I am getting this <strong>error</strong> on log file:</p>
  <blockquote>
  <p>A non-numeric value encountered in /wp-content/themes/myarcadetheme/functions.php on line 1279</p>
  </blockquote>
  <p>This is the code within <strong>functions.php</strong>:</p>
  <pre><code>function myarcadetheme_game_height( $height ) {
    global $post;
  
    if ( ! isset( $post-&gt;ID ) ) {
      return $height;
    }
  
    $width = get_post_meta( $post-&gt;ID, 'mabp_width', true );
  
    $ratio = $width / $height;
  
    $new_width = myrcadetheme_game_width( $width );
  
    $height = $new_width / $ratio;
  
    return $height;
  }
  add_filter( 'myarcade_game_height', 'myarcadetheme_game_height' );
  </code></pre>
  <p>This is the code found on line 1279.</p>
  <pre><code>$ratio = $width / $height;
  </code></pre>
  <p>Please help.</p>