title: PHP - Parse error: syntax error, unexpected ')'
body: <p>recently I have gotten this error:</p>
  
  <p><code>Parse error: syntax error, unexpected ')' in /home/aps/public_html/wp-content/themes/Valor/functions.php on line 54</code></p>
  
  <p>I have looked at this line and found no problems, and ran it through a PHP error code finder.</p>
  
  <p>Just to be sure, I copied the code from the functions.php I have saved on my computer
  into the editor and it still happens.</p>
  
  <p>I am using wordpress and the Valor theme.</p>
  
  <p>I had been editing these lines when it happened:</p>
  
  <pre><code>if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
      add_theme_support( 'post-thumbnails' );
      add_image_size( 'game_feature', 1000, 500, true );
      add_image_size( 'story_feature', 150, 100, true );
      add_image_size( 'video_feature', 150, 200, true );
      add_image_size( 'review_thumb', 120, 80, true );
      add_image_size( 'post_image', 660, 350, true );
  </code></pre>
  
  <p>I changed all the 'true' to 'false', because I wanted the thumbnails on my site to fit
  into the box, rather than be cropped. This didn't do anything so instead I just took
  away 'true' and 'false' entirely, leaving a blank space.</p>
  
  <p>It was after I did this and hit 'save' that the error came up. I quickly went back and changed them all to 'true' in order to undo the error, but from what you can see and from what I have already told you, it didn't work, despite my efforts.</p>
  
  <p>I'm very new to PHP, and the only explanation I can think of is that by deleting those values it caused another .php file to change something, but like I said, I'm new.</p>
  
  <p>Line 54 is: <code>add_image_size( 'game_feature', 1000, 500, true );</code></p>