WordPress.org

Ready to get started?Download WordPress

Forums

parse error with wp-config.php (12 posts)

  1. andrebe1
    Member
    Posted 3 years ago #

    I have several wp installs as add on sites on one domain and they all now give me (Parse error: syntax error, unexpected '<' in /home/andreb01/public_html/properties/wp-config.php on line 91) and I can't access admin or site from browser. I didn't make any changes resently and last I checked they were all up fine.
    Any Ideas whats causing this?
    Thanks

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried re-uploading fresh copies of the wp-config.php files?

  3. andrebe1
    Member
    Posted 3 years ago #

    No I haven't but I'll try it.
    Thanks.

  4. andrebe1
    Member
    Posted 3 years ago #

    I just realised, I don't know how to proceed. Do I get a new config files and change the data base info or just upload a new config file?
    I can istall wp with Fantastico and that's about it. Maybe I'm in over my head.

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    Download a copy of your current version of WordPress to your computer. Open the archive and extract the wp-config-sample.php file. For each site, open the file in a plain text editor, add the database connection details required and save the amended file as wp-config.php.

    Next, FTP into your site (or use whatever file management application your host provides) and rename the existing wp-config.php file on the server for each site to wp-config-old.php. Then upload your newly saved version.

  6. andrebe1
    Member
    Posted 3 years ago #

    After uploading a new config file,
    Parse error: syntax error, unexpected $end in /home/andreb01/public_html/cherrythighs.com/wp-config.php on line 1
    This is the new Parse error I received when trying to view in my browser.
    I wish I knew more about coding!!

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    Looks like you removed something you shouldn't have in wp-config.php. Perhaps the opening <?php statement on the first line?

  8. andrebe1
    Member
    Posted 3 years ago #

    I checked two different sites and they have the same problem. The <?php is there.

  9. esmi
    Forum Moderator
    Posted 3 years ago #

    Well, something is missing at the top of the wp-config.php files. Try re-creating them again and this time be very careful not to delete any punctuation such as semi-colons or single quotes.

  10. andrebe1
    Member
    Posted 3 years ago #

    I have Parse error: syntax error, unexpected '<' in /wp-config.php on line 91.
    this has happened several times. I have tried deleting the theme and starting from scratch, put in some content and it works fine for a couple days then back to this error again.
    Is this a hack?
    I would like to show line 91 but it is too large to place here.
    Can anyone help?

  11. andrebe1
    Member
    Posted 3 years ago #

    Here I am again. I tried to change the website location in my themes options in admin mode and, Got Parse error: syntax error, unexpected '}' in /home/andreb01/public_html/nationalface.com/nationalface.com/wp-content/themes/ConservativeAmericanWP/functions.php on line 61.
    If I post the contents of that line can someone debug it?
    Can Dream Weaver correct such problems as this?

  12. andrebe1
    Member
    Posted 3 years ago #

    Hi again,
    can someone look at this wp theme and find out why it keeps doing this. I really would like to keep this design but it's never completely functional.
    Has anyone else used this theme and had problems?
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic