Title: Parse error: syntax error, unexpected &#039;:&#039;
Last modified: August 22, 2016

---

# Parse error: syntax error, unexpected ':'

 *  Resolved [thompsonba86](https://wordpress.org/support/users/thompsonba86/)
 * (@thompsonba86)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-122/)
 * Parse error: syntax error, unexpected ‘:’ at etsy-importer.php on line 494
 * i cannot figure out how to fix this error
 * [https://wordpress.org/plugins/etsy-importer/](https://wordpress.org/plugins/etsy-importer/)

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

 *  Plugin Author [coreymcollins](https://wordpress.org/support/users/coreymcollins/)
 * (@coreymcollins)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-122/#post-5201256)
 * This should be resolved now. I believe the issue here was attempting to pull 
   in post content when using a post ID which is nonexistent.
 * I’ve pushed v1.1.0 and the issue should be fixed. Can you confirm? Thanks!
 *  [jlavik](https://wordpress.org/support/users/jlavik/)
 * (@jlavik)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-122/#post-5201260)
 * I just downloaded and attempted to install 1.1, got the same error but it points
   to line 534.
 * Lines 533, 534 are:
 *  `// Get our link title
    $title = $title ? : get_the_title( $id );`
 * I’d really appreciate your help. Thanks!
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-122/#post-5201261)
 * hey jlavik,
 * could you change that line to `$title = ( $title ) ? $title : get_the_title( 
   $id );` and let us know if that resolves the issue? It should but I’d love to
   confirm. If it does, we’ll get the same change committed to the plugin and updated.
 *  [jlavik](https://wordpress.org/support/users/jlavik/)
 * (@jlavik)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-122/#post-5201262)
 * Yes, that did the trick. Thanks so much!!!
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-122/#post-5201263)
 * Thanks for confirming for us 🙂
 *  Plugin Author [coreymcollins](https://wordpress.org/support/users/coreymcollins/)
 * (@coreymcollins)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-122/#post-5201266)
 * I’ve pushed a fix for this, so we should be good to go with version 1.1.1.
 * Thanks for the additional help here, Michael!

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/etsy-importer.svg)
 * [Etsy Importer](https://wordpress.org/plugins/etsy-importer/)
 * [Support Threads](https://wordpress.org/support/plugin/etsy-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/etsy-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/etsy-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/etsy-importer/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [coreymcollins](https://wordpress.org/support/users/coreymcollins/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-122/#post-5201266)
 * Status: resolved