soycharliente Posted July 6, 2010 Share Posted July 6, 2010 Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in /file.php on line 85 Anyone ever seen anything like this before? Have no idea what's going on. Furthermore, here is line 85. I personally don't see any extra close parenthesis. Maybe a fresh pair of eyes does? <?php echo (!empty(ADDRESS)) ? '<li>'.address(ADDRESS).'</li>' : ''; //LINE 85 HERE echo (!empty(PHONE)) ? '<li>'.phone(PHONE,'.').'</li>' : ''; echo (!empty(EMAIL)) ? '<li><a href="'.EMAIL.'" target="_blank">Email this link</a> to '.TYPE_LAST.'</li>' : ''; echo (!empty(SITE)) ? '<li><a href="'.SITE.'" target="_blank">'.SITE.'</a></li>' : ''; ?> Any help? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/206913-strange-error-message-help/ Share on other sites More sharing options...
PFMaBiSmAd Posted July 6, 2010 Share Posted July 6, 2010 Syntax errors are often reported on a line after where the actual problem is located. This is because the language parser cannot determine what the programmer intended when he left out some piece of syntax. I would suggest posting about 5 lines of code prior to the line where the error is being reported. Quote Link to comment https://forums.phpfreaks.com/topic/206913-strange-error-message-help/#findComment-1082034 Share on other sites More sharing options...
soycharliente Posted July 6, 2010 Author Share Posted July 6, 2010 Sorry for supplying too much info. I'm mostly concerned with the strange alien language in the error message itself. Quote Link to comment https://forums.phpfreaks.com/topic/206913-strange-error-message-help/#findComment-1082035 Share on other sites More sharing options...
PFMaBiSmAd Posted July 6, 2010 Share Posted July 6, 2010 http://www.englishgratis.com/1/wikibooks/php/paamayimnekudotayim.htm Quote Link to comment https://forums.phpfreaks.com/topic/206913-strange-error-message-help/#findComment-1082040 Share on other sites More sharing options...
soycharliente Posted July 6, 2010 Author Share Posted July 6, 2010 Couldn't ever find any double colons or double anythings. I have no idea if this is correct, but I was combining define() with ternary operators and now I'm not. Now it's working properly. Maybe that knowledge, whether right or wrong, will help someone. Quote Link to comment https://forums.phpfreaks.com/topic/206913-strange-error-message-help/#findComment-1082077 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.