Title: Parse error: syntax error, unexpected T_STRING
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected T_STRING

 *  Resolved [coobakai](https://wordpress.org/support/users/coobakai/)
 * (@coobakai)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-6/)
 * Hi,
 * I’m trying to install WordPress, but when I navigate to wp-admin/install.php 
   I’m getting this error message:
 * Parse error: syntax error, unexpected T_STRING in /home/matthew/public_html/wp-
   admin/includes/plugin.php on line 540
 * I thought it might be a corrupted file, so I downloaded a second copy of WP and
   uploaded that version, but I’m still getting the same message.
 * If anyone can help it would be greatly appreciated!
 * Here’s the code… Line 540 is the closing curly brackets:
 * function _wp_call_all_hook($args) {
    global $wp_filter;
 *  reset( $wp_filter[‘all’] );
    do { foreach( (array) current($wp_filter[‘all’])
   as $the_ ) if ( !is_null($the_[‘function’]) ) call_user_func_array($the_[‘function’],
   $args);
 *  } while ( next($wp_filter[‘all’]) !== false );
    }

Viewing 1 replies (of 1 total)

 *  Thread Starter [coobakai](https://wordpress.org/support/users/coobakai/)
 * (@coobakai)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-6/#post-826346)
 * Strangely enough, I just checked the install again, and it fixed itself.

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error, unexpected T_STRING’ is closed to new replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [plugin.php](https://wordpress.org/support/topic-tag/plugin-php/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [unexpected T_STRING](https://wordpress.org/support/topic-tag/unexpected-t_string/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 1 participant
 * Last reply from: [coobakai](https://wordpress.org/support/users/coobakai/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-6/#post-826346)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
