Title: Syntax Error
Last modified: June 9, 2018

---

# Syntax Error

 *  [karlgaverza](https://wordpress.org/support/users/karlgaverza/)
 * (@karlgaverza)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-185/)
 * I keep getting this error message when I try to go to my dashboard or make a 
   new post.
 * Parse error: syntax error, unexpected ‘.’, expecting ‘,’ or ‘;’ in /home3/o98xu4ad/
   phspirits.com/wp-content/plugins/optinmonster/OMAPI/Api.php on line 19

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

 *  [Joey](https://wordpress.org/support/users/leglesslizard/)
 * (@leglesslizard)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-185/#post-10382111)
 * Hey,
 * If you haven’t altered the optinmonster plugin at all then someone has made an
   error in their code. To fix it you can visit the file specified in the error (
   line 19) and apply the change and let the developers know that a fix is needed.
 * If you’re not comfortable with that then send a message to the developers with
   that error and disable the plugin for the time being. They should fix it pretty
   sharpish!
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-185/#post-10382115)
 * Download a fresh copy of optinmonster from [https://wordpress.org/plugins/optinmonster/](https://wordpress.org/plugins/optinmonster/)
   and unzip it on your local machine.
 * Via FTP, delete the directory `wp-content/plugins/optinmonster`, then upload 
   the directory you just unzipped to `wp-content/plugins`.
 * That should solve your basic problem. Now, why did the file(s) get corrupted 
   in the first place? Were you editing any files?
 *  Thread Starter [karlgaverza](https://wordpress.org/support/users/karlgaverza/)
 * (@karlgaverza)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-185/#post-10382245)
 * That worked, thank you so much!
 * I wasn’t editing any files, so don’t really know why things went south.

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

The topic ‘Syntax Error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [karlgaverza](https://wordpress.org/support/users/karlgaverza/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-185/#post-10382245)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
