Support » Fixing WordPress » unexpected T_STRING in comment posting

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘unexpected T_STRING in comment posting’ is closed to new replies.