WordPress.org

Ready to get started?Download WordPress

Forums

Comments Broken Please Help (5 posts)

  1. Truman
    Member
    Posted 6 years ago #

    My site is here. If anyone tries to post a comment on any articles, they get this error message.
    "Warning: main(../../../wp-config.php): failed to open stream: No such file or directory in /home/content/t/l/k/tlkain/html/wp-content/themes/light/light/comments-ajax.php on line 2

    Fatal error: main(): Failed opening required '../../../wp-config.php' (include_path='.:/usr/local/lib/php') in /home/content/t/l/k/tlkain/html/wp-content/themes/light/light/comments-ajax.php on line 2"

    Someone please help me out.

  2. Truman
    Member
    Posted 6 years ago #

    bump. Someone please help me out.

  3. moshu
    Member
    Posted 6 years ago #

    Disable that plugin mentioned in the error message.

  4. laslo
    Member
    Posted 6 years ago #

    It's not a plugin, it's a PHP withing the theme folder.
    I have the same problem, ajax comments were working ok til now, it's broken.
    help anybody?

  5. TomBrownsword
    Member
    Posted 6 years ago #

    Here's how I fixed it.

    1. Go into your Control Panel and select a different theme (it will be temporary).

    2. Using a FTP client, log in to your website.

    3. Go to wp-content/themes.

    4. Re-name the "light" folder to something else. Let's say you named it "asdf" for this example (clever, eh?).

    5. Go into "asdf". The folder "light" will be there.

    6. Move the "light" folder up one level (so that it is included in wp-content/themes).

    7. Go up one level.

    8. Delete "asdf".

    9. Re-activate the theme.

    All should be well.

    I had the same problem and this fixed it.

    HTH,
    Tom

Topic Closed

This topic has been closed to new replies.

About this Topic