Title: syntax error
Last modified: October 13, 2017

---

# syntax error

 *  Resolved [saadhassan](https://wordpress.org/support/users/saadhassan/)
 * (@saadhassan)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-170/)
 * Hello Help me my website “wwww.vidizmo.com” n worpress Installed WordPress Plugin“
   Bing Custom Search for WordPress”
 * Link: [https://wordpress.org/plugins/wp-bing-search/#installation](https://wordpress.org/plugins/wp-bing-search/#installation).
 * I successfully Installed but when I activate this plugin I found Error (Parse
   error: syntax error, unexpected ‘[‘ in /home/content/01/11603001/html/wp-content/
   plugins/wp-bing-search/wp-bing-search.php on line 230)
 * When I followed instruction of error and go
 * wp-bing-search/wp-bing-search.php on line 230)
 * [https://www.vidizmo.com/wp-admin/plugin-editor.php?file=wp-bing-search%2Fwp-bing-search.php&plugin=wp-bing-search%2Fwp-bing-search.php](https://www.vidizmo.com/wp-admin/plugin-editor.php?file=wp-bing-search%2Fwp-bing-search.php&plugin=wp-bing-search%2Fwp-bing-search.php)
 * on line 230 so I found this line
 * $options[‘headers’][‘Ocp-Apim-Subscription-Key’] = self::get_args()[‘api_key’];

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Steve Bruner](https://wordpress.org/support/users/sbruner/)
 * (@sbruner)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-170/#post-9642157)
 * Did you fill out all the settings on the Bing settings screen?
 *  [djdunn](https://wordpress.org/support/users/djdunn/)
 * (@djdunn)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-170/#post-9741530)
 * 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](https://wordpress.org/support/users/sbruner/)
 * (@sbruner)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-170/#post-9741696)
 * [@djdunn](https://wordpress.org/support/users/djdunn/)– are you getting the same
   error as above?
 *  [blite](https://wordpress.org/support/users/blite/)
 * (@blite)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-170/#post-9752897)
 * 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
       ```
   
 *  [blite](https://wordpress.org/support/users/blite/)
 * (@blite)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-170/#post-9753721)
 * 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](https://wordpress.org/support/users/sbruner/)
 * (@sbruner)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-170/#post-9760874)
 * 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.

 * ![](https://ps.w.org/wp-bing-search/assets/icon-128x128.png?rev=2938308)
 * [Bing Custom Search for WordPress](https://wordpress.org/plugins/wp-bing-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-bing-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-bing-search/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-bing-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-bing-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-bing-search/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Steve Bruner](https://wordpress.org/support/users/sbruner/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-170/#post-9760874)
 * Status: resolved