Parse error: syntax error, unexpected '';' (T_CONSTANT_ENCAPSED_STRING) in /app/public/wp-config.php on line 73

Hey,

I dropped a zip file of an existing WP Content file and SQL database into Local and the site is created.

I’m getting this error: Parse error: syntax error, unexpected ‘’;’ (T_CONSTANT_ENCAPSED_STRING) in /app/public/wp-config.php on line 73

Here’s what I have in the wp_config file between lines 71 > 77…

/* Inserted by Local by Flywheel See http://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy */

if (isset($_SERVER[‘HTTP_X_FORWARDED_PROTO’]) && $_SERVER[‘HTTP_X_FORWARDED_PROTO’] === ‘https’) {
$_SERVER[‘HTTPS’] = ‘on’;
}

/* That’s all, stop editing! Happy blogging. */

Can you see the issue?

Cheers

Dean

Ok I have pin pointed the problem - it was incorrect syntax in $table_prefix - but now that’s resolved it looks like it is directing to my live site.

Updates URL in wp_options but it still redirects to live site. Any help please

Hi Dean,

If you’ve updated wp_options I would try going to the site in Local and enabling Dev Mode if the site is using the Preferred environment.

Also, redirects can be cached pretty hard so I would also try opening the site in a different browser to determine if it’s a caching thing or not.

1 Like