Support » Plugin: AffiliateImporterAI » Also Unable to Activate Plugin

  • Resolved wpkiwi2015

    (@wpkiwi2015)


    I have encountered what appears to be exactly the same error as ClarenceCM3 reported several months ago (still unresolved). My error reads: “Plugin could not be activated because it triggered a fatal error – Parse error: syntax error, unexpected ‘[‘ in C:\Server – New Site\InstantWP_4.5\iwpserver\htdocs\wordpress\wp-content\plugins\affiliateimporteral\AffiliateImporterAl.php on line 61.”

    When extracted I discovered that line 61 of AffiliateImporterAl.php reads: “register_activation_hook(__FILE__, [$this, ‘install’]);”

    As you can see, I was attempting to install this on a local trial server running Instant WordPress, before deciding to use it on my new site online.

    I am running WordPress 4.8 & Customizr child theme. The only extra plugins I have installed are the latest versions of BackupWordPress, Child Theme Configurator, WooCommerce and WordFence Security.

    While I can easily identify the unexpected ‘[‘ in line 61, I have no idea of what to replace it with, or why it would be unexpected (I am not a coder).

    My first suspicion was that the problem may have been related to the fact that I was attempting to install the plugin on a local server, but I am guessing that this was not the case with ClarenceCM3.

    A shame as this appears to be a very worthwhile plugin.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Also Unable to Activate Plugin’ is closed to new replies.