WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Not to Parse words but... (12 posts)

  1. LoriEhrlich
    Member
    Posted 8 years ago #

    What is a parse error?

    I went through the whole process of upgrading (using Filezilla) and took the "sample" out of the php file, also inserting my user name, password, etc. and now this is all I get on my website. h-e-e-e-l-p!!

    Parse error: parse error, unexpected T_STRING in /data/3/0/30/162/193162/user/195981/htdocs/wp-config.php on line 5

  2. Kafkaesqui

    Posted 8 years ago #

    To know what is causing the parse error, it helps to see the actual line of code (and often the few lines just above it) the error refers to.

    So what does your wp-config.php look like around that line? If it involves the DB_PASSWORD, please ****** it out in a reply.

  3. LoriEhrlich
    Member
    Posted 8 years ago #

    Thanks for the response and the *** reminder

    Is it this line?

    define('DB_PASSWORD'********');

    Is there supposed to be an extra apostrophe in there?

  4. Kafkaesqui

    Posted 8 years ago #

    Each define in your wp-config.php should be formatted like this:

    define('DB_PASSWORD', '********');

    Note the single-quotes around each term and the comma between the PHP "constant" (in this case, DB_PASSWORD) and the value you are defining for it.

  5. LoriEhrlich
    Member
    Posted 8 years ago #

    I think I just solved this (a minor miracle) but it bred a new problem:

    Fatal error: Call to undefined function: get_currentuserinfo() in /data/3/0/30/162/193162/user/195981/htdocs/wp-includes/kses.php on line 526

  6. LoriEhrlich
    Member
    Posted 8 years ago #

    I found the relevant code. Just not sure what it's looking for and in what form.

    get_currentuserinfo(); // set $current_user
    if (current_user_can('unfiltered_html') == false)
    kses_init_filters();

    Thanks again.

  7. Michael Bishop

    Posted 8 years ago #

    are you running any plugins that used user level? That has changed in 2.0, and thus, some plugins break things when upgrading.
    May need to disable all plugins, and activate one by one to discover the culprit.

  8. LoriEhrlich
    Member
    Posted 8 years ago #

    I deactivated all of my plugins before the upgrade, so none should be running.

  9. LoriEhrlich
    Member
    Posted 8 years ago #

    One more detail...That error message appears after I get the message "It doesn't appear you've installed Word Press. Try running install.php" Above is the message I get when I click on it.

  10. LoriEhrlich
    Member
    Posted 8 years ago #

    rutoh. Everyone visiting my blog is getting the same message. That can't be good. Help is greatly appreciated.

  11. Kafkaesqui

    Posted 8 years ago #

    get_currentuserinfo() is a function from pluggable-functions.php, found in the wp-includes/ directory. I would suggest you delete all files in that directory and upload them again (in case of missing or corrupted files).

  12. LoriEhrlich
    Member
    Posted 8 years ago #

    Done. All better.

    You rock!! Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic