Support » Themes and Templates » unexpected T_STRING ??

  • Parse error: parse error, unexpected T_STRING in /my path/wp/index.php on line 77

    the code on line 77 is

    <!–
    <?php trackback_rdf(); ?>
    –>

    and i never touched it, so why is it not working? if it has to do with anything, i just installed the top/recent commenters thing, but idk….

Viewing 15 replies - 1 through 15 (of 21 total)
  • The problem is probably an open parenthesis or a missing close-quote somewhere above that line in the code. Could you try saving the code of that page as a text file and putting it up on your server so that we could look around in to find the missing symbols?

    Try looking at all the lines above line 77 for an unclosed ?> tag or unclosed quotes (double and single) in the PHP code.

    This support forum is too fast! Not that it’s a bad thing, it’s just as soon as I hit Send Post someone else has already beat me to it, doesn’t matter how fast I type. ;-P

    Thread Starter Sparky

    (@sparky)

    alright… also, when I tried modifying my comments file from the admin panel, it said:

    Warning: Cannot modify header information – headers already sent by (output started at /my path/wp/wp-content/plugins/get-commenters.php:116) in /my pathl/wp/wp-admin/templates.php on line 74

    and line 74 is

    if (0 >= $num_people) { return; }

    happens to me allll the time 🙂

    The culprit for that error is usually whitespace and or black lines at the top of your page (i.e. right before your first <?php tag).

    Thread Starter Sparky

    (@sparky)

    Thread Starter Sparky

    (@sparky)

    i mean thast my index file a a .txt

    Some more help and information on the problem can be found here: http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent and here:

    Sparky, I get an error when trying to view that.

    Sparky: I think your .htaccess/permalink set up is just ignoring whatever gets put in after ../wp/ and trying to load index.php which naturally still gives an error because of the problem mentioned in your first post. Could you perhaps host the text file somewhere else?

    Thread Starter Sparky

    (@sparky)

    Oopss I spelled it wrong. http://at-the-beginning.net/wp/indextxt.txt

    I fixed the header thing though, thanks.

    Eek! No wonder! o_O

    Lines 47 to 54 should be at line 5 (over-write lines 5 to 7 since they’re redundant). Configure the title of your blog in your admin section rather than hard-coding it into your index.php.

    Thread Starter Sparky

    (@sparky)

    What? What do I do to this? This is lines 47-54

    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –><link rel=”alternate” type=”application/rss+xml” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘type=monthly&format=link’); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>

    I’m new with PHP, so I didn’t get that. 🙂

    Thread Starter Sparky

    (@sparky)

    I updated the .txt

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘unexpected T_STRING ??’ is closed to new replies.