Notice: Undefined variable: wp_query in /var/www/wp-content/themes/sidewinder/functions.php on line 258

Fatal error: Uncaught Error: Call to a member function get_queried_object() on null in /var/www/wp-content/themes/sidewinder/functions.php:258 Stack trace: #0 /var/www/wp-includes/class-wp-hook.php(292): gpp_base_index_loop_sw('') #1 /var/www/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #2 /var/www/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #3 /var/www/wp-content/themes/base/library/extensions/hooks.php(24): do_action('gpp_base_archiv...') #4 /var/www/wp-content/themes/base/archive.php(23): gpp_base_archive_loop_hook() #5 /var/www/wp-includes/template-loader.php(106): include('/var/www/wp-con...') #6 /var/www/wp-blog-header.php(19): require_once('/var/www/wp-inc...') #7 /var/www/index.php(17): require('/var/www/wp-blo...') #8 {main} thrown in /var/www/wp-content/themes/sidewinder/functions.php on line 258