Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /customers/b/e/3/bruxx.se/httpd.www/wp-includes/functions.php on line 6121
* @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;
* @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 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;
*/
$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' ) ) :
/**
* @param string $reason The reason for the redirect.
*
* @return void
*/
public function do_safe_redirect( $location, $status = 302, $reason = 'Yoast SEO' ) {
\wp_safe_redirect( $location, $status, $reason );
exit;
}
/**
* Sets a header.
public function template_redirect() {
if ( ! $this->needs_sitemap_index_redirect() ) {
return;
}
YoastSEO()->helpers->redirect->do_safe_redirect( home_url( '/sitemap_index.xml' ), 301, 'Yoast SEO' );
}
/**
* Checks whether the current request needs to be redirected to sitemap_index.xml.
*
// 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;
}
} 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 );
}
/**
/**
* Fires before determining which template to load.
*
* @since 1.5.0
*/
do_action( 'template_redirect' );
}
/**
* Filters whether to allow 'HEAD' requests to generate content.
*
// 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 /customers/b/e/3/bruxx.se/httpd.www/wp-includes/functions.php:6121) at /customers/b/e/3/bruxx.se/httpd.www/wp-includes/pluggable.php:1450 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /customers/b/e/3/bruxx.se/httpd.www/wp-includes/functions.php:6121)', '/customers/b/e/3/bruxx.se/httpd.www/wp-includes/pluggable.php', 1450, array()) (/customers/b/e/3/bruxx.se/httpd.www/wp-content/plugins/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:54) at Roots\Acorn\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /customers/b/e/3/bruxx.se/httpd.www/wp-includes/functions.php:6121)', '/customers/b/e/3/bruxx.se/httpd.www/wp-includes/pluggable.php', 1450) at header('X-Redirect-By: Yoast SEO') (/customers/b/e/3/bruxx.se/httpd.www/wp-includes/pluggable.php:1450) at wp_redirect('https://bruxx.se/sitemap_index.xml', 301, 'Yoast SEO') (/customers/b/e/3/bruxx.se/httpd.www/wp-includes/pluggable.php:1560) at wp_safe_redirect('https://bruxx.se/sitemap_index.xml', 301, 'Yoast SEO') (/customers/b/e/3/bruxx.se/httpd.www/wp-content/plugins/wordpress-seo/src/helpers/redirect-helper.php:39) at Yoast\WP\SEO\Helpers\Redirect_Helper->do_safe_redirect('https://bruxx.se/sitemap_index.xml', 301, 'Yoast SEO') (/customers/b/e/3/bruxx.se/httpd.www/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-router.php:97) at WPSEO_Sitemaps_Router->template_redirect('') (/customers/b/e/3/bruxx.se/httpd.www/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters(false, array('')) (/customers/b/e/3/bruxx.se/httpd.www/wp-includes/class-wp-hook.php:348) at WP_Hook->do_action(array('')) (/customers/b/e/3/bruxx.se/httpd.www/wp-includes/plugin.php:517) at do_action('template_redirect') (/customers/b/e/3/bruxx.se/httpd.www/wp-includes/template-loader.php:13) at require_once('/customers/b/e/3/bruxx.se/httpd.www/wp-includes/template-loader.php') (/customers/b/e/3/bruxx.se/httpd.www/wp-blog-header.php:19) at require('/customers/b/e/3/bruxx.se/httpd.www/wp-blog-header.php') (/customers/b/e/3/bruxx.se/httpd.www/index.php:17) |