Forums

Fatal Error - Line 14 (6 posts)

  1. eastwindupchronicle
    Member
    Posted 1 year ago #

    I recently posted here trying to figure out how to get extra symbols out of my blog. I was advised to go into "wp-config.php" take out one line of code, and then overwrite the old file. I did so and now I'm getting:

    Fatal error: Call to undefined function: wp() in /home/jcyrusfa/public_html/eastwindupchronicle/wp-blog-header.php on line 14

    My guess is I did something wrong in the edit/overwrite process. Can anyone that can tell me how I can rewrite this file? I'm really at a loss as to what I can do. My blog has over a thousand posts with advertising. It's now been down 24 hours.

    Please? Do I need to recopy large parts of Wordpress 2.6.3? Is there a place I can download a "wp-config.php" file?

  2. eastwindupchronicle
    Member
    Posted 1 year ago #

    As I read more and more about this, I'm getting the feeling I've really messed my site up. Can someone please help me?

  3. whooami
    Member
    Posted 1 year ago #

    My guess is I did something wrong in the edit/overwrite process.

    Please? Do I need to recopy large parts of Wordpress 2.6.3? Is there a place I can download a "wp-config.php" file?

    See the big orange button on the top of the page you are on? The one that says DOWNLOAD? Click it. Download 2.6.3, extract the files, and compare that wp-config-sample.php to the wp-config.php on your site.

    If you edited one file, why would you need to mess with more than one???

  4. eastwindupchronicle
    Member
    Posted 1 year ago #

    Thanks Whooami. I did compares the two php files and now they are the same. It changed the error message, but my site now says:

    Error establishing a database connection

    which is different from the message prior. any ideas? sorry if I'm describing poorly...English is not my first language.

  5. eastwindupchronicle
    Member
    Posted 1 year ago #

    I've enlisted a computer programmer friend to help me with my blog crash, but even he's presently unable to fix. Any advice would be appreciated by he and I. He helped me write the following summary:

    In attempting to fix a problem with strange characters appearing as described here, I took the advice to remove

    define('DB_CHARSET', 'utf8');

    from the wp-config.php file. That, however, caused even more trouble (probably because there are a number of posts using Asian characters).

    When I went to repair the damage, though, things got further out of control, leading to a problem where I get the following error:

    Fatal error: Call to undefined function: wp() in /home/.../public_html/eastwindupchronicle/wp-blog-header.php on line 14

    I've confirmed that wp() does exist in the wp-included/functions.php file, which gets included from wp-settings.php. The only file I did anything with was wp-config.php.

    I did revert to the wp-configsample.php file, but it didn't have my database connectivity information, so I restored a backup wp-config.php in the end. Still, the wp() function is not being found.

    How can I find the wp() function again? Or might the problem be with something else missing in the restored wp-config.php?

  6. moshu
    Member
    Posted 1 year ago #

    1. If it is an older blog = upgrade , then you should remove BOTH the charset and collation lines from the wp-config!

    2. Reading more and posting less would help: on the main page of the topics
    http://wordpress.org/support/view/all-topics

    there is presently a similar thread with a possible solution; see:

    http://wordpress.org/support/topic/163778?replies=11

Topic Closed

This topic has been closed to new replies.

About this Topic