• Resolved jclthei

    (@jclthei)


    I get this error when I try to install WordPress:

    Parse error: syntax error, unexpected ‘$table_prefix’ (T_VARIABLE), expecting identifier (T_STRING) in /Applications/XAMPP/xamppfiles/htdocs/wp-config.php on line 68

    Please help and thank you in advance.

    Here are the lines with errors

    Line 68: $table_prefix = “wp_”;

    Line 92: if ( !defined(‘ABSPATH’) )\

    Line 95: require_once(ABSPATH . ‘wp-settings.php’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m guessing that you updated the wp-config.php file manually with your database connection details?

    Check the line above line 68 – and I mean the last line of code, not any blank lines or comments. I’d be 99% sure that you’ve got an error on the line above and that’s causing the problem. The times that I’ve seen this before have been when I’ve forgotten to have the trailing ; at the end of the line above.

    Thread Starter jclthei

    (@jclthei)

    I deleted the WordPress folder within XAMPP, and I was able to install. I have no idea why this made it possible to install, but I’m up and running WordPress now.

    Thank you for helping.

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

The topic ‘Trying to install WordPress but get this Parse error’ is closed to new replies.