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 trialDeMarcus Rush
5,378 PointsMigrate 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
12,782 PointsIf 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
5,378 PointsI can't seem to find it. Here is line 36 from the config file.
define(‘WP_HOME’, ‘http://swavie.com’);
Andrew Chappell
12,782 PointsWell 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
5,378 PointsNow I got it to work by adding www instead of http://, which is weird, but now the site is not displaying correctly.