Fatal error: Uncaught Error: Call to a member function is_main_query() on string in /home/.sites/185/site2136541/web/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php:228 Stack trace: #0 /home/.sites/185/site2136541/web/wp-includes/class-wp-hook.php(307): WPSEO_Sitemaps->redirect('beautyagency_ch...') #1 /home/.sites/185/site2136541/web/wp-includes/plugin.php(191): WP_Hook->apply_filters('beautyagency_ch...', Array) #2 /home/.sites/185/site2136541/web/wp-content/themes/beautyagency/models-category.php(42): apply_filters('pre_get_posts', 'beautyagency_ch...') #3 /home/.sites/185/site2136541/web/wp-includes/template-loader.php(106): include('/home/.sites/18...') #4 /home/.sites/185/site2136541/web/wp-blog-header.php(19): require_once('/home/.sites/18...') #5 /home/.sites/185/site2136541/web/index.php(17): require('/home/.sites/18...') #6 {main} thrown in /home/.sites/185/site2136541/web/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php on line 228