WordPress.org

Ready to get started?Download WordPress

Forums

unexpected T_STRING in comment posting (3 posts)

  1. zoddo
    Member
    Posted 8 years ago #

    When I try to insert a comment, I get this error I cannot solve. The lines of wp-comments.php involved are


    setcookie('comment_author_' . COOKIEHASH, stripslashes($comment_author), time() + 30000000, COOKIEPATH);<br />
    setcookie('comment_author_email_' . COOKIEHASH, stripslashes($comment_author_email), time() + 30000000, COOKIEPATH);<br />
    setcookie('comment_author_url_' . COOKIEHASH, stripslashes($comment_author_url), time() + 30000000, COOKIEPATH);

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Parse error: parse error, unexpected T_STRING in /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-includes/gettext.php(307) : eval()'d code on line 2

    Warning: Cannot modify header information - headers already sent by (output started at /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-includes/gettext.php(307) : eval()'d code:2) in /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-comments-post.php on line 51

    Warning: Cannot modify header information - headers already sent by (output started at /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-includes/gettext.php(307) : eval()'d code:2) in /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-comments-post.php on line 52

    Warning: Cannot modify header information - headers already sent by (output started at /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-includes/gettext.php(307) : eval()'d code:2) in /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-comments-post.php on line 53

    Warning: Cannot modify header information - headers already sent by (output started at /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-includes/gettext.php(307) : eval()'d code:2) in /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-comments-post.php on line 55

    Warning: Cannot modify header information - headers already sent by (output started at /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-includes/gettext.php(307) : eval()'d code:2) in /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-comments-post.php on line 56

    Warning: Cannot modify header information - headers already sent by (output started at /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-includes/gettext.php(307) : eval()'d code:2) in /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-comments-post.php on line 57

    Warning: Cannot modify header information - headers already sent by (output started at /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-includes/gettext.php(307) : eval()'d code:2) in /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-comments-post.php on line 58

    Warning: Cannot modify header information - headers already sent by (output started at /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-includes/gettext.php(307) : eval()'d code:2) in /home/.insomnia/aronchi/alessandroronchi.net/forli/wp-includes/pluggable-functions.php on line 129

  2. Xavier Borderie
    Member
    Posted 8 years ago #

    I have the very same problem. Comments go through without any problem, but, when comes the time to process the page, I get this, the URL being on /blog/wp-comments-post.php .

    I didn't make any change to my install (still using WP 1.5.2), and a frequent commenter just told me about it today...
    Zoddo, did you solve it ?

    Parse error: syntax error, unexpected T_STRING in /home/xibe/public_html/xavier/blog/wp-includes/gettext.php(307) : eval()'d code on line 2

    Warning: Cannot modify header information - headers already sent by (output started at /home/xibe/public_html/xavier/blog/wp-includes/gettext.php(307) : eval()'d code:2) in /home/xibe/public_html/xavier/blog/wp-comments-post.php on line 51

    Warning: Cannot modify header information - headers already sent by (output started at /home/xibe/public_html/xavier/blog/wp-includes/gettext.php(307) : eval()'d code:2) in /home/xibe/public_html/xavier/blog/wp-comments-post.php on line 52

    Warning: Cannot modify header information - headers already sent by (output started at /home/xibe/public_html/xavier/blog/wp-includes/gettext.php(307) : eval()'d code:2) in /home/xibe/public_html/xavier/blog/wp-comments-post.php on line 53

    Warning: Cannot modify header information - headers already sent by (output started at /home/xibe/public_html/xavier/blog/wp-includes/gettext.php(307) : eval()'d code:2) in /home/xibe/public_html/xavier/blog/wp-comments-post.php on line 55

    Warning: Cannot modify header information - headers already sent by (output started at /home/xibe/public_html/xavier/blog/wp-includes/gettext.php(307) : eval()'d code:2) in /home/xibe/public_html/xavier/blog/wp-comments-post.php on line 56

    Warning: Cannot modify header information - headers already sent by (output started at /home/xibe/public_html/xavier/blog/wp-includes/gettext.php(307) : eval()'d code:2) in /home/xibe/public_html/xavier/blog/wp-comments-post.php on line 57

    Warning: Cannot modify header information - headers already sent by (output started at /home/xibe/public_html/xavier/blog/wp-includes/gettext.php(307) : eval()'d code:2) in /home/xibe/public_html/xavier/blog/wp-comments-post.php on line 58

    Warning: Cannot modify header information - headers already sent by (output started at /home/xibe/public_html/xavier/blog/wp-includes/gettext.php(307) : eval()'d code:2) in /home/xibe/public_html/xavier/blog/wp-includes/pluggable-functions.php on line 129

  3. coolrasta
    Member
    Posted 7 years ago #

    has this issue been solved ?
    Any idea ?
    I get Parse error: syntax error, unexpected $end in path_to/wp-includes/gettext.php(307) : eval()'d code on line 1

Topic Closed

This topic has been closed to new replies.

About this Topic