Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress not PHP 7.1 compatible – Broke my site


  • beforeplastic
    Participant

    @beforeplastic

    Hia, wanted to let you know that tonight my site went down and I lost all access to the WP admin due to BuddyPress. I was getting the below fatal error in the admin panel and the home page was getting a 500 error.

    Fatal error: Uncaught Error: [] operator not supported for strings in /home/mysite/public_html/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php:281 Stack trace: #0 /home/mysite/public_html/wp-includes/class-wp-hook.php(298): BP_Activity_Component->setup_admin_bar(”) #1 /home/mysite/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /home/mysite/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/mysite/public_html/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(143): do_action(‘bp_setup_admin_…’) #4 /home/mysite/public_html/wp-includes/class-wp-hook.php(298): bp_setup_admin_bar(Object(WP_Admin_Bar)) #5 /home/mysite/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /home/mysite/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #7 /home/mysite/public_html/wp-includes/admin-bar.php(83): do_action_ref_array(‘admin_bar_menu’, Array) #8 /home/mysite in /home/mysite/public_html/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php on line 281

    SITEGROUND TECHNICAL SUPPORT REPORT:
    I am glad to inform you I have resolved the issue. The plugin buddypress is not compatible to work with the PHP version 7.1 and caused the above mention error. In order to have this solved, I changed the PHP version to 5.6 by using the following .htaccess handler:

    Code:
    AddHandler application/x-httpd-php56 .php .php5 .php4 .php3

    Is there a plan to make buddy press 7.1PHP compliant? I really don’t like the idea of having to roll back to 5.6 to accommodate. Any idea when BuddyPress will be updated?

    Thanks so much! 🙂

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

  • danbp
    Moderator

    @danbp

    Thank you for the report. Devs are aware of the problem. You can also participate or follow this on Trac.
    Read from #7406


    beforeplastic
    Participant

    @beforeplastic

    Thank you. FYI I am still having issues:

    See ticket I just submitted to my hosting company and their response.
    You
    Posted On 21 Jan, 2017 00:55 CST
    Hello,

    I am getting this error:

    Warning: include(): Filename cannot be empty in /home/mysite/public_html/wp-content/themes/rehub/buddypress/groups/single/index.php on line 14

    Warning: include(): Failed opening ” for inclusion (include_path=’.:/usr/local/php56/pear’) in /home/mysite/public_html/wp-content/themes/rehub/buddypress/groups/single/index.php on line 14

    on this page https://www.beforeplastic.com/groups/shop-owners/

    Wondering if this is connected to the support ticket submitted yesterday.

    Thanks so much

    Support GuruPosts: 5856Posted On 21 Jan, 2017 01:10 CST
    Hello,

    Thank you for contacting our Help Desk center!

    Indeed, this is caused by changing the PHP version as it was done in the previous ticket. It seems that by solving one problem another one arises and this might mean that something in your website is misconfigured. I recommend you to seek the assistance of a professional developer to find the weak link in the coding of BuddyPress.

    If you need further assistance, do not hesitate to contact us again.

    ——

    My hope is that the BuddyPress developers are already working on a fix to this problem.
    Thanks so much!


    beforeplastic
    Participant

    @beforeplastic

    FYI we tried putting it back to 7.1 and it broke the site again:

    Error on the front end:
    Fatal error: Uncaught TypeError: Argument 1 passed to MC4WP_Form_Listener::listen() must be an instance of MC4WP_Request, instance of MC4WP_Request given, called in /home/mysite/public_html/wp-content/plugins/mailchimp-for-wp/includes/forms/class-form-manager.php on line 92 and defined in /home/mysite/public_html/wp-content/plugins/mailchimp-for-wp/includes/forms/class-form-listener.php:27 Stack trace: #0 /home/mysite/public_html/wp-content/plugins/mailchimp-for-wp/includes/forms/class-form-manager.php(92): MC4WP_Form_Listener->listen(Object(MC4WP_Request)) #1 /home/mysite/public_html/wp-content/plugins/mailchimp-for-wp/includes/forms/class-form-manager.php(59): MC4WP_Form_Manager->init_form_listener() #2 /home/mysite/public_html/wp-includes/class-wp-hook.php(298): MC4WP_Form_Manager->initialize(”) #3 /home/mysite/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #4 /home/mysite/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /home/mysite/public_html in /home/mysite/public_html/wp-content/plugins/mailchimp-for-wp/includes/forms/class-form-listener.php on line 27

    and now this error on the back end in WP-admin:
    Fatal error: Uncaught Error: [] operator not supported for strings in /home/mysite/public_html/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php:281 Stack trace: #0 /home/mysite/public_html/wp-includes/class-wp-hook.php(298): BP_Activity_Component->setup_admin_bar(”) #1 /home/mysite/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /home/mysite/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/mysite/public_html/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(143): do_action(‘bp_setup_admin_…’) #4 /home/mysite/public_html/wp-includes/class-wp-hook.php(298): bp_setup_admin_bar(Object(WP_Admin_Bar)) #5 /home/mysite/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /home/mysite/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #7 /home/mysite/public_html/wp-includes/admin-bar.php(83): do_action_ref_array(‘admin_bar_menu’, Array) #8 /home/mysite in /home/mysite/public_html/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php on line 281

    I guess 7.1 isn’t fixed yet.


    beforeplastic
    Participant

    @beforeplastic

    We put the PHP back to 5.6 and it started working again with only this one error on Groups sub-pages:
    https://www.beforeplastic.com/groups/shop-owners/

    Well that I have found… 🙂


    danbp
    Moderator

    @danbp

    A brief check for wp-content/themes/rehub/buddypress/groups/single/index.php indicates that you use a wrong file.

    There is no index.php file in the original template directory of /groups/single/…

    So it may by interesting for you to review the group page install – evtl. register permalinks again and to check how you implemented “/buddypress” into your theme. About theme, do you use a child theme ?

    Perhaps read the template doc if it is a bit unclear.

    Add BuddyPress Styles to a Theme

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar