Parse error: syntax error, unexpected '<' Error

Discussion in 'PHP' started by redfoxmagazine, Jan 29, 2011.

  1. #1
    I am using wordpress. I just see when i search or click any category links it shows an error

    Parse error: syntax error, unexpected '<' in /home/****/public_html/wp-includes/default-widgets.php on line 1162

    I don't know which file i have to edit to solve this issue. Kindly please help me.
     
    redfoxmagazine, Jan 29, 2011 IP
  2. ivan.kristianto

    ivan.kristianto Active Member

    Messages:
    136
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    please check your plugins and themes.
     
    ivan.kristianto, Jan 29, 2011 IP
  3. CPAPubMichael

    CPAPubMichael Peon

    Messages:
    231
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Go and look at the file name called default-widgets.php.

    Look on line 1162. Look for the unexpected "<" in the line.

    Problem should be solved.

    Or if you want you can paste line 1162 of your code here, i would be happy to help.

    Thanks,

    Michael
     
    CPAPubMichael, Jan 30, 2011 IP
  4. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #4
    You should do what error tells you. it means, as Michael told, go to that line & look for unexpected < ...
    problem is maybe that you entered html into php code
     
    G3n3s!s, Jan 30, 2011 IP