ErrorException {#7974 #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';}<?php/** * WordPress View Bootstrapper */define('WP_USE_THEMES', true);require __DIR__ . '/wp/wp-blog-header.php';|
ErrorException
|
|---|
ErrorException:
Cannot modify header information - headers already sent by (output started at /home/optiquecex/preprod/web/app/plugins/password-protected/freemius/includes/class-freemius.php:15893)
at /home/optiquecex/preprod/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php:62
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /home/optiquecex/preprod/web/app/plugins/password-protected/freemius/includes/class-freemius.php:15893)', '/home/optiquecex/preprod/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php', 62, array())
(/home/optiquecex/preprod/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/optiquecex/preprod/web/app/plugins/password-protected/freemius/includes/class-freemius.php:15893)', '/home/optiquecex/preprod/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php', 62)
at header('HTTP/1.1 200 OK', true, 200)
(/home/optiquecex/preprod/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php:62)
at RankMath\Sitemap\XML->send_headers()
(/home/optiquecex/preprod/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php:102)
at RankMath\Sitemap\Sitemap_XML->output()
(/home/optiquecex/preprod/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php:82)
at RankMath\Sitemap\Sitemap_XML->__construct('1')
(/home/optiquecex/preprod/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php:79)
at RankMath\Sitemap\Router->request_sitemap(object(WP_Query))
(/home/optiquecex/preprod/web/wp/wp-includes/class-wp-hook.php:324)
at WP_Hook->apply_filters('', array(object(WP_Query)))
(/home/optiquecex/preprod/web/wp/wp-includes/class-wp-hook.php:348)
at WP_Hook->do_action(array(object(WP_Query)))
(/home/optiquecex/preprod/web/wp/wp-includes/plugin.php:565)
at do_action_ref_array('parse_query', array(object(WP_Query)))
(/home/optiquecex/preprod/web/wp/wp-includes/class-wp-query.php:1140)
at WP_Query->parse_query()
(/home/optiquecex/preprod/web/wp/wp-includes/class-wp-query.php:1868)
at WP_Query->get_posts()
(/home/optiquecex/preprod/web/wp/wp-includes/class-wp-query.php:3824)
at WP_Query->query(array('sitemap' => '1'))
(/home/optiquecex/preprod/web/wp/wp-includes/class-wp.php:696)
at WP->query_posts()
(/home/optiquecex/preprod/web/wp/wp-includes/class-wp.php:816)
at WP->main('')
(/home/optiquecex/preprod/web/wp/wp-includes/functions.php:1336)
at wp()
(/home/optiquecex/preprod/web/wp/wp-blog-header.php:16)
at require('/home/optiquecex/preprod/web/wp/wp-blog-header.php')
(/home/optiquecex/preprod/web/index.php:6)
|