Forum Replies Created
-
In reply to: Trying to remove bbPress causes Critical error
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;
}In reply to: Trying to remove bbPress causes Critical errorGreat, 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,
OllieIn reply to: Trying to remove bbPress causes Critical errorHi 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…’In reply to: Trying to remove bbPress causes Critical errorUnfortunately not!
In reply to: Trying to remove bbPress causes Critical errorI can deactivate that no problem
When I deactivate bbPress is when i get a critical error, as soon as activate all is fine again.
In reply to: Trying to remove bbPress causes Critical errorPMPro – bbPress Add On
In reply to: Trying to remove bbPress causes Critical errorQuite a lot as I am using PM Pro with many of it’s add-ons.
In reply to: Trying to remove bbPress causes Critical errorHi 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