• Resolved bandam

    (@bandam)


    Hello everyone,

    I recently moved my hosting from 1and1 to Hostgator.

    After transferring the content and waiting for DNS propagation I made a huge mistake and disassociated the MySQL user from the database, breaking my website as wp-config couldn’t access the database anymore.

    Since at first I thought I had deleted the MySQL user, and not just disassociated it, I made everything worse: I created a new user and edited the wp-config file through ftp to point to the new MySQL user & password.

    It didn’t work, as I got a Parse Error on line 91 (though there were only 90 lines of code). I tried creating a new wp-config out of the wp-config-sample and I got the same error. I downloaded a fresh wp-config from wordpress.org and now I get a Parse Error on line 95:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/patucon/public_html/wp-config.php on line 95

    This is the wp-config file I currently have:

    http://pastebin.com/KDE26drF

    And the broken website is http://www.audiofuga.com

    I have looked up this t_constant_encapsed_string error and found it’s about a lack of concatenation (.), but I pored over the other wp-config files in my other sites yesterday and couldn’t find a missing (.) anywhere.

    Thank you so much to anyone who can give me a hand, at this point I’m at a loss at what else to do.

Viewing 1 replies (of 1 total)
  • Thread Starter bandam

    (@bandam)

    Solved! Looking at it in the morning helped. 🙂

    Part of the code was duplicated at the bottom.

    Lesson learned: if it’s been a hard day at work, do not fiddle with PHP.

Viewing 1 replies (of 1 total)
  • The topic ‘Parse Error T_CONSTANT_ENCAPSED_STRING in fresh wp-config file’ is closed to new replies.