Skip to:
Content
Pages
Categories
Search
Top
Bottom

Parse error: syntax error, unexpected T_STRING


  • Sktella
    Participant

    @sktella

    Hi,

    I expect to add a Login/Logout to the menu,however,I encountered this syntax error (indicating in the title) while editing the theme functions.php. According to the error message,

    $loginlink = ‘

    ';
    
    is the code causing this parse error. 
    
    Since this code is provided in the documentation and works fine for others, I wonder what the problem is.
    
    Hope you can help. Thank you so much!
    
Viewing 3 replies - 1 through 3 (of 3 total)

  • Sktella
    Participant

    @sktella

    Sorry, I just retyped my problem. I forgot to encode the error code.

    Hi,
    I expect to add a Login/Logout to the menu,however,I encountered this syntax error (indicating in the title) while editing the theme functions.php. According to the error message,
    $loginlink = '</pre><ul><li><a title='Logout' href="'.$url2.'">Logout</a></li></ul><pre>';
    is the code causing this parse error.
    Since this code is provided in the documentation and works fine for others, I wonder what the problem is.
    Hope you can help. Thank you so much!


    Robkk
    Moderator

    @robkk

    remove the and

     , it is their by accident when publishing.

    Robkk
    Moderator

    @robkk

    I meant remove the <pre>

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar