Problem transferring a WP blog.....

by 3 replies
4
I am trying to transfer a blog for the first time and after, literally, 8 hours of trying, I am about to cry.

My problem is that when I go to the site, I get this error:

Parse error: syntax error, unexpected $end in /home/dforman/public_html/healthyweightlosshub.com/wp-config.php on line 1

I did everything I was supposed to. Backed up the database, downloaded all of the files onto my computer.

Then, I created a new database at the new host. The only thing I had to do different was name it wrdp2 instead of wrdp1 like it was on the old host.

I'm thinking this is my problem.

In the wp-config file, I input wrdp2 as the name, and entered all the other info. I did this in NOTEPAD. I mention this, because every time I save the file after making changes, it loses all formatting, meaning all of the text in the file is in one big lump paragraph, rather than going line by line as it started out.

I have copied and pasted the text from the sample wp-config about 100 times, entered the database info, and then saved it, only to upload it and have that error message come up.

Is there anything ANYONE can tell me to help me fix this?

Thanks.
#programming #blog #problem #transferring
  • Have You verified that all the files uploaded successfully? Looks like there's a file missing there. Also take a look at the path of your blog as well in general setting.
  • Its sounds like one of the variables in the wp-config.php may not be surrounded by single quotes ( the ' symbol)

    Make sure its not one of the "angled" quote marks, but the "vertical" quote

    Hope this helps

    Bruce
  • On the new host are you sure that "wrdp2" is really the database name? Some hosts preceed the database name with the name of the user, i.e. "user_wrdp2" when the database is created.

    It might help if you used a real text editor instead of Notepad - both PS Pad and Notepad++ are free and are so much better for editing PHP files.

    Bill

Next Topics on Trending Feed