Title: Parse error: syntax error
Last modified: February 14, 2018

---

# Parse error: syntax error

 *  [tipsntrick](https://wordpress.org/support/users/tipsntrick/)
 * (@tipsntrick)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-149/)
 * I am getting an error
 * > Parse error: syntax error, unexpected ‘*’ in /home2/wagfmg0ad3gm/public_html/
   > wp-config.php on line 2
 * i just change
 * > define(‘WP_DEBUG’, false);
 * to
 * > ini_set(‘display_errors’,’Off’);
   >  ini_set(‘error_reporting’, E_ALL ); define(‘
   > WP_DEBUG’, false); define(‘WP_DEBUG_DISPLAY’, false);
 * to disable wp warning on dashboard.
 * Now again i removed that code but still getting same error.
    how can i fix this?
    -  This topic was modified 8 years, 4 months ago by [tipsntrick](https://wordpress.org/support/users/tipsntrick/).
    -  This topic was modified 8 years, 4 months ago by [tipsntrick](https://wordpress.org/support/users/tipsntrick/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-149/#post-9821670)
 * Try this:
    @ini_set( ‘display_errors’, ‘Off’ ); define( ‘WP_DEBUG’, true ); define(‘
   WP_DEBUG’, false ); define( ‘WP_DEBUG_DISPLAY’, false );
 * When WP_DEBUG is defined as true, ‘error_reporting’ will be set to E_ALL by WordPress
   regardless of anything you try to set in wp-config.php.
    See [https://codex.wordpress.org/Editing_wp-config.php](https://codex.wordpress.org/Editing_wp-config.php)
 *  [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/)
 * (@lcf)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-149/#post-9822385)
 * Just a thought. Did you accidentally edited the comment part of wp-config.php?
 * You can compare yours to the wp-config-sample.php [https://core.trac.wordpress.org/browser/tags/4.9.1/wp-config-sample.php](https://core.trac.wordpress.org/browser/tags/4.9.1/wp-config-sample.php)

Viewing 2 replies - 1 through 2 (of 2 total)

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-149/#post-9822385)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
