hynt Posted October 10, 2009 Share Posted October 10, 2009 I keep getting PHP T_STRING errors. It says this: Parse error: syntax error, unexpected T_STRING in /home/a1558762/public_html/forum/cache/skin_cache/cacheid_1/skin_global.php on line 186 Line 186 is as follows <strong>{$this->lang->words['pc_replies']}</strong> {parse expression="intval( $items['pmData']['mt_replies'] )"}<br /> I tried changing punctuation, but nothing has helped. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/177241-persistent-t_string-error/ Share on other sites More sharing options...
mikesta707 Posted October 10, 2009 Share Posted October 10, 2009 can you post the line before and after. unexpected t_string errors usually come from missing a closing " or ' character Quote Link to comment https://forums.phpfreaks.com/topic/177241-persistent-t_string-error/#findComment-934550 Share on other sites More sharing options...
Philip Posted October 10, 2009 Share Posted October 10, 2009 I'm going to take a stab and say that the quotes in: {parse expression="intval( $items['pmData']['mt_replies'] )"} are causing the problem. You either need to escape them (if you don't want to run intval() by doing \" or you need to concat them by using a period, =".intval(...)."} Quote Link to comment https://forums.phpfreaks.com/topic/177241-persistent-t_string-error/#findComment-934553 Share on other sites More sharing options...
hynt Posted October 10, 2009 Author Share Posted October 10, 2009 absolutely <p> <strong>{$this->lang->words['pc_subject']}</strong> {$items['pmData']['mt_title']}<br /> <strong>{$this->lang->words['pc_replies']}</strong> {parse expression="intval( $items['pmData']['mt_replies'] )"}<br /> <strong>{$this->lang->words['pc_sent']}</strong> date=\"$items['pmData']['msg_date']\" format=\"short </p> Quote Link to comment https://forums.phpfreaks.com/topic/177241-persistent-t_string-error/#findComment-934554 Share on other sites More sharing options...
mikesta707 Posted October 10, 2009 Share Posted October 10, 2009 judging by whats posted, I would say King Phillip is correct Quote Link to comment https://forums.phpfreaks.com/topic/177241-persistent-t_string-error/#findComment-934562 Share on other sites More sharing options...
hynt Posted October 10, 2009 Author Share Posted October 10, 2009 That's the thing. When i tried changing that, it just gave me another error in line 187. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/a1558762/public_html/forum/cache/skin_cache/cacheid_1/skin_global.php on line 187 Quote Link to comment https://forums.phpfreaks.com/topic/177241-persistent-t_string-error/#findComment-934566 Share on other sites More sharing options...
mikesta707 Posted October 10, 2009 Share Posted October 10, 2009 post the whole echo string Quote Link to comment https://forums.phpfreaks.com/topic/177241-persistent-t_string-error/#findComment-934568 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.