• Hi,

    I’ve had an odd problem occur. I went to view my site this morning and, instead of the home page, was greeted with:

    Parse error: syntax error, unexpected T_LNUMBER in […..]/wp-content/themes/weaver/header.php on line 8

    (the […] is obviously just to not bore you with the full file root)

    I’ve searched the forum for other parse errors with this issue, but none of them offer me a solution.

    The first 8 lines of my weaver/header.php are

    1 <?php
    2 /**
    3 * The Header for our theme.
    4 *
    5 * Displays all of the <head> section and everything up till <div id=”main”>
    6 *
    7 */
    8 ?><!DOCTYPE html>

    I have never edited these. Last night I did edit this file lower down after running theme-check plugin and being told there was a stray numeral in a line I had added to header.php a month ago to get the favicon to appear. So the only edit I have done before this error is to remove that stray numeral in the <link rel=”shortcut icon” line I had added.

    I’m no expert, but I can’t see an error in line 8 which is I expect always as it has been since installing Weaver. Am I missing the wood for the trees?

Viewing 1 replies (of 1 total)
  • Thread Starter cupofassam

    (@cupofassam)

    Hi

    OK, so I fixed this by backing up my header.php, downloading a fresh copy of weaver and dropping in the version of header.php from that. The website works again. But line 8 in the new header.php is exactly the same as line 8 in the one that was producing the error. So, while I’m happy that the engine is turning over again, I’d be curious to learn what might have caused this so that I know for the next time. No point having a lesson if you don’t learn from it.

Viewing 1 replies (of 1 total)
  • The topic ‘Parse error: syntax error, unexpected T_LNUMBER’ is closed to new replies.