• Resolved dblomster

    (@dblomster)


    Just installed version 2.5.0 and got this error when trying to active it:

    Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/system-dashboard/admin/class-system-dashboard-admin.php on line 11284

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bowo

    (@qriouslad)

    @dblomster thank you for reporting the issue. I’ve just tested on a fresh WP install and was able to activate the plugin just fine.

    Can you share your server, hosting environment? PHP version?

    Will it work if you deactivate all the other plugins first?

    Thread Starter dblomster

    (@dblomster)

    @qriouslad The reported issue occurs on PHP 7.2. Did not occur after I switched to 7.4.

    Plugin Author Bowo

    (@qriouslad)

    @dblomster well noted. Thanks for for figuring that out and reporting back.

    Marking this issue resolved for now. PHP 7.2 has reached the “end of life” phase, so I’ll probably not try and fix the issue and recommend users to go with v7.4 or later.

    Thread Starter dblomster

    (@dblomster)

    @qriouslad I encountered this error when I wanted to inspect a prospective client’s site. I only had the WP admin login details and no access to a control panel or ftp. So I was stuck with PHP 7.2 in this case, until I was able to clone the installation to another server. I think this is a common thing to encounter for consultants.

    I believe that the issue is related to this change in PHP 7.3 -> https://www.php.net/manual/en/migration73.new-features.php#migration73.new-features.core.heredoc

    If you don’t want the plugin to support PHP 7.2 I think that you should specify a minimum required PHP version in the plugin’s readme.txt file, using the Requires PHP header.

    Thanks!

    Plugin Author Bowo

    (@qriouslad)

    @dblomster thanks for reporting further details and the hint around the root cause. I have some time today to add a new feature and fix this bug which has to do with a nowdoc declaration used to generate the fast-ajax.php MU plugin.

    Please install v2.5.1 which I’ve tested to activate just fine on PHP 7.0, 7.1 and 7.2.

    …and I’d love to hear how you are using System Dasboard in your work, and would appreciate if you could drop a quick review of it. Thanks again!

    • This reply was modified 1 year, 11 months ago by Bowo.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin could not be activated because it triggered a fatal error’ is closed to new replies.