Dragon Blade Posted November 6, 2013 Share Posted November 6, 2013 Hello all, my main menu ain't working. The link to my menu - http://pastebin.com/LhvsHgnd. Error - Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/****/public_html/new_staff/staff_menu.php on line 162 Anyone can help me out? Quote Link to comment Share on other sites More sharing options...
Newbie Posted November 6, 2013 Share Posted November 6, 2013 (edited) try change line 158 to code tag is messed up <li><a href='staff_logs.php?action=commentlogs'class="link1">Comment Log</a></li> Edited November 6, 2013 by Newbie Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted November 7, 2013 Share Posted November 7, 2013 Is your "END;" that's on line 159 on column 1? there appears to be a tab and those are no bueno. WarningIt is very important to note that the line with the closing identifier must contain no other characters, except a semicolon (;). That means especially that the identifier may not be indented, and there may not be any spaces or tabs before or after the semicolon. It's also important to realize that the first character before the closing identifier must be a newline as defined by the local operating system. This is \n on UNIX systems, including Mac OS X. The closing delimiter must also be followed by a newline. If this rule is broken and the closing identifier is not "clean", it will not be considered a closing identifier, and PHP will continue looking for one. If a proper closing identifier is not found before the end of the current file, a parse error will result at the last line. Heredocs can not be used for initializing class properties. Since PHP 5.3, this limitation is valid only for heredocs containing variables. So here you go, I was nice enough to fix like 3 or 4 tabbed identifiers http://pastebin.com/LUGCpahA Quote Link to comment Share on other sites More sharing options...
Dragon Blade Posted November 7, 2013 Author Share Posted November 7, 2013 Thanks Newbie and Kyle! But Kyle I still get an error? Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/8888/public_html/new_staff/staff_menu.php on line 26 Line - 26 if ($ir['users'] == 1 && $ir['punish_two'] == 1 && $ir['announcement'] == 1 && $ir['staff_application'] == 1 && $ir['staff'] == 1) Quote Link to comment Share on other sites More sharing options...
Newbie Posted November 8, 2013 Share Posted November 8, 2013 Is your "END;" that's on line 159 on column 1? there appears to be a tab and those are no bueno. So here you go, I was nice enough to fix like 3 or 4 tabbed identifiers http://pastebin.com/LUGCpahA[/color] if your still stuck after what kyle has said then read this it will help you understand better i hope it did help me i didn't have a clue what kyle was talking about until i read this and the comments http://stackoverflow.com/questions/8400018/syntax-error-unexpected-t-encapsed-and-whitespace-expecting-t-string-or-t-vari Quote Link to comment Share on other sites More sharing options...
Dragon Blade Posted November 12, 2013 Author Share Posted November 12, 2013 I read it, I tried but I always fail! Can someone help me? Quote Link to comment Share on other sites More sharing options...
Newbie Posted November 12, 2013 Share Posted November 12, 2013 (edited) i can see where his error is coming from line 25 after END; he has a couple spaces followed by a } but i tried it with yours and no luck sorry did you hire someone to create custom a layout for you ?if so were you getting this error before or after </form> END; } Edited November 12, 2013 by Newbie Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted November 24, 2013 Share Posted November 24, 2013 http://pastebin.com/dPKqgErQ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.