Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Steve Bruner

    (@sbruner)

    Did you fill out all the settings on the Bing settings screen?

    I’m having the same issue. I can’t fill in the settings because this is a “Fatal Error” and the plugin cannot be activated.

    Plugin Author Steve Bruner

    (@sbruner)

    @djdunn– are you getting the same error as above?

    I’m experiencing the same thing. I cannot activate the plugin. The error is:

    
    Plugin could not be activated because it triggered a fatal error.
    
    Parse error: syntax error, unexpected '[' in /srv/www/apps/wordpress/installs/production/wp-content/plugins/wp-bing-search/wp-bing-search.php on line 352
    

    I could only get the plugin to activate by commenting out line 352, THEN activating. Once I did that, I could fill in the settings, but uncommenting the line resulted in the plug-in crashing again. I finally ended up hard-coding the API key:

    
    #$options['headers']['Ocp-Apim-Subscription-Key'] = self::get_args()['api_key'];                                                 
    $options['headers']['Ocp-Apim-Subscription-Key']="XXXXXXXXXXXXXXXXXXXXXXXXX";
    

    This is obviously a problem for multiple sites unless I create copies of the plug-in.

    Any assistance would be appreciated!

    Thanks,
    John

    Plugin Author Steve Bruner

    (@sbruner)

    This issue should be resolved in v2.0.3. Looks like it only effected sites that are running older versions of PHP.

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