Warning: Undefined array key “query_var” in class-wp-list-util.php on line 170
-
I’m on PHP Version 8.1
On every page request I get this nasty warning:
( ! )?Warning: Undefined array key “query_var” in C:\Users\schae\Local Sites\wenet-dev\app\public\wp-includes\class-wp-list-util.php on line?170Call Stack#TimeMemoryFunctionLocation10.0019368160{main}( )…\index.php:020.0019369440require_once(?‘C:\Users\schae\Local Sites\wenet-dev\app\public\wp-admin\admin.php?)…\index.php:1030.0019370272require_once(?‘C:\Users\schae\Local Sites\wenet-dev\app\public\wp-load.php?)…\admin.php:3440.0020370872require_once(?‘C:\Users\schae\Local Sites\wenet-dev\app\public\wp-config.php?)…\wp-load.php:5050.0020379848require_once(?‘C:\Users\schae\Local Sites\wenet-dev\app\public\wp-settings.php?)…\wp-config.php:8760.84899188864do_action(?$hook_name =?‘init’?)…\wp-settings.php:70070.84899189240WP_Hook->do_action(?$args =?[0 => ”]?)…\plugin.php:51780.84899189240WP_Hook->apply_filters(?$value =?”,?$args =?[0 => ”]?)…\class-wp-hook.php:34891.208214872696WPSight_General::listing_query_vars_details(?”?)…\class-wp-hook.php:324101.219714913624wpsight_get_query_var_by_detail(?$detail =?‘details_2’?)…\class-wpsight-general.php:923111.219714913624WPSight_General::get_query_var_by_detail(?$detail =?‘details_2’?)…\wpsight-general.php:69121.224114935072wp_list_pluck(?$input_list =?[‘details_1’ => [‘id’ => ‘details_1’, ‘label’ => ‘Anzahl Zimmer’, ‘unit’ => ”, ‘data’ => […], ‘description’ => ”, ‘query_var’ => ‘bedrooms’, ‘data_compare’ => ‘>=’, ‘data_type’ => ‘numeric’, ‘dashboard’ => TRUE, ‘position’ => 10], ‘details_2’ => [‘id’ => ‘details_2’, ‘label’ => ”, ‘unit’ => ”, ‘data’ => […], ‘description’ => ”, ‘query_var’ => ‘bathrooms’, ‘data_compare’ => ‘>=’, ‘data_type’ => ‘numeric’, ‘dashboard’ => TRUE, ‘position’ => 20, ‘priority’ => ‘151’], ‘details_3’ => [‘id’ => ‘details_3’, ‘label’ => ‘Grundstückfl?che’, ‘unit’ => ‘m2’, ‘description’ => ”, ‘query_var’ => ‘plot_size’, ‘data_compare’ => ‘>=’, ‘data_type’ => ‘numeric’, ‘dashboard’ => TRUE, ‘position’ => 30, ‘priority’ => ‘152’], ‘details_4’ => [‘id’ => ‘details_4’, ‘label’ => ‘Wohnfl?che’, ‘unit’ => ‘m2’, ‘data’ => FALSE, ‘description’ => ”, ‘query_var’ => ‘living_area’, ‘data_compare’ => ‘>=’, ‘data_type’ => ‘numeric’, ‘dashboard’ => TRUE, ‘position’ => 40, ‘priority’ => ‘153’], ‘details_5’ => [‘id’ => ‘details_5’, ‘label’ => ‘Terrasse’, ‘unit’ => ‘m2’, ‘data’ => FALSE, ‘description’ => ”, ‘query_var’ => ‘terrace’, ‘data_compare’ => ‘LIKE’, ‘data_type’ => ‘CHAR’, ‘dashboard’ => TRUE, ‘position’ => 50, ‘priority’ => ‘154’], ‘details_6’ => [‘id’ => ‘details_6’, ‘label’ => ‘Anzahl Parkpl?tze’, ‘unit’ => ”, ‘data’ => FALSE, ‘description’ => ”, ‘query_var’ => ‘parking’, ‘data_compare’ => ‘LIKE’, ‘data_type’ => ‘CHAR’, ‘dashboard’ => TRUE, ‘position’ => 60, ‘priority’ => ‘155’], ‘details_7’ => [‘id’ => ‘details_7’, ‘label’ => ‘Heizungsart’, ‘unit’ => ”, ‘data’ => FALSE, ‘description’ => ”, ‘query_var’ => ‘heating’, ‘data_compare’ => ‘LIKE’, ‘data_type’ => ‘CHAR’, ‘dashboard’ => TRUE, ‘position’ => 70, ‘priority’ => ‘156’], ‘details_8’ => [‘id’ => ‘details_8’, ‘label’ => ‘Baujahr’, ‘unit’ => ”, ‘data’ => FALSE, ‘description’ => ”, ‘query_var’ => ‘built_in’, ‘data_compare’ => ‘LIKE’, ‘data_type’ => ‘CHAR’, ‘dashboard’ => TRUE, ‘position’ => 80, ‘priority’ => ‘157’], ‘details_9’ => [‘id’ => ‘details_9’, ‘label’ => ‘Entfernung n?chster Bahnhof’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_9’, ‘position’ => ‘158’], ‘details_10’ => [‘id’ => ‘details_10’, ‘label’ => ‘W?rmeverteilung’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_10’, ‘position’ => ‘159’], ‘details_11’ => [‘id’ => ‘details_11’, ‘label’ => ‘Entfernung Gesch?fte’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_11’, ‘position’ => ‘160’], ‘details_12’ => [‘id’ => ‘details_12’, ‘label’ => ‘Fussweg Gesch?fte’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_12’, ‘position’ => ‘161’], ‘details_13’ => [‘id’ => ‘details_13’, ‘label’ => ‘Fahrzeit n?chster Flughafen’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_13’, ‘position’ => ‘162’], ‘details_14’ => [‘id’ => ‘details_14’, ‘label’ => ‘Fussweg zu ?ffentl. Verkehrsmitteln’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_14’, ‘position’ => ‘163’], ‘details_15’ => [‘id’ => ‘details_15’, ‘label’ => ‘Verfügbar ab’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_15’, ‘position’ => ‘164’], ‘details_16’ => [‘id’ => ‘details_16’, ‘label’ => ‘Objektzustand’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_16’, ‘position’ => ‘165’], ‘details_17’ => [‘id’ => ‘details_17’, ‘label’ => ‘Letzte Modernisierung’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_17’, ‘position’ => ‘166’], ‘details_18’ => [‘id’ => ‘details_18’, ‘label’ => ‘Renovierungsjahr’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_18’, ‘position’ => ‘167’], ‘details_19’ => [‘id’ => ‘details_19’, ‘label’ => ‘Sanierungsjahr’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_19’, ‘position’ => ‘168’], ‘details_20’ => [‘id’ => ‘details_20’, ‘label’ => ‘Qualit?t der Ausstattung’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_20’, ‘position’ => ‘169’], ‘details_21’ => [‘id’ => ‘details_21’, ‘label’ => ‘Preis auf Anfrage’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_21’, ‘position’ => ‘170’], ‘details_22’ => [‘id’ => ‘details_22’, ‘label’ => ‘Fussweg Sekundarschule’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_22’, ‘position’ => ‘171’], ‘details_23’ => [‘id’ => ‘details_23’, ‘label’ => ‘Fahrzeit n?chste Autobahn’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_23’, ‘position’ => ‘172’], ‘details_24’ => [‘id’ => ‘details_24’, ‘label’ => ‘Anzahl Aussenparkpl?tze’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_24’, ‘position’ => ‘173’], ‘details_25’ => [‘id’ => ‘details_25’, ‘label’ => ‘Stellplatztyp’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_25’, ‘position’ => ‘174’], ‘details_26’ => [‘id’ => ‘details_26’, ‘label’ => ‘Fahrzeit Bank’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_26’, ‘position’ => ‘175’], ‘details_27’ => [‘id’ => ‘details_27’, ‘label’ => ‘Fahrzeit Krankenhaus’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_27’, ‘position’ => ‘176’], ‘details_28’ => [‘id’ => ‘details_28’, ‘label’ => ‘Fussweg Primarschule’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_28’, ‘position’ => ‘177’], ‘details_29’ => [‘id’ => ‘details_29’, ‘label’ => ‘Kubatur’, ‘unit’ => ”, ‘description’ => ”, ‘dashboard’ => TRUE, ‘query_var’ => ‘details_29’, ‘position’ => ‘178’], ‘details_30’ => [‘priority’ => ‘179’, ‘label’ => ”, ‘unit’ => ”]],?$field =?‘query_var’,?$index_key =???? )…\class-wpsight-general.php:263131.224214935168WP_List_Util->pluck(?$field =?‘query_var’,?$index_key =?NULL?)…\functions.php:5336
this made me dig a bit deeper into the code and I found the origin of this in class-wpsight-general.php
public function __construct( ) {
add_filter( 'wpsight_details', array( $this, 'check_standard_details' ), 20 );
add_filter( 'wpsight_rental_periods', array( $this, 'check_rental_periods' ), 20 );
add_filter( 'init', array( $this, 'listing_query_vars_general' ) );
add_filter( 'init', array( $this, 'listing_query_vars_details' ) );
}It seems that on every page load wpcasa is doing stuff… totally unneeded!
- You must be logged in to reply to this topic.