• Resolved amarty85

    (@amarty85)


    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’,’https://howardsternforever.com’);
    define(‘WP_SITEURL’,’https://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

    (@amarty85)

    Not sure why the “&#8217” showed up at the end of the link but that is not in the code.

    I believe your right quotation on ‘https://howardsternforever.com’ 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

    I would retype all of the single quotation marks just to make sure.

    Thread Starter amarty85

    (@amarty85)

    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.