Title: Error after activation
Last modified: August 21, 2016

---

# Error after activation

 *  Resolved [garteth](https://wordpress.org/support/users/garteth/)
 * (@garteth)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/)
 * Hello
 * After activating the plugin I get the following:
 * Plugin could not be activated because it triggered a fatal error.
 * Parse error: syntax error, unexpected ‘[‘, expecting ‘,’ or ‘;’ in /home/content/
   82/10387182/html/socialmummys/wp-content/plugins/buddypress-social/loader.php
   on line 59
 * Any ideas why this might be happening?
 * Thanks
 * [http://wordpress.org/extend/plugins/buddypress-social/](http://wordpress.org/extend/plugins/buddypress-social/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/error-after-activation-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-after-activation-2/page/2/?output_format=md)

 *  Thread Starter [garteth](https://wordpress.org/support/users/garteth/)
 * (@garteth)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918503)
 * even after the update, still getting this message:
 * Parse error: syntax error, unexpected ‘[‘, expecting ‘,’ or ‘;’ in /home/content/
   82/10387182/html/socialmummys/wp-content/plugins/buddypress-social/loader.php
   on line 61
 *  [deafnation](https://wordpress.org/support/users/deafnation/)
 * (@deafnation)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918575)
 * I got the same error too
 *  Plugin Author [nit3watch](https://wordpress.org/support/users/nit3watch/)
 * (@nit3watch)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918593)
 * Thanks for the feed back – can you please provide your buddypress and wordpress
   versions. Also it might be conflicting with another plugin. If you can try and
   disable all other plugins and see if it gives the error.
 * I have tested with the later wp and bp and the plugin works.
 *  [dannisuriano](https://wordpress.org/support/users/dannisuriano/)
 * (@dannisuriano)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918608)
 * I have the same thing happening..
 *  Plugin Author [nit3watch](https://wordpress.org/support/users/nit3watch/)
 * (@nit3watch)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918618)
 * Please provide your buddypress and wordpress versions. Also it might be conflicting
   with another plugin. If you can try and disable all other plugins and see if 
   it gives the error.
 * I have tested with the later wp and bp and the plugin works.
 *  [Keno](https://wordpress.org/support/users/tangpage/)
 * (@tangpage)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918624)
 * 3.5.1 wordpress
 * 1.7.1 buddypress.
 * same error, can’t be activated.
 *  Plugin Author [nit3watch](https://wordpress.org/support/users/nit3watch/)
 * (@nit3watch)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918662)
 * I have uploaded version 1.03 – I think this should correct the problem. Please
   download the latest version and try again.
 *  Thread Starter [garteth](https://wordpress.org/support/users/garteth/)
 * (@garteth)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918667)
 * This is not resolved because I am still getting the message:
 * Parse error: syntax error, unexpected ‘[‘, expecting ‘,’ or ‘;’ in /home/content/
   82/10387182/html/socialmummys/wp-content/plugins/buddypress-social/loader.php
   on line 60
 *  [Discount Web Designer](https://wordpress.org/support/users/discountwebdesigner/)
 * (@discountwebdesigner)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918680)
 * I am getting this same error with fresh install of wordpress, bbpress, and buddypress.
 *  [daniel@givethehalo.org](https://wordpress.org/support/users/danielgivethehaloorg/)
 * (@danielgivethehaloorg)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918688)
 * I commented out the lines that refer to the short codes in the loader.php and
   reloaded. The plug in then failed at:
 * Parse error: syntax error, unexpected ‘[‘ in /home/amg0/public_html/givethehalo/
   wp-content/plugins/buddypress-social/activity-sharing.php on line 7
 * where another set of short codes are in an array. I don’t recall seeing shortcodes
   used this way.
 * Where does the plugin get the data?
 *  [nando99](https://wordpress.org/support/users/nando99/)
 * (@nando99)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918692)
 * i’m using the latest and i’m getting the same error…
 *  Plugin Author [nit3watch](https://wordpress.org/support/users/nit3watch/)
 * (@nit3watch)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918704)
 * I realized what the issue is. I will amend the issues and upload a new version
   tomorrow
 *  Plugin Author [nit3watch](https://wordpress.org/support/users/nit3watch/)
 * (@nit3watch)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918728)
 * I cant replicate the error on my local host or on my live server using latest
   wp and bp, hence I would need some assistance in order to resolve the issue. 
   It has something to do with using an array with wordpress’s get_option but I 
   cant find anything helpfull..
 * Can you try replacing lines 55 – 66 in loader.php with:
 *     ```
       // add custom social button colors to the header
           add_action( 'wp_head', 'my_custom_css_hook' );
           function my_custom_css_hook( ) {
   
               $standard_color =
       get_option('my_components_settings')[buddy_social_color_0];
               $hover_color =
       get_option('my_components_settings')[buddy_social_color_1];
   
               echo '<style type="text/css">
               .social-buttons a {
                   color: ' . $standard_color . ';
               }
               .social-buttons a:hover {
                   color: ' . $hover_color . ';
               }
               </style>';
           }
       ```
   
 * if it gives an error about activity-sharing.php, then I know what the
    problem
   is.
 * If the above still gives a error about loader.php, try replacing lines
    55 – 
   66 in loader.php with:
 *     ```
       // add custom social button colors to the header
           add_action( 'wp_head', 'my_custom_css_hook' );
           function my_custom_css_hook( ) {
   
               $standard_color = get_option('my_components_settings');
               $hover_color = get_option('my_components_settings');
   
               echo '<style type="text/css">
               .social-buttons a {
                   color: ' . $standard_color[buddy_social_color_0] . ';
               }
               .social-buttons a:hover {
                   color: ' . $hover_color[buddy_social_color_1] . ';
               }
               </style>';
           }
       ```
   
 * Let me know and thanks again for all your assistance so far.
 *  Plugin Author [nit3watch](https://wordpress.org/support/users/nit3watch/)
 * (@nit3watch)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918734)
 * Im going to rewrite the admin options that are dependant on get_option so eBay
   the plugin works like buddypress twitter and my other plugins. I world’s still
   like to know what wad causing the error so if any one gets the error in version
   1.3,please try the above and pay back your findings.
 *  Plugin Author [nit3watch](https://wordpress.org/support/users/nit3watch/)
 * (@nit3watch)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/#post-3918735)
 * Version 2.0 is up and has resolved the problem

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/error-after-activation-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-after-activation-2/page/2/?output_format=md)

The topic ‘Error after activation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-social_877c85.svg)
 * [BuddyPress Social](https://wordpress.org/plugins/buddypress-social/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-social/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-social/reviews/)

 * 17 replies
 * 9 participants
 * Last reply from: [nit3watch](https://wordpress.org/support/users/nit3watch/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/error-after-activation-2/page/2/#post-3918740)
 * Status: resolved