Title: Error Activating plugin
Last modified: October 19, 2016

---

# Error Activating plugin

 *  Resolved [supaiku](https://wordpress.org/support/users/supaiku/)
 * (@supaiku)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-activating-plugin-10/)
 * The plugin renders this error:
 * Parse error: syntax error, unexpected T_VAR, expecting ‘;’ in /*dirremoved*/public_html/
   websitedir/wp-content/plugins/brown-paper-tickets/src/modules/calendar/calendar-
   widget.php on line 181
 * Any ideas/thoughts?

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

 *  Plugin Author [Chandler Blum](https://wordpress.org/support/users/chandler-blum/)
 * (@chandler-blum)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-activating-plugin-10/#post-8330003)
 * I’ve seen this issue before where PHP tries to parse the underscore [html template](https://github.com/brownpapertickets/brown-paper-tickets-wordpress/blob/master/src/modules/calendar/calendar-widget.php#L181)
   for the calendar widget as PHP code but was never able to figure it out. Which
   version PHP are you running and on which OS?
 * Thanks
    -  This reply was modified 9 years, 7 months ago by [Chandler Blum](https://wordpress.org/support/users/chandler-blum/).
 *  Thread Starter [supaiku](https://wordpress.org/support/users/supaiku/)
 * (@supaiku)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-activating-plugin-10/#post-8330619)
 * It was 5.3, but I just changed it to 5.5, and 5.6 does the same thing.
 * Was running older version of wordpress, but updated to 4.6.1 still has the same
   error.
 * Site has very few plugins: Only Updraft, Advanced CSS editor (installed after
   error was produced for unrelated reasons) and Contact Form 7. None of these should
   be causing any issues as they’re well maintained, unrelated, and/or minor. All
   are up to date.
 * Platform Type Debian (not sure about version number, could poke around more to
   find it I bet)
    PHP Version 5.6
 * When you say it was related when parsing “underscore html template”, do you mean
   the bit of html after the closing code in the PHP file? It does seem like that’s
   the issue as line 181 is a var that’s after the closing php code. Not sure how
   that works, but it does seem to be the issue.
 * Perhaps another crack? Maybe I’ll read-up though I’m like 90% lay when it comes
   to php.
 *  Plugin Author [Chandler Blum](https://wordpress.org/support/users/chandler-blum/)
 * (@chandler-blum)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-activating-plugin-10/#post-8335626)
 * I think I’ve found the issue.
 * It seems like PHP has an ASP short tags feature which I’m guessing is enabled
   in your environment. It’s why PHP is reading <% as a PHP tag.
 * According to the [PHP documentation](http://php.net/manual/en/ini.core.php#ini.asp-tags),
   you can set `asp_tags` to `0` in your php.ini to disable it (It’s also been entirely
   removed from PHP 7).
 * Let me know if that works for you.
 *  Thread Starter [supaiku](https://wordpress.org/support/users/supaiku/)
 * (@supaiku)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-activating-plugin-10/#post-8340215)
 * That worked indeed! Thanks for the awesome support! 🙂

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

The topic ‘Error Activating plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/brown-paper-tickets.svg)
 * [Brown Paper Tickets](https://wordpress.org/plugins/brown-paper-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/brown-paper-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/brown-paper-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/brown-paper-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/brown-paper-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/brown-paper-tickets/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [supaiku](https://wordpress.org/support/users/supaiku/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/error-activating-plugin-10/#post-8340215)
 * Status: resolved