Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Local WordPress Development Local WordPress Development Migrating WordPress from Local to Live Server

DeMarcus Rush
DeMarcus Rush
5,378 Points

Migrate WordPress blog

I'm trying to take my blog live, but every time I change the WP_SITEURL line on the config.php file to http://, i get this error

Parse error: syntax error, unexpected ':' in /home/dappermedia/public_html/wp-config.php on line 36

4 Answers

Andrew Chappell
Andrew Chappell
12,782 Points

If you look on line 36 in wp-config.php it's saying there's a colon there that shouldn't be there. Try and see if you can spot it or if you can't post line 36 and I'll see if I can spot it.

DeMarcus Rush
DeMarcus Rush
5,378 Points

I can't seem to find it. Here is line 36 from the config file.

define(β€˜WP_HOME’, β€˜http://swavie.com’);

Andrew Chappell
Andrew Chappell
12,782 Points

Well on that line everything looks ok. The only thing I can think of is that maybe you haven't added a closing semicolon ';' to one of the lines in that file and therefore the error is carrying on to that line. Check the whole file for possible syntax errors.

DeMarcus Rush
DeMarcus Rush
5,378 Points

Now I got it to work by adding www instead of http://, which is weird, but now the site is not displaying correctly.

www.swavie.com