ErrorException {#8193 #severity: E_WARNING }
* @param array $headers HTTP headers. * @param bool $is_xsl Whether these headers are for XSL. */ $headers = $this->do_filter( 'sitemap/http_headers', $headers, $is_xsl ); header( $this->get_protocol() . ' 200 OK', true, 200 ); foreach ( $headers as $header => $value ) { header( $header . ': ' . $value ); } } * @throws \ErrorException */ public function handleError($level, $message, $file = '', $line = 0, $context = []) { try { parent::handleError($level, $message, $file, $line, $context); } catch (Throwable $e) { if (! apply_filters('acorn/throw_error_exception', true, $e)) { return false; } * @param array $headers HTTP headers. * @param bool $is_xsl Whether these headers are for XSL. */ $headers = $this->do_filter( 'sitemap/http_headers', $headers, $is_xsl ); header( $this->get_protocol() . ' 200 OK', true, 200 ); foreach ( $headers as $header => $value ) { header( $header . ': ' . $value ); } } $wp_query->set_404(); status_header( 404 ); return; } $this->send_headers(); echo $this->sitemap; // phpcs:ignore $this->output_credits(); remove_all_actions( 'wp_footer' ); die; } $this->filter( 'user_has_cap', 'filter_user_has_cap' ); $this->type = $type; $this->cache = new Cache(); $this->set_n( get_query_var( 'sitemap_n' ) ); $this->output(); } /** * Generate sitemap now. */ $type = get_query_var( 'sitemap' ); if ( empty( $type ) ) { return; } new Sitemap_XML( $type ); } /** * Check the current request URI, if we can determine it's probably an XML sitemap, kill loading the widgets. */ // 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 ] ) ); * * @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; } if ( ! isset( $wp_filter['all'] ) ) { $wp_current_filter[] = $hook_name; } $wp_filter[ $hook_name ]->do_action( $args ); array_pop( $wp_current_filter );}/** * * @since 1.5.0 * * @param WP_Query $query The WP_Query instance (passed by reference). */ do_action_ref_array( 'parse_query', array( &$this ) ); } /** * Parses various taxonomy related query vars. * * @return WP_Post[]|int[] Array of post objects or post IDs. */ public function get_posts() { global $wpdb; $this->parse_query(); /** * Fires after the query variable object is created, but before the actual query is run. * * Note: If using conditional tags, use the method versions within the passed instance */ public function query( $query ) { $this->init(); $this->query = wp_parse_args( $query ); $this->query_vars = $this->query; return $this->get_posts(); } /** * Retrieves the currently queried object. * * @global WP_Query $wp_the_query WordPress Query object. */ public function query_posts() { global $wp_the_query; $this->build_query_string(); $wp_the_query->query( $this->query_vars ); } /** * Set the Headers for 404, if nothing is found for requested URL. * $this->init(); $parsed = $this->parse_request( $query_args ); if ( $parsed ) { $this->query_posts(); $this->handle_404(); $this->register_globals(); } $this->send_headers(); * @param string|array $query_vars Default WP_Query arguments. */function wp( $query_vars = '' ) { global $wp, $wp_query, $wp_the_query; $wp->main( $query_vars ); if ( ! isset( $wp_the_query ) ) { $wp_the_query = $wp_query; }} // 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';} * @var bool */define( 'WP_USE_THEMES', true );/** Loads the WordPress Environment and Template */require __DIR__ . '/wp-blog-header.php';|
ErrorException
|
|---|
ErrorException:
Cannot modify header information - headers already sent by (output started at /home/casasreformas/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions.php:821)
at /home/casasreformas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php:66
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /home/casasreformas/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions.php:821)', '/home/casasreformas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php', 66, array())
(/home/casasreformas/public_html/wp-content/themes/nube-builder/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49)
at Roots\Acorn\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /home/casasreformas/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions.php:821)', '/home/casasreformas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php', 66)
at header('HTTP/1.1 200 OK', true, 200)
(/home/casasreformas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php:66)
at RankMath\Sitemap\XML->send_headers()
(/home/casasreformas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php:102)
at RankMath\Sitemap\Sitemap_XML->output()
(/home/casasreformas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php:82)
at RankMath\Sitemap\Sitemap_XML->__construct('1')
(/home/casasreformas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php:79)
at RankMath\Sitemap\Router->request_sitemap(object(WP_Query))
(/home/casasreformas/public_html/wp-includes/class-wp-hook.php:341)
at WP_Hook->apply_filters('', array(object(WP_Query)))
(/home/casasreformas/public_html/wp-includes/class-wp-hook.php:365)
at WP_Hook->do_action(array(object(WP_Query)))
(/home/casasreformas/public_html/wp-includes/plugin.php:570)
at do_action_ref_array('parse_query', array(object(WP_Query)))
(/home/casasreformas/public_html/wp-includes/class-wp-query.php:1154)
at WP_Query->parse_query()
(/home/casasreformas/public_html/wp-includes/class-wp-query.php:1897)
at WP_Query->get_posts()
(/home/casasreformas/public_html/wp-includes/class-wp-query.php:3958)
at WP_Query->query(array('sitemap' => '1'))
(/home/casasreformas/public_html/wp-includes/class-wp.php:704)
at WP->query_posts()
(/home/casasreformas/public_html/wp-includes/class-wp.php:824)
at WP->main('')
(/home/casasreformas/public_html/wp-includes/functions.php:1343)
at wp()
(/home/casasreformas/public_html/wp-blog-header.php:16)
at require('/home/casasreformas/public_html/wp-blog-header.php')
(/home/casasreformas/public_html/index.php:17)
|