Support » Plugin: bbPress Ignore User » Parse error: unexpected 'endforeach'

  • Resolved strayAncient

    (@strayancient)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Solution (from forums.phpfreaks.com):

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

    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.