Title: syntax error, unexpected T_STRING, expecting &#039;,&#039; or &#039;;&#039;
Last modified: August 20, 2016

---

# syntax error, unexpected T_STRING, expecting ',' or ';'

 *  [skyyypilot](https://wordpress.org/support/users/skyyypilot/)
 * (@skyyypilot)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_string-expecting-or/)
 * Full error:
 * “Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/
   jskypilo/public_html/towelpros2/wp-content/themes/shopperpress/template_shopperpress/
   _single.php on line 150”
 * Here’s the code. Will happily paypal $5 to anyone with a fix.
 * [Large code excerpt removed by moderator per [forum rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use [the pastebin](http://wordpress.pastebin.com/) for all large code 
   excerpts. It works better anyway.]

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [skyyypilot](https://wordpress.org/support/users/skyyypilot/)
 * (@skyyypilot)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_string-expecting-or/#post-2349830)
 * Okay, I’ll just paste in lines 149-151 here. Does anybody see a problem?
 *     ```
       <div class="excerpt" id="x1" style="display:visible">
       <?php if(strlen($post->post_excerpt) > 200 ){ echo substr(strip_tags($post->post_excerpt),0,200)."..<a href="javascript:void(0);" onclick="jQuery('#x1').hide();jQuery('#x2').show();" title='' class='link'>read more</a>"; }else{ the_excerpt(); } ?>*/
       </div>
       ```
   
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_string-expecting-or/#post-2349884)
 * [http://jobs.wordpress.net/](http://jobs.wordpress.net/)
 * _[[topic now closed per forum rules](http://codex.wordpress.org/Forum_Welcome#Offering_to_Pay)]_

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘syntax error, unexpected T_STRING, expecting ',' or ';'’ is closed to
new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_string-expecting-or/#post-2349884)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
