• Resolved garteth

    (@garteth)


    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/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter garteth

    (@garteth)

    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

    I got the same error too

    Plugin Author nit3watch

    (@nit3watch)

    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.

    I have the same thing happening..

    Plugin Author nit3watch

    (@nit3watch)

    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.

    3.5.1 wordpress

    1.7.1 buddypress.

    same error, can’t be activated.

    Plugin Author nit3watch

    (@nit3watch)

    I have uploaded version 1.03 – I think this should correct the problem. Please download the latest version and try again.

    Thread Starter garteth

    (@garteth)

    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

    I am getting this same error with fresh install of wordpress, bbpress, and buddypress.

    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?

    i’m using the latest and i’m getting the same error…

    Plugin Author nit3watch

    (@nit3watch)

    I realized what the issue is. I will amend the issues and upload a new version tomorrow

    Plugin Author nit3watch

    (@nit3watch)

    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

    (@nit3watch)

    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

    (@nit3watch)

    Version 2.0 is up and has resolved the problem

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Error after activation’ is closed to new replies.