bbPress Ignore User
[resolved] Parse error: unexpected 'endforeach' (3 posts)

  1. strayAncient
    Posted 3 years ago #

    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


  2. strayAncient
    Posted 3 years ago #

    Solution (from forums.phpfreaks.com):

    enable PHP "short open tag" because the plugin code uses it in some places.

  3. Keith
    Posted 2 years ago #

    Enabling short open tags is bad form. Fix the plugin by editing line 161:


    <td class="data"><?


    <td class="data"><?php

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • bbPress Ignore User
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic