Deprecated: Illuminate\Foundation\Validation\ValidatesRequests::validateWith(): Implicitly marking parameter $request as nullable is deprecated, the explicit nullable type must be used instead in /home/cosmo/site.cosmologix.ca/vendor/roots/acorn/src/Illuminate/Foundation/Validation/ValidatesRequests.php on line 21
Whoops! There was an error.
ErrorException (E_WARNING)
Cannot modify header information - headers already sent by (output started at /home/cosmo/site.cosmologix.ca/vendor/roots/acorn/src/Illuminate/Foundation/Validation/ValidatesRequests.php:21) ErrorException thrown with message "Cannot modify header information - headers already sent by (output started at /home/cosmo/site.cosmologix.ca/vendor/roots/acorn/src/Illuminate/Foundation/Validation/ValidatesRequests.php:21)" Stacktrace: #10 ErrorException in /home/cosmo/site.cosmologix.ca/public/wp/wp-includes/pluggable.php:1450 #9 header in /home/cosmo/site.cosmologix.ca/public/wp/wp-includes/pluggable.php:1450 #8 wp_redirect in /home/cosmo/site.cosmologix.ca/public/wp/wp-includes/pluggable.php:1560 #7 wp_safe_redirect in /home/cosmo/site.cosmologix.ca/public/content/plugins/seo-by-rank-math/includes/helpers/class-wordpress.php:41 #6 RankMath\Helper:redirect in /home/cosmo/site.cosmologix.ca/public/content/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php:104 #5 RankMath\Sitemap\Router:template_redirect in /home/cosmo/site.cosmologix.ca/public/wp/wp-includes/class-wp-hook.php:324 #4 WP_Hook:apply_filters in /home/cosmo/site.cosmologix.ca/public/wp/wp-includes/class-wp-hook.php:348 #3 WP_Hook:do_action in /home/cosmo/site.cosmologix.ca/public/wp/wp-includes/plugin.php:517 #2 do_action in /home/cosmo/site.cosmologix.ca/public/wp/wp-includes/template-loader.php:13 #1 require_once in /home/cosmo/site.cosmologix.ca/public/wp/wp-blog-header.php:19 #0 require in /home/cosmo/site.cosmologix.ca/public/index.php:9
10
ErrorException
/public/wp/wp-includes/pluggable.php1450
9
header
/public/wp/wp-includes/pluggable.php1450
8
wp_redirect
/public/wp/wp-includes/pluggable.php1560
7
wp_safe_redirect
/public/content/plugins/seo-by-rank-math/includes/helpers/class-wordpress.php41
6
RankMath\Helper redirect
/public/content/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php104
5
RankMath\Sitemap\Router template_redirect
/public/wp/wp-includes/class-wp-hook.php324
4
WP_Hook apply_filters
/public/wp/wp-includes/class-wp-hook.php348
3
WP_Hook do_action
/public/wp/wp-includes/plugin.php517
2
do_action
/public/wp/wp-includes/template-loader.php13
1
require_once
/public/wp/wp-blog-header.php19
0
require
/public/index.php9
/home/cosmo/site.cosmologix.ca/public/wp/wp-includes/pluggable.php
        $location = wp_sanitize_redirect( $location );
 
        if ( ! $is_IIS && 'cgi-fcgi' !== PHP_SAPI ) {
            status_header( $status ); // This causes problems on IIS and some FastCGI setups.
        }
 
        /**
         * Filters the X-Redirect-By header.
         *
         * Allows applications to identify themselves when they're doing a redirect.
         *
         * @since 5.1.0
         *
         * @param string|false $x_redirect_by The application doing the redirect or false to omit the header.
         * @param int          $status        Status code to use.
         * @param string       $location      The path to redirect to.
         */
        $x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
        if ( is_string( $x_redirect_by ) ) {
            header( "X-Redirect-By: $x_redirect_by" );
        }
 
        header( "Location: $location", true, $status );
 
        return true;
    }
endif;
 
if ( ! function_exists( 'wp_sanitize_redirect' ) ) :
    /**
     * Sanitizes a URL for use in a redirect.
     *
     * @since 2.3.0
     *
     * @param string $location The path to redirect to.
     * @return string Redirect-sanitized URL.
     */
    function wp_sanitize_redirect( $location ) {
        // Encode spaces.
        $location = str_replace( ' ', '%20', $location );
Arguments
  1. "Cannot modify header information - headers already sent by (output started at /home/cosmo/site.cosmologix.ca/vendor/roots/acorn/src/Illuminate/Foundation/Validation/ValidatesRequests.php:21)"
    
/home/cosmo/site.cosmologix.ca/public/wp/wp-includes/pluggable.php
        $location = wp_sanitize_redirect( $location );
 
        if ( ! $is_IIS && 'cgi-fcgi' !== PHP_SAPI ) {
            status_header( $status ); // This causes problems on IIS and some FastCGI setups.
        }
 
        /**
         * Filters the X-Redirect-By header.
         *
         * Allows applications to identify themselves when they're doing a redirect.
         *
         * @since 5.1.0
         *
         * @param string|false $x_redirect_by The application doing the redirect or false to omit the header.
         * @param int          $status        Status code to use.
         * @param string       $location      The path to redirect to.
         */
        $x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
        if ( is_string( $x_redirect_by ) ) {
            header( "X-Redirect-By: $x_redirect_by" );
        }
 
        header( "Location: $location", true, $status );
 
        return true;
    }
endif;
 
if ( ! function_exists( 'wp_sanitize_redirect' ) ) :
    /**
     * Sanitizes a URL for use in a redirect.
     *
     * @since 2.3.0
     *
     * @param string $location The path to redirect to.
     * @return string Redirect-sanitized URL.
     */
    function wp_sanitize_redirect( $location ) {
        // Encode spaces.
        $location = str_replace( ' ', '%20', $location );
Arguments
  1. "X-Redirect-By: Rank Math"
    
/home/cosmo/site.cosmologix.ca/public/wp/wp-includes/pluggable.php
     * @return bool False if the redirect was canceled, true otherwise.
     */
    function wp_safe_redirect( $location, $status = 302, $x_redirect_by = 'WordPress' ) {
 
        // Need to look at the URL the way it will end up in wp_redirect().
        $location = wp_sanitize_redirect( $location );
 
        /**
         * Filters the redirect fallback URL for when the provided redirect is not safe (local).
         *
         * @since 4.3.0
         *
         * @param string $fallback_url The fallback URL to use by default.
         * @param int    $status       The HTTP response status code to use.
         */
        $fallback_url = apply_filters( 'wp_safe_redirect_fallback', admin_url(), $status );
 
        $location = wp_validate_redirect( $location, $fallback_url );
 
        return wp_redirect( $location, $status, $x_redirect_by );
    }
endif;
 
if ( ! function_exists( 'wp_validate_redirect' ) ) :
    /**
     * Validates a URL for use in a redirect.
     *
     * Checks whether the $location is using an allowed host, if it has an absolute
     * path. A plugin can therefore set or remove allowed host(s) to or from the
     * list.
     *
     * If the host is not allowed, then the redirect is to $fallback_url supplied.
     *
     * @since 2.8.1
     *
     * @param string $location     The redirect to validate.
     * @param string $fallback_url The value to return if $location is not allowed.
     * @return string Redirect-sanitized URL.
     */
    function wp_validate_redirect( $location, $fallback_url = '' ) {
Arguments
  1. "https://site.cosmologix.ca/sitemap_index.xml"
    
  2. 301
    
  3. "Rank Math"
    
/home/cosmo/site.cosmologix.ca/public/content/plugins/seo-by-rank-math/includes/helpers/class-wordpress.php
use WP_Screen;
use WP_Error;
 
defined( 'ABSPATH' ) || exit;
 
/**
 * WordPress class.
 */
trait WordPress {
 
    /**
     * Wraps wp_safe_redirect to add header.
     *
     * @codeCoverageIgnore
     *
     * @param string $location The path to redirect to.
     * @param int    $status   Status code to use.
     */
    public static function redirect( $location, $status = 302 ) {
        wp_safe_redirect( $location, $status, 'Rank Math' );
        exit;
    }
 
    /**
     * Whether the current user has a specific capability.
     *
     * @codeCoverageIgnore
     * @see current_user_can()
     *
     * @param  string $capability Capability name.
     * @return boolean Whether the current user has the given capability.
     */
    public static function has_cap( $capability ) {
        return current_user_can( 'rank_math_' . str_replace( '-', '_', $capability ) );
    }
 
    /**
     * Get post meta value.
     *
     * @codeCoverageIgnore
Arguments
  1. "https://site.cosmologix.ca/sitemap_index.xml"
    
  2. 301
    
  3. "Rank Math"
    
/home/cosmo/site.cosmologix.ca/public/content/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php
    public function reduce_query_load() {
        if ( ! isset( $_SERVER['REQUEST_URI'] ) ) {
            return;
        }
        $request   = sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) );
        $extension = substr( $request, -4 );
        if ( Str::contains( 'sitemap', $request ) && in_array( $extension, [ '.xml', '.xsl' ], true ) ) {
            remove_all_actions( 'widgets_init' );
        }
    }
 
    /**
     * Redirects `sitemap.xml` to `sitemap_index.xml`.
     */
    public function template_redirect() {
        if ( ! $this->needs_sitemap_index_redirect() ) {
            return;
        }
 
        Helper::redirect( home_url( '/' . Sitemap::get_sitemap_index_slug() . '.xml' ), 301 );
        exit;
    }
 
    /**
     * Checks whether the current request needs to be redirected to sitemap_index.xml.
     *
     * @return bool True if redirect is needed, false otherwise.
     */
    public function needs_sitemap_index_redirect() {
        global $wp_query;
 
        return $wp_query->is_404 && home_url( '/sitemap.xml' ) === Url::get_current_url();
    }
 
    /**
     * Create base URL for the sitemap.
     *
     * @param string $page Page to append to the base URL.
     *
     * @return string base URL (incl page)
Arguments
  1. "https://site.cosmologix.ca/sitemap_index.xml"
    
  2. 301
    
/home/cosmo/site.cosmologix.ca/public/wp/wp-includes/class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
Arguments
  1. ""
    
/home/cosmo/site.cosmologix.ca/public/wp/wp-includes/class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
Arguments
  1. false
    
  2. array:1 [
      0 => ""
    ]
    
/home/cosmo/site.cosmologix.ca/public/wp/wp-includes/plugin.php
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $hook_name ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Calls the callback functions that have been added to an action hook, specifying arguments in an array.
 *
 * @since 2.1.0
 *
 * @see do_action() This function is identical, but the arguments passed to the
 *                  functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_actions        Stores the number of times each action was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the action to be executed.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 */
function do_action_ref_array( $hook_name, $args ) {
Arguments
  1. array:1 [
      0 => ""
    ]
    
/home/cosmo/site.cosmologix.ca/public/wp/wp-includes/template-loader.php
<?php
/**
 * Loads the correct template based on the visitor's url
 *
 * @package WordPress
 */
if ( wp_using_themes() ) {
    /**
     * Fires before determining which template to load.
     *
     * @since 1.5.0
     */
    do_action( 'template_redirect' );
}
 
/**
 * Filters whether to allow 'HEAD' requests to generate content.
 *
 * Provides a significant performance bump by exiting before the page
 * content loads for 'HEAD' requests. See #14348.
 *
 * @since 3.5.0
 *
 * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
 */
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
    exit;
}
 
// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) {
    /**
     * Fired when the template loader determines a robots.txt request.
     *
     * @since 2.1.0
     */
    do_action( 'do_robots' );
    return;
} elseif ( is_favicon() ) {
    /**
Arguments
  1. "template_redirect"
    
/home/cosmo/site.cosmologix.ca/public/wp/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home/cosmo/site.cosmologix.ca/public/wp/wp-includes/template-loader.php"
    
/home/cosmo/site.cosmologix.ca/public/index.php
<?php
 
/**
 * WordPress View Bootstrapper
 */
 
// phpcs:disable
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
 
Arguments
  1. "/home/cosmo/site.cosmologix.ca/public/wp/wp-blog-header.php"
    

Environment & details:

Key Value
query_vars
array:1 [
  "sitemap" => "index"
]
query_string
"sitemap=index"
request
"sitemap.xml"
matched_rule
"sitemap\.xml"
matched_query
"sitemap=index"
did_permalink
true
Key Value
query
array:1 [
  "sitemap" => "index"
]
query_vars
array:66 [
  "sitemap" => "index"
  "error" => ""
  "m" => ""
  "p" => 0
  "post_parent" => ""
  "subpost" => ""
  "subpost_id" => ""
  "attachment" => ""
  "attachment_id" => 0
  "name" => ""
  "pagename" => ""
  "page_id" => 0
  "second" => ""
  "minute" => ""
  "hour" => ""
  "day" => 0
  "monthnum" => 0
  "year" => 0
  "w" => 0
  "category_name" => ""
  "tag" => ""
  "cat" => ""
  "tag_id" => ""
  "author" => ""
  "author_name" => ""
  "feed" => ""
  "tb" => ""
  "paged" => 0
  "meta_key" => ""
  "meta_value" => ""
  "preview" => ""
  "s" => ""
  "sentence" => ""
  "title" => ""
  "fields" => "all"
  "menu_order" => ""
  "embed" => ""
  "category__in" => []
  "category__not_in" => []
  "category__and" => []
  "post__in" => []
  "post__not_in" => []
  "post_name__in" => []
  "tag__in" => []
  "tag__not_in" => []
  "tag__and" => []
  "tag_slug__in" => []
  "tag_slug__and" => []
  "post_parent__in" => []
  "post_parent__not_in" => []
  "author__in" => []
  "author__not_in" => []
  "search_columns" => []
  "ignore_sticky_posts" => false
  "suppress_filters" => false
  "cache_results" => true
  "update_post_term_cache" => true
  "update_menu_item_cache" => false
  "lazy_load_term_meta" => true
  "update_post_meta_cache" => true
  "post_type" => ""
  "posts_per_page" => 10
  "nopaging" => false
  "comments_per_page" => "50"
  "no_found_rows" => false
  "order" => "DESC"
]
tax_query
WP_Tax_Query {#2249}
meta_query
WP_Meta_Query {#1235}
request
"""
SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID\n
\t\t\t\t\t FROM wp_posts \n
\t\t\t\t\t WHERE 1=1  AND ((wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled')))\n
\t\t\t\t\t \n
\t\t\t\t\t ORDER BY wp_posts.post_date DESC\n
\t\t\t\t\t LIMIT 0, 10
"""
current_post
-1
before_loop
true
current_comment
-1
is_404
true
empty
empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"LiteSpeed"
REQUEST_URI
"/sitemap.xml"
PATH
"/usr/local/bin:/bin:/usr/bin"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_HOST
"site.cosmologix.ca"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
DOCUMENT_ROOT
"/home/cosmo/site.cosmologix.ca/public"
REMOTE_ADDR
"216.73.216.221"
REMOTE_PORT
"60343"
SERVER_ADDR
"158.69.226.173"
SERVER_NAME
"site.cosmologix.ca"
SERVER_ADMIN
"webmaster@site.cosmologix.ca"
SERVER_PORT
"443"
REQUEST_SCHEME
"https"
REDIRECT_URL
"/sitemap.xml"
REDIRECT_REQUEST_METHOD
"GET"
HTTPS
"on"
HTTP_AUTHORIZATION
""
REDIRECT_STATUS
"200"
X_SPDY
"HTTP2"
SSL_PROTOCOL
"TLSv1.2"
SSL_CIPHER
"ECDHE-RSA-AES128-GCM-SHA256"
SSL_CIPHER_USEKEYSIZE
"128"
SSL_CIPHER_ALGKEYSIZE
"128"
SCRIPT_FILENAME
"/home/cosmo/site.cosmologix.ca/public/index.php"
QUERY_STRING
""
SCRIPT_URI
"https://site.cosmologix.ca/sitemap.xml"
SCRIPT_URL
"/sitemap.xml"
SCRIPT_NAME
"/index.php"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
X-LSCACHE
"on"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1776895924.3869
REQUEST_TIME
1776895924
argv
[]
argc
0
DB_NAME
"cosmo_wp"
DB_USER
"cosmo_wp"
DB_PASSWORD
"****************"
WP_ENV
"development"
WP_HOME
"https://site.cosmologix.ca"
WP_SITEURL
"https://site.cosmologix.ca/wp"
AUTH_KEY
"****************************************************************"
SECURE_AUTH_KEY
"****************************************************************"
LOGGED_IN_KEY
"****************************************************************"
NONCE_KEY
"****************************************************************"
AUTH_SALT
"****************************************************************"
SECURE_AUTH_SALT
"****************************************************************"
LOGGED_IN_SALT
"****************************************************************"
NONCE_SALT
"****************************************************************"
ACORN_ENABLE_EXPIRIMENTAL_ROUTER
"True"
MAPBOX_TOKEN
"pk.eyJ1Ijoic2ltb25jYXJib25pYSIsImEiOiJjbTJzemE1Z2MwMnhzMmxvaTk5cmtqaXN6In0.MNkhjE31AIklI_xzT0fo7g"
Key Value
DB_NAME
"cosmo_wp"
DB_USER
"cosmo_wp"
DB_PASSWORD
"****************"
WP_ENV
"development"
WP_HOME
"https://site.cosmologix.ca"
WP_SITEURL
"https://site.cosmologix.ca/wp"
AUTH_KEY
"****************************************************************"
SECURE_AUTH_KEY
"****************************************************************"
LOGGED_IN_KEY
"****************************************************************"
NONCE_KEY
"****************************************************************"
AUTH_SALT
"****************************************************************"
SECURE_AUTH_SALT
"****************************************************************"
LOGGED_IN_SALT
"****************************************************************"
NONCE_SALT
"****************************************************************"
ACORN_ENABLE_EXPIRIMENTAL_ROUTER
"True"
MAPBOX_TOKEN
"pk.eyJ1Ijoic2ltb25jYXJib25pYSIsImEiOiJjbTJzemE1Z2MwMnhzMmxvaTk5cmtqaXN6In0.MNkhjE31AIklI_xzT0fo7g"
0. Whoops\Handler\PrettyPageHandler