Title: Parse error: syntax error, unexpected &#039;}&#039; line 42
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected '}' line 42

 *  [samuelafamo](https://wordpress.org/support/users/samuelafamo/)
 * (@samuelafamo)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-line-42/)
 * Hello to all the coders, i am very stumped to what the problem could be on my
   site. I’m getting this error in my functions.php file (Parse error: syntax error,
   unexpected ‘}’ in /home/shineti2/public_html/wp-content/themes/Shine Time 7 Theme/
   functions.php on line 42) and i cant figure out that the problem is. I’ve taken
   things out put things in, deleted everything and still no go. So i would greatly
   appreciate your help in this matter.
 * here is the code
 * _[code moderated - please use the [pastebin](http://pastebin.com/), following
   the [forum guidelines for posting code](http://codex.wordpress.org/Forum_Welcome#Posting_Code);
   this has the added advantage to show line numbers]_

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

 *  [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * (@imh_brad)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-line-42/#post-2425814)
 * Hi samuelafamo, if you can re-post your code using [http://pastebin.com/](http://pastebin.com/)
   I’d be more than happy to review the code for you.
 *  Thread Starter [samuelafamo](https://wordpress.org/support/users/samuelafamo/)
 * (@samuelafamo)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-line-42/#post-2425836)
 * thanks in advance, [http://pastebin.com/ixbEzrsN](http://pastebin.com/ixbEzrsN)
 *  [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * (@imh_brad)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-line-42/#post-2425838)
 * At line 33 you have commented out the function. You either need to:
 * 1. Remove the comment
 * 2. comment out the entire function using:
 *     ```
       /*
   
       */
       ```
   
 * Does this make sense?
 *  Thread Starter [samuelafamo](https://wordpress.org/support/users/samuelafamo/)
 * (@samuelafamo)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-line-42/#post-2425839)
 * wow i should’ve seen that. Thanks a lot, the site works now. I really appreciate
   your help Brad, I’ve been scratching my head on this problem for a few hours 
   now. That’s one problem down.
 *  [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * (@imh_brad)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-line-42/#post-2425841)
 * Hi samuelafamo, glad that fixed the issue!
 *  [jasonskinner88](https://wordpress.org/support/users/jasonskinner88/)
 * (@jasonskinner88)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-line-42/#post-2425980)
 * How do I access my code if I can’t login to wp-admin?
 * [http://www.skinnnerartstudio.com](http://www.skinnnerartstudio.com)
 *  [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * (@imh_brad)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-line-42/#post-2425981)
 * Hi jasonskinner88, skinnnerartstudio.com is not a registered domain. Did you 
   type it in correctly?
 * If you don’t have access to wp-admin, you’ll need to use FTP or some type of 
   File Manager to edit your files. It’s best to contact your web hosting provider
   if you’re not sure how to manually edit your files.

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

The topic ‘Parse error: syntax error, unexpected '}' line 42’ is closed to new replies.

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-line-42/#post-2425981)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
