Forums

[resolved] Problems with comments on 2.7-beta3 (16 posts)

  1. mariano
    Member
    Posted 3 years ago #

    Hi there,
    I',m sorry but i got no idea on how to solve this message:

    Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/.kairo/XXX.COM/wp-includes/comment-template.php on line 821

    Should i get back to 2.6? Or can anyone give an idea on how i can solve this? :)

    thanks!

  2. whooami
    Member
    Posted 3 years ago #

    is this a brand new install? or an upgrade?

  3. mariano
    Member
    Posted 3 years ago #

    Hi Whooami,
    its an upgrade via SVN and its giving me this problem since yesterday at night.

  4. whooami
    Member
    Posted 3 years ago #

    upgrade from another beta version, i assume?

  5. mariano
    Member
    Posted 3 years ago #

    yep... the previous release, which has no single problem with that :S

  6. whooami
    Member
    Posted 3 years ago #

    ok, well so we are sure that we are both looking at the same thing. My line 821 in wp-includes/comment-template.php

    reads:

    elseif ( file_exists( TEMPLATEPATH . $file ) )

    whats yours read?

    My beta3 was grabbed from here though, and not the svn

  7. mariano
    Member
    Posted 3 years ago #

    on mine it says:
    $comments = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND ( comment_approved = '1' OR ( comment_author = %s AND comment_author_email = %s AND comment_approved = '0' ) ) ORDER BY comment_date", $post->ID, htmlspecialchars_decode($comment_author, ENT_QUOTES), $comment_author_email));

  8. whooami
    Member
    Posted 3 years ago #

    hmm, let me make sure I have the right file ... I do.

    ok, hang on, I grabbed your copy out of the svn.

  9. whooami
    Member
    Posted 3 years ago #

    ok, I can tell you how to fix that. htmlspecialchars_decode is specific to PHP 5. I assume you are using PHP 4?

  10. mariano
    Member
    Posted 3 years ago #

    I should check... because dreamhost used to have latest versions on almost everything

  11. Jeremy Clark
    Moderator
    Posted 3 years ago #

    Most hosts give you the option which version to use.

  12. mariano
    Member
    Posted 3 years ago #

    I just reverted that file and everithing is great but i dont like to have this kind of "werid" install :S

  13. patrickd88
    Member
    Posted 3 years ago #

    I've got the same problem on build 9817. Any resolution?

  14. patrickd88
    Member
    Posted 3 years ago #

    This issue will be fixed in the next nightly build, according to Ryan Boren. I guess somebody can mark it resolved?

  15. mariano
    Member
    Posted 3 years ago #

    Hey Patrick... many thanks, As soon as i update and find it resolved will close the thread :)

  16. mariano
    Member
    Posted 3 years ago #

    done :)

Topic Closed

This topic has been closed to new replies.

About this Topic