Title: Parse error: syntax error, unexpected &#8216;[
Last modified: January 29, 2018

---

# Parse error: syntax error, unexpected ‘[

 *  Resolved [jenskn](https://wordpress.org/support/users/jenskn/)
 * (@jenskn)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-217/)
 * Hi there,
 * recendly i get this strange error:
    Parse error: syntax error, unexpected ‘[‘
   in /wp/wp-content/plugins/the-holiday-calendar/helpers/http-get-helper.class.
   php on line 45
 * Any chance you can help me out here ?
 * greetings
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-syntax-error-unexpected-217%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [mva7](https://wordpress.org/support/users/mva7/)
 * (@mva7)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-217/#post-9919517)
 * Hi jenskn,
 * This is because you use an older version of PHP. We fixed the problem in version
   1.15.7.2.
 * Sorry for the malfunction!
 * Regards,
 * Mva7
 *  Thread Starter [jenskn](https://wordpress.org/support/users/jenskn/)
 * (@jenskn)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-217/#post-9919619)
 * Hey,
 * thanks for the fix. After applying the latest update the following warning pops
   up:
 * Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /wp/wp-content/plugins/
   the-holiday-calendar/helpers/http-get-helper.class.php on line 30
 * Sorry for the trouble.
 *  Plugin Author [mva7](https://wordpress.org/support/users/mva7/)
 * (@mva7)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-217/#post-9919647)
 * New update comes in a moment, you can also replace it with this line:
 * return str_replace(array(‘+’, ‘-‘), ”, filter_var($output[‘thc-month’], FILTER_SANITIZE_NUMBER_INT));
 * Regards,
 * Mva7
 *  Plugin Author [mva7](https://wordpress.org/support/users/mva7/)
 * (@mva7)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-217/#post-9919690)
 * Hi jenskn,
 * Fixed in 1.15.7.3.
 * Sorry again and thanks for reporting!
 * Regards,
 * Mva7

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/the-holiday-calendar_fefeff.svg)
 * [The Holiday Calendar](https://wordpress.org/plugins/the-holiday-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-holiday-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-holiday-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-holiday-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-holiday-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-holiday-calendar/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mva7](https://wordpress.org/support/users/mva7/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-217/#post-9919690)
 * Status: resolved