Title: PHP Parse error &#8211; Syntax error
Last modified: April 22, 2020

---

# PHP Parse error – Syntax error

 *  Resolved [amarty85](https://wordpress.org/support/users/amarty85/)
 * (@amarty85)
 * [6 years ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-5/)
 * Hello,
 * When I go to my website I get an http error 500, after checking the error logs
   I see:
 * PHP Parse error: syntax error, unexpected’:’, expecting ‘)’ in my wp_config.php
   file on line 70
 * $table_prefix = ‘wp_’;
 * define(‘WP_DEBUG’, true);
    define(‘WP_HOME’,’[http://howardsternforever.com&#8217](http://howardsternforever.com&#8217););
   define(‘WP_SITEURL’,’http://howardsternforever.com’);
 * I recently had to rebuld my apache server and upgrade cpanel, it is a compatibility
   issue? Do I need to change my version of php I’m using?

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

 *  Thread Starter [amarty85](https://wordpress.org/support/users/amarty85/)
 * (@amarty85)
 * [6 years ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-5/#post-12717049)
 * Not sure why the “&#8217” showed up at the end of the link but that is not in
   the code.
 *  [engineeringsnipits](https://wordpress.org/support/users/engineeringsnipits/)
 * (@engineeringsnipits)
 * [6 years ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-5/#post-12717165)
 * I believe your right quotation on ‘[http://howardsternforever.com&#8217](http://howardsternforever.com&#8217);
   is your issue. There are three types of single quotes the standard single quote,
   a left single quotation mark, and a right single quotation mark.
 * Some text editors will take the standard single quote (apostrophe) and convert
   it to either the left or right single quote depending on it’s location in respect
   to a word. Your web server probably doesn’t “see” the right quote as the end 
   of the string.
 * If you ever see &# followed by a number, it is HTML converting the character 
   into a character code. In the case of 8217 it is the right single quote:
    [https://www.codetable.net/decimal/8217](https://www.codetable.net/decimal/8217)
 * I would retype all of the single quotation marks just to make sure.
    -  This reply was modified 6 years ago by [engineeringsnipits](https://wordpress.org/support/users/engineeringsnipits/).
 *  Thread Starter [amarty85](https://wordpress.org/support/users/amarty85/)
 * (@amarty85)
 * [6 years ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-5/#post-12719928)
 * I actually made it work by just removing the two lines completely, but thank 
   you!

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

The topic ‘PHP Parse error – Syntax error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [amarty85](https://wordpress.org/support/users/amarty85/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-5/#post-12719928)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
