PHP Error with 7.3
-
Having upgraded to PHP 7.3 I’m getting the following errors:
NOTICE: wp-includes/class-wp-comment-query.php:853 – compact(): Undefined variable: limits
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/graphene/page.php’), get_template_part, locate_template, load_template, require(‘/themes/graphene/loop-page.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, bp_replace_the_content, apply_filters(‘bp_replace_the_content’), WP_Hook->apply_filters, BP_Members_Theme_Compat->single_dummy_content, bp_buffer_template_part, bp_get_template_part, bp_locate_template, load_template, require(‘/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php’), bp_get_template_part, bp_locate_template, load_template, require(‘/themes/graphene-child/buddypress/members/single/profile.php’), bp_get_template_part, bp_locate_template, load_template, require(‘/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/activity-loop.php’), bp_has_activities, BP_Activity_Template->__construct, bp_activity_get, BP_Activity_Activity::get, apply_filters(‘bp_activity_get_where_conditions’), WP_Hook->apply_filters, bp_docs_access_protection_for_activity_feed, BP_Docs_Access_Query->get_comment_ids, get_comments, WP_Comment_Query->query, WP_Comment_Query->get_comments, WP_Comment_Query->get_comment_ids, compact
NOTICE: wp-includes/class-wp-comment-query.php:853 – compact(): Undefined variable: groupby
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/graphene/page.php’), get_template_part, locate_template, load_template, require(‘/themes/graphene/loop-page.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, bp_replace_the_content, apply_filters(‘bp_replace_the_content’), WP_Hook->apply_filters, BP_Members_Theme_Compat->single_dummy_content, bp_buffer_template_part, bp_get_template_part, bp_locate_template, load_template, require(‘/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php’), bp_get_template_part, bp_locate_template, load_template, require(‘/themes/graphene-child/buddypress/members/single/profile.php’), bp_get_template_part, bp_locate_template, load_template, require(‘/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/activity-loop.php’), bp_has_activities, BP_Activity_Template->__construct, bp_activity_get, BP_Activity_Activity::get, apply_filters(‘bp_activity_get_where_conditions’), WP_Hook->apply_filters, bp_docs_access_protection_for_activity_feed, BP_Docs_Access_Query->get_comment_ids, get_comments, WP_Comment_Query->query, WP_Comment_Query->get_comments, WP_Comment_Query->get_comment_ids, compactYou can see from the trace that these stem from BP Docs, the PHP manual for compact() has a note to say from 7.3 strings that are not set will be warned. I’m uncertain if this is a BP Docs issue or if it’s something missing in WP since I can’t see a problem with the originating get_comments() call.
- The topic ‘PHP Error with 7.3’ is closed to new replies.