Forums

[resolved] Upgraded to WP 3.1 - comment problem (31 posts)

  1. bookyeti
    Member
    Posted 1 year ago #

    Hi all,

    Today I upgraded to WordPress 3.1. Everything seems to be working fine. However, one problem - the comments.

    When anyone (including myself) submits a comment, they get a "Not Found: The requested document was not found on this server" error page. However, the comments are posted correctly.

    Any idea what could be causing this or how to fix it? (I'm not using any comment-related plug-ins.)

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Ten theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  3. keesiemeijer
    moderator
    Posted 1 year ago #

    oops, too late Esmi beat me to it

  4. bookyeti
    Member
    Posted 1 year ago #

    Thanks so much for your suggestions. I'll try it! :)

  5. bookyeti
    Member
    Posted 1 year ago #

    Hmm, tried posting a comment with all my plug-ins deactivated. Got the same error message. Out of interest, I hit "refresh". I got the following error page:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    I'll try the suggestion of switching to the other theme.

  6. bookyeti
    Member
    Posted 1 year ago #

    Okay... no error with the Twenty Ten theme activated. Hmm.

  7. keesiemeijer
    moderator
    Posted 1 year ago #

    Then the problem is with your theme not being 3.1 ready.

  8. bookyeti
    Member
    Posted 1 year ago #

    Yeah... that must be it. :(

    It was a theme I worked on from scratch. It's not going to be fun to try and find out what the culprit in it is. But thanks so much for your suggestions!

  9. keesiemeijer
    moderator
    Posted 1 year ago #

    Maybe compare your comments.php with twentyten's comments.php

  10. bookyeti
    Member
    Posted 1 year ago #

    Hehe, doing that now. Thanks! :)

  11. bookyeti
    Member
    Posted 1 year ago #

    by the way... is your nickname Dutch? :)

  12. keesiemeijer
    moderator
    Posted 1 year ago #

    Yes it is. you can try replacing your comments.php with the one from twentyten. but you have to have this function in your theme's functions.php: http://wordpress.pastebin.com/uscKNNP3
    This may break your site so backup your comments.php and functions.php

  13. bookyeti
    Member
    Posted 1 year ago #

    Ah neat! My hubby is Dutch (from 's-Hertogenbosch) and I lived in The Netherlands for 3 years. :)

    I will definitely take a look at that link - thank you!

    I've already tried replacing my comments.php with TwentyTen's, and where the comment's supposed to be, there's an error message like this:

    Warning: call_user_func(twentyten_comment) [function.call-user-func]: First argument is expected to be a valid callback in C:\http\vhosts\mydomain.com\httpdocs\wp\wp-includes\comment-template.php on line 1333

    Tried checking out line 1333 in comment-template.php and I couldn't see what the problem was.

  14. bookyeti
    Member
    Posted 1 year ago #

    This is line 1333 in comment-template.php, by the way, if you're curious:

    call_user_func($args['callback'], $comment, $args, $depth);

  15. keesiemeijer
    moderator
    Posted 1 year ago #

    Did you put the function from the pastebin in your theme's functions.php

  16. bookyeti
    Member
    Posted 1 year ago #

    Yes, I did... same error, I'm afraid.

  17. bookyeti
    Member
    Posted 1 year ago #

    Sorry I meant to say that the error I'm getting now is no longer the comment-template.php error, but this:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Web Server at mydomain.com

  18. keesiemeijer
    moderator
    Posted 1 year ago #

    ok put back your backups of the files. I need to go to bed. I will try a solution tomorrow

  19. bookyeti
    Member
    Posted 1 year ago #

    Oh goodness! Do get some sleep!
    I don't expect you to work on this, but it's very kind of you to offer.

    I'm going to keep looking a bit (it's only 10:30pm here). I'll post anything I find out.

    Thanks so much! :)

  20. keesiemeijer
    moderator
    Posted 1 year ago #

    I tried this on my test server (3.1) and it works. I put the comments.php in my theme and the function from the pastebin in my theme's functions.php and don't get the error. So I still think your theme is the problem here.

    But maybe we have to do some more troubleshooting steps to be sure.
    Try:
    - re-saving your permalink structure or setting it to the default structure at Settings > Permalinks in your admin panel. If WordPress cannot automatically edit the .htaccess file, it will provide manual instructions after saving.
    - renaming the .htaccess file or deleting it after making a backup of the .htaccess file
    - re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress by using FTP or whatever file management application your host provides.

  21. bookyeti
    Member
    Posted 1 year ago #

    Does it matter where you put your pastebin in the functions.php?

    I tried it again several times last night and am still getting the comments-template.php error where the comment text should be.

    I'll try what you've suggested...

  22. keesiemeijer
    moderator
    Posted 1 year ago #

    Can you put the the content of your functions.php in the pastebin and give a link back to it here. I will insert the function in it.

  23. bookyeti
    Member
    Posted 1 year ago #

    Here's my function.php -- I've added the function from the pastebin. You can see if it's in the right spot.

    http://wordpress.pastebin.com/PKtDKVQc

    A few other things...
    - my permalink structure is already set to the default structure
    - I'm not seeing an .htaccess file in my main wp folder

  24. keesiemeijer
    moderator
    Posted 1 year ago #

    The function is in the right spot.

    - my permalink structure is already set to the default structure

    did you re-save it?

    - I'm not seeing an .htaccess file in my main wp folder

    Are you using an FTP Client or are you using the file management application your host provides to look at your files?
    With ftp software you sometimes have to select "show hidden files" to see the .htaccess file
    Because your on the default structure it is also possible wordpress never generated a .htaccess so it doesn't exist.

  25. bookyeti
    Member
    Posted 1 year ago #

    Yes, I re-saved the permalink structure.

    I use an FTP client (FileZilla) to access my files. I have "force showing hidden files" checked, and still do not see the .htaccess file in my wp directory. So it must not exist.

    Still getting the "404 Not Found" error page after a comment is submitting. Continuing to compare the comments.php file with the TwentyTen comments.php - they're quite different.

  26. keesiemeijer
    moderator
    Posted 1 year ago #

    comments.php is one of the most complex template files in a theme and they are different from theme to theme.
    After all this I can only conclude it's your theme not being compatible.

  27. bookyeti
    Member
    Posted 1 year ago #

    Well I really appreciate all your suggestions. :)
    I'll keep looking. Thanks!

  28. bookyeti
    Member
    Posted 1 year ago #

    Just replaced wp-admin and wp-includes via FTP with a fresh WP download. Still getting the "404 Not Found" problem.

    Guess that confirms it's my theme. :-/

  29. bookyeti
    Member
    Posted 1 year ago #

    Okay, I got it working KeesieMeijer!

    I tried replacing my theme's comment.php with TwentyTen's *after* replacing wp-admin and wp-includes, and it works like a charm! Now I just have to streamline it a bit to look a bit better with my theme - but now it's working.

    Thank so much for your suggestions. I really appreciat all your help on this. :)

  30. keesiemeijer
    moderator
    Posted 1 year ago #

    Wow, I'm so glad you got it working. well done!

Topic Closed

This topic has been closed to new replies.

About this Topic