ollietubb1 (@ollietubb1)

Forum Replies Created

Viewing 8 replies - 26 through 33 (of 33 total)
  • @ollietubb1

    Participant

    I think this is the problem? … don’t recall adding it but assume it is safe to remove as I am removing bbPress for now at least, what do you think?

    add_filter(‘body_class’, ‘modify_body_classes’, 20);

    function modify_body_classes( $classes ) {
    if( is_bbpress() ) {
    $remove_classes = array(‘et_right_sidebar’, ‘et_left_sidebar’, ‘et_includes_sidebar’);
    foreach( $classes as $key => $value ) {
    if ( in_array( $value, $remove_classes ) ) unset( $classes[$key] );
    }
    $classes[] = ‘et_full_width_page’;
    }
    return $classes;
    }

    @ollietubb1

    Participant

    Great, thank you, I was suspecting this is the culprit but glad to hear from someone with clearly much more experience than me!

    I will take a look now and let you know how I get on.

    Thanks again,
    Ollie

    @ollietubb1

    Participant

    Hi Robin,
    Thanks for sticking with me here. I have error logs on the server so I tried again to disable bbpress and below is the log. I disabled and deleted Divi Mega Pro as I realised I didn’t use that in the end but it didn’t solve it.
    Let me know what you think.
    Thanks,
    Ollie

    [Wed Feb 02 08:22:26.842483 2022] [proxy_fcgi:error] [pid 3110766] [client 2a00:23c6:6f4f:d001:20eb:9d22:835a:c06c:0] AH01071: Got error ‘PHP message: PHP Warning: Undefined variable $force in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/plugins/divi-mega-pro/class.divi-mega-pro.admin.core.php on line 208’, referer: https://wbc1.otiscreative.co.uk/wp-admin/plugins.php
    [Wed Feb 02 08:22:33.374828 2022] [proxy_fcgi:error] [pid 3109704] [client 2a00:23c6:6f4f:d001:20eb:9d22:835a:c06c:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function is_bbpress() in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi-Child-Theme/functions.php:28\nStack trace:\n#0 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/class-wp-hook.php(309): modify_body_classes()\n#1 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/plugin.php(189): WP_Hook->apply_filters()\n#2 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/post-template.php(836): apply_filters()\n#3 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/post-template.php(595): get_body_class()\n#4 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi/header.php(29): body_class()\n#5 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/template.php(770): require_once(‘…’)\n#6 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/template.php(716): load_template()\n#7 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi/in…’, referer: https://wbc1.otiscreative.co.uk/wp-admin/plugins.php?plugin_status=all&paged=1&s
    [Wed Feb 02 08:22:38.838643 2022] [proxy_fcgi:error] [pid 3133583] [client 2a00:23c6:6f4f:d001:20eb:9d22:835a:c06c:0] AH01071: Got error ‘PHP message: PHP Warning: Undefined variable $force in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/plugins/divi-mega-pro/class.divi-mega-pro.admin.core.php on line 208’, referer: https://wbc1.otiscreative.co.uk/wp-admin/plugins.php?plugin_status=all&paged=1&s
    [Wed Feb 02 08:24:39.400052 2022] [proxy_fcgi:error] [pid 3109701] [client 2a00:23c6:6f4f:d001:20eb:9d22:835a:c06c:0] AH01071: Got error ‘PHP message: PHP Warning: Undefined variable $force in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/plugins/divi-mega-pro/class.divi-mega-pro.admin.core.php on line 208’, referer: https://wbc1.otiscreative.co.uk/wp-admin/plugins.php
    [Wed Feb 02 08:25:12.226569 2022] [proxy_fcgi:error] [pid 3110766] [client 2a00:23c6:6f4f:d001:20eb:9d22:835a:c06c:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function is_bbpress() in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi-Child-Theme/functions.php:28\nStack trace:\n#0 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/class-wp-hook.php(309): modify_body_classes()\n#1 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/plugin.php(189): WP_Hook->apply_filters()\n#2 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/post-template.php(836): apply_filters()\n#3 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/post-template.php(595): get_body_class()\n#4 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi/header.php(29): body_class()\n#5 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/template.php(770): require_once(‘…’)\n#6 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/template.php(716): load_template()\n#7 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi/in…’

    @ollietubb1

    Participant

    Unfortunately not!

    @ollietubb1

    Participant

    I can deactivate that no problem

    When I deactivate bbPress is when i get a critical error, as soon as activate all is fine again.

    @ollietubb1

    Participant

    PMPro – bbPress Add On

    @ollietubb1

    Participant

    Quite a lot as I am using PM Pro with many of it’s add-ons.

    @ollietubb1

    Participant

    Hi Robin,

    Thank for your reply and advice.

    Can I ask, is there any danger of losing any data by switching to another theme or disabling plugins? Just makes me a little nervous that I switch to another theme and then everything I have built with Divi is gone!

    Thank you,
    Ollie

Viewing 8 replies - 26 through 33 (of 33 total)