Support » Plugin: WordPress phpinfo() » syntax error, unexpected T_FUNCTION

  • Resolved photoMaldives


    Well, this is weird!
    It must be something to do with my site/setup specifically, but when I try to activate this plugin I get an error in the dashboard:

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected T_FUNCTION in /.../wp-content/plugins/wordpress-php-info/includes/classes/phpinfo-page.php on line 15
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chris Flannagan


    Are you possibly on an older version of WordPress? The function used here is a very standard WordPress action/function combo so I don’t know why it would cause an error for you.

    Thread Starter photoMaldives


    No, everything was up to date apart from PHP. I used a different plugin in the end, which worked OK.

    I did have some problems with Wordfence config though, so it might have been that that caused the error, seemingly by your plugin.

    Thanks (please close).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘syntax error, unexpected T_FUNCTION’ is closed to new replies.