Title: Parse error: unexpected &#039;endforeach&#039;
Last modified: August 20, 2016

---

# Parse error: unexpected 'endforeach'

 *  Resolved [strayAncient](https://wordpress.org/support/users/strayancient/)
 * (@strayancient)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/parse-error-unexpected-endforeach/)
 * In WP Dashboard, could not activate the plugin. Throws a fatal error.
 * The exact error shown:
 * > Plugin could not be activated because it triggered a **fatal error**.
 * > Parse error: syntax error, unexpected ‘endforeach’ (T_ENDFOREACH) in C:\wamp\
   > www\wordpress\wp-content\plugins\bbpress-ignore-user\bbpress-ignore-user.php
   > on line 169
 * I am using wampserver (clean install) for coding a quick mod needed for a website.
   Installed the latest version of WP, bbPress and bbPress Ignore User.
 * Apache Version: 2.4.2
    PHP Version: 5.4.3 MySQL Version: 5.5.24
 * [http://wordpress.org/extend/plugins/bbpress-ignore-user/](http://wordpress.org/extend/plugins/bbpress-ignore-user/)

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

 *  Thread Starter [strayAncient](https://wordpress.org/support/users/strayancient/)
 * (@strayancient)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/parse-error-unexpected-endforeach/#post-3213635)
 * Solution (from forums.phpfreaks.com):
 * enable PHP “short open tag” because the plugin code uses it in some places.
 *  [Keith](https://wordpress.org/support/users/sononaco/)
 * (@sononaco)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/parse-error-unexpected-endforeach/#post-3213729)
 * Enabling short open tags is bad form. Fix the plugin by editing line 161:
 * Change
 * `<td class="data"><?`
 * To:
 * `<td class="data"><?php`

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/bbpress-ignore-user.svg)
 * [bbPress Ignore User](https://wordpress.org/plugins/bbpress-ignore-user/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bbpress-ignore-user/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bbpress-ignore-user/)
 * [Active Topics](https://wordpress.org/support/plugin/bbpress-ignore-user/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbpress-ignore-user/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbpress-ignore-user/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Keith](https://wordpress.org/support/users/sononaco/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/parse-error-unexpected-endforeach/#post-3213729)
 * Status: resolved