Title: Unexpected Parse Errors
Last modified: August 18, 2016

---

# Unexpected Parse Errors

 *  [jinsan](https://wordpress.org/support/users/jinsan/)
 * (@jinsan)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parse-errors/)
 * I followed the instructions in this thread, and got these errors, could someone
   help by telling me where the errors are and what to do?
 * Parse error: parse error, unexpected ‘?’ in /home/jinsan/public_html/wp/wp-content/
   themes/thoughtmechanics/comments.php on line 45
 * Parse error: parse error, unexpected T_STRING in /home/jinsan/public_html/wp/
   wp-content/themes/thoughtmechanics/index.php on line 15
 * Thanks in advance – it’s broken my site 🙁

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

 *  [zerok](https://wordpress.org/support/users/zerok/)
 * (@zerok)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parse-errors/#post-147304)
 * What thread do you mean? Could you perhaps post a link to a .phps version of 
   your index.php? (If there are no passwords or any other important things in there
   🙂 )
 *  Thread Starter [jinsan](https://wordpress.org/support/users/jinsan/)
 * (@jinsan)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parse-errors/#post-147312)
 * doh! my apologies.
 * [http://sekhu.net/index.php](http://sekhu.net/index.php) try that an it will 
   give you the error
 * and also if you click go to [http://sekhu.net](http://sekhu.net) and click on
   any post, it will show the error on screen.
 * Thanks in advance
 * PS. How do I create a phps version?
 *  [zerok](https://wordpress.org/support/users/zerok/)
 * (@zerok)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parse-errors/#post-147316)
 * You can create .phps files by simply making a copy of a .php files and rename
   it to have the .phps file extensions instead of .php 🙂
 * Hmm…. the site works for me 😕
 *  Thread Starter [jinsan](https://wordpress.org/support/users/jinsan/)
 * (@jinsan)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parse-errors/#post-147318)
 * ack! wrong site!
 * sorry, it’s:
 * [http://sekhu.net/wp/](http://sekhu.net/wp/)
 * and [http://sekhu.net/wp/archives](http://sekhu.net/wp/archives) will get you
   past the index page…
 * you can view the phps files here’
 * [http://sekhu.net/stuff/index.phps](http://sekhu.net/stuff/index.phps)
    [http://sekhu.net/stuff/comments.phps](http://sekhu.net/stuff/comments.phps)
 * I think it has some error to do witht he comments file. It’s really buggered
 *  [zerok](https://wordpress.org/support/users/zerok/)
 * (@zerok)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parse-errors/#post-147326)
 * In line 15 of the index.php you have function:
    `<?php comments_popup_link(__('
   no udders squeezed'), __('1 udder squeezed), __('% udders squeezed)); ?>`
 * Replace it with
    `<?php comments_popup_link(__('no udders squeezed'), __('1 udder
   squeezed'), __('% udders squeezed')); ?>`
 * This should at least fix this error.
 * Then go to line 30:
    `<p><?php _e('Sorry! We couldn't find the cow you were looking
   for, perhaps you wanted sheep!'); ?></p>
 * Replace it with this:
    `<p><?php _e('Sorry! We couldn't find the cow you were
   looking for, perhaps you wanted sheep!'); ?></p>`
 *  Thread Starter [jinsan](https://wordpress.org/support/users/jinsan/)
 * (@jinsan)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parse-errors/#post-147348)
 * hmm well I tried it, and it didn’t work. Anythign else I can try? I could quite
   notice the differente between the two sorry we couldn’t fine the cow….buts that
   you copied and pasted above. They look exactly the same, in any case neither 
   worked it seems. well it partly worked. I now get an error about line 30.
 * I check the site before making any changes to line 30 and after, and it still
   points to line 30.
 * Thanks in advance
 * EDIT: Through lots, and LOTS of trial and error, I Think I have it working now.
   Many thanks for your assistance.

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

The topic ‘Unexpected Parse Errors’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [jinsan](https://wordpress.org/support/users/jinsan/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parse-errors/#post-147348)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
