Title: Wp-settings giving syntax error
Last modified: March 9, 2021

---

# Wp-settings giving syntax error

 *  [shubham604](https://wordpress.org/support/users/shubham604/)
 * (@shubham604)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp-settings-giving-syntax-error/)
 * I am getting this error on homepage “Parse error: syntax error, unexpected ‘$
   wp_rewrite’ (T_VARIABLE) in /home/content/80/7387980/html/wp-settings.php on 
   line 472”
 * attaching WP-SETTINGS code here:
 * do_action( ‘wp_loaded’ ); —— Line 471
    ite $wp_rewrite ——-Line 472 * [@since](https://wordpress.org/support/users/since/)
   1.5.0 ——-Line 473 */ ——-Line 474 $GLOBALS[‘wp_rewrite’] = new WP_Rewrite(); ————
   Line475
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-settings-giving-syntax-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp-settings-giving-syntax-error/#post-14156681)
 * Try [manually resetting your plugins](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, access your server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel (consult your hosting
   provider’s documentation for specifics on these), navigate to /wp-content/themes/
   and rename the directory of your currently active theme. This will force the 
   default theme to activate and hopefully rule-out a theme-specific issue (theme
   functions can interfere like plugins).

Viewing 1 replies (of 1 total)

The topic ‘Wp-settings giving syntax error’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [troubleshoot](https://wordpress.org/support/topic-tag/troubleshoot/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/wp-settings-giving-syntax-error/#post-14156681)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
