Jump to content

Persistent T_STRING error


hynt

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/177241-persistent-t_string-error/
Share on other sites

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(...)."}

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>

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.