Title: PHP Parse error: syntax error, unexpected &#8216;/&#8217;
Last modified: August 22, 2020

---

# PHP Parse error: syntax error, unexpected ‘/’

 *  Resolved [dudewithaproblem](https://wordpress.org/support/users/dudewithaproblem/)
 * (@dudewithaproblem)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-8/)
 * Hey everyone, im faceing a problem here yesterday when i tried to configure background
   updates with WP_AUTO_UPDATE_CORE and saved the site crashed and i got a http 
   error 500
    i put the code back to its original state but now if i check my logs
   is see this:
 * PHP Parse error: syntax error, unexpected ‘/’, expecting end of file in …. wp-
   config.php on line 21
 * (here the line code of wp-config.php)
    [https://ibb.co/tQvp77R](https://ibb.co/tQvp77R)
 * the next second error it gives is
    AH01215: PHP Parse error: syntax error, unexpected‘/’,
   expecting end of file in ..wp-config.php on line 21: .. wp-index.php
 * AH01215: :index.php
 * (here the index.php line of code)
    [https://ibb.co/jh1bhdY](https://ibb.co/jh1bhdY)
 * is there a way to resolve this?
    or should i contact my domainhost?
 * thanks in advance!

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-8/#post-13297713)
 * Where you see `/ **` and `** /` on the MySQL line, it should be `/**` and `**/`.
 * Valid comment tags for PHP are `//` (per line) and `/*` terminated with `*/`.
 *  Thread Starter [dudewithaproblem](https://wordpress.org/support/users/dudewithaproblem/)
 * (@dudewithaproblem)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-8/#post-13297727)
 * thanks for the quick help!
    that was the problem indeed!
 *  [Mike Clarke](https://wordpress.org/support/users/rawthey/)
 * (@rawthey)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-8/#post-13297731)
 * Line 21 in wp-config.php contains a erroneous space character, it should be:
 * /** The name of the database for WordPress */

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Mike Clarke](https://wordpress.org/support/users/rawthey/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-8/#post-13297731)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
