• After trying to verify my site through Bing, by entering their code into my header.php in my themes editor, then finding out that it didn’t work, I removed the code, and only the code, and now I get “Parse error: syntax error, unexpected T_STRING in /home/content/47/10181747/html/wp-content/themes/gitem/header.php on line 27” when I try to go to my blog.

    I don’t understand what went wrong. Please help.
    Forrest

Viewing 15 replies - 1 through 15 (of 22 total)
  • Try removing the changes you made to the header.php file. You seem to have introduced an error.

    Thread Starter ffinch815

    (@ffinch815)

    I removed the code given to me by Bing, after placing in the editor. It’s when I removed the code from the editor is when I got the error message. I’m at a total loss here. Nothing else was changed.

    Grab a fresh copy of your theme, extract the header, php file and, using FTP (or whatever file management application your host provides), upload the file to the wp-content/themes/gitem folder.

    Thread Starter ffinch815

    (@ffinch815)

    I don’t mean to sound like a dummy, but how can I get a fresh copy of the theme? I tried earlier to to re-install it but cannot.

    Where did you download it from in the first place?

    Thread Starter ffinch815

    (@ffinch815)

    WordPress, but it’s not giving me the option to re-install.

    Do you know the name of the theme?

    Thread Starter ffinch815

    (@ffinch815)

    Gitem, You guessed right.

    Thread Starter ffinch815

    (@ffinch815)

    Would I lose my content if I used a different theme?

    No – most of your content is stored in your database. The only things uou would loose are any widgets or custom menus as these are stored on a per-theme basis. So they would have to be set up again for the new theme.

    You can download a fresh copy of the theme from http://ww.wp.xz.cn/extend/themes/gitem Once downloaded to your computer, you’d have to unpack the download and extract the header.php file to upload to your site using FTP.

    Thread Starter ffinch815

    (@ffinch815)

    Thanks a million! I’ll get right on it.

    Thread Starter ffinch815

    (@ffinch815)

    One more question. Will that automatically overwrite the current file?

    In 99% of cases, yes but – just to be sure – we usually recommend that you delete the old copy of header.php just before you upload the fresh copy.

    Thread Starter ffinch815

    (@ffinch815)

    Thanks again. You’ve been a great help.

    No problem πŸ™‚

Viewing 15 replies - 1 through 15 (of 22 total)

The topic ‘Parse error: syntax error, unexpected T_STRING’ is closed to new replies.