• Resolved thomasreva

    (@thomasreva)


    I’m trying to activate the plugin, but get an error message when trying to activate. I’m running the latest version of WordPress on a self-hosted site (https://michelleandthomas.net). Any ideas as to what might be causing this?

    The error message I’m getting:

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected '[' in /home/thomasre/public_html/michelleandthomas.net/wp-content/plugins/wpgiftregistry/admin/class-WP_Gift_Registry-admin.php on line 251

    This is line 251, doesn’t strike me as particularly problematic: $currency_symbol_placement = get_option('wishlist_settings')['currency_symbol_placement'];

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

    (@3qbik)

    Hey @thomasreva,
    I just tried installing and activating on a fresh wordpress install, but I wasn’t able to reproduce the error.

    Have you tried deleting and reinstalling the plugin?
    I don’t see a problem with line 251 either.

    Best,
    Moritz

    Thread Starter thomasreva

    (@thomasreva)

    Thanks a lot for getting back to me, Moritz. Unfortunately, reinstalling the plugin does not change this. I also tried updating to the latest version, without any luck.

    Plugin Author dreiQBIK

    (@3qbik)

    Which PHP Version are you on?
    Maybe it’s an old one where this syntax is not supported yet?

    Plugin Author dreiQBIK

    (@3qbik)

    This seems to be an Issue with old PHP Versions. I’ll mark it as resolved.

    Thread Starter thomasreva

    (@thomasreva)

    Sorry about the late reply, you are indeed correct that it’s related to the PHP version. Once I updated this, all is well. Thanks very much for your help, highly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error when trying to activate’ is closed to new replies.