Deprecated: YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container::__construct(): Implicitly marking parameter $parameterBag as nullable is deprecated, the explicit nullable type must be used instead in /data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php on line 60
Cannot modify header information - headers already sent by (output started at /data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php:60) (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Cannot modify header information - headers already sent by (output started at /data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php:60)

Exception

ErrorException

Show exception properties
ErrorException {#2578
  #severity: E_WARNING
}
  1. * @param int $status Status code to use.
  2. * @param string $location The path to redirect to.
  3. */
  4. $x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
  5. if ( is_string( $x_redirect_by ) ) {
  6. header( "X-Redirect-By: $x_redirect_by" );
  7. }
  8. header( "Location: $location", true, $status );
  9. return true;
  1. * @throws \ErrorException
  2. */
  3. public function handleError($level, $message, $file = '', $line = 0, $context = [])
  4. {
  5. try {
  6. parent::handleError($level, $message, $file, $line, $context);
  7. } catch (Throwable $e) {
  8. if (! apply_filters('acorn/throw_error_exception', true, $e)) {
  9. return false;
  10. }
HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php:60)', '/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/pluggable.php', 1435)
  1. * @param int $status Status code to use.
  2. * @param string $location The path to redirect to.
  3. */
  4. $x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
  5. if ( is_string( $x_redirect_by ) ) {
  6. header( "X-Redirect-By: $x_redirect_by" );
  7. }
  8. header( "Location: $location", true, $status );
  9. return true;
wp_redirect('https://utick.mademo.be/sitemap_index.xml', 301, 'Yoast SEO') in /data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/pluggable.php (line 1545)
  1. */
  2. $fallback_url = apply_filters( 'wp_safe_redirect_fallback', admin_url(), $status );
  3. $location = wp_validate_redirect( $location, $fallback_url );
  4. return wp_redirect( $location, $status, $x_redirect_by );
  5. }
  6. endif;
  7. if ( ! function_exists( 'wp_validate_redirect' ) ) :
  8. /**
wp_safe_redirect('https://utick.mademo.be/sitemap_index.xml', 301, 'Yoast SEO') in /data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/src/helpers/redirect-helper.php (line 39)
  1. * @param string $reason The reason for the redirect.
  2. *
  3. * @return void
  4. */
  5. public function do_safe_redirect( $location, $status = 302, $reason = 'Yoast SEO' ) {
  6. \wp_safe_redirect( $location, $status, $reason );
  7. exit;
  8. }
  9. /**
  10. * Sets a header.
Redirect_Helper->do_safe_redirect('https://utick.mademo.be/sitemap_index.xml', 301, 'Yoast SEO') in /data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-router.php (line 97)
  1. public function template_redirect() {
  2. if ( ! $this->needs_sitemap_index_redirect() ) {
  3. return;
  4. }
  5. YoastSEO()->helpers->redirect->do_safe_redirect( home_url( '/sitemap_index.xml' ), 301, 'Yoast SEO' );
  6. }
  7. /**
  8. * Checks whether the current request needs to be redirected to sitemap_index.xml.
  9. *
WPSEO_Sitemaps_Router->template_redirect('') in /data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/class-wp-hook.php (line 324)
  1. // Avoid the array_slice() if possible.
  2. if ( 0 === $the_['accepted_args'] ) {
  3. $value = call_user_func( $the_['function'] );
  4. } elseif ( $the_['accepted_args'] >= $num_args ) {
  5. $value = call_user_func_array( $the_['function'], $args );
  6. } else {
  7. $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
  8. }
  9. }
  10. } while ( false !== next( $this->iterations[ $nesting_level ] ) );
  1. *
  2. * @param array $args Parameters to pass to the callback functions.
  3. */
  4. public function do_action( $args ) {
  5. $this->doing_action = true;
  6. $this->apply_filters( '', $args );
  7. // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
  8. if ( ! $this->nesting_level ) {
  9. $this->doing_action = false;
  10. }
  1. } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
  2. // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
  3. $arg[0] = $arg[0][0];
  4. }
  5. $wp_filter[ $hook_name ]->do_action( $arg );
  6. array_pop( $wp_current_filter );
  7. }
  8. /**
  1. /**
  2. * Fires before determining which template to load.
  3. *
  4. * @since 1.5.0
  5. */
  6. do_action( 'template_redirect' );
  7. }
  8. /**
  9. * Filters whether to allow 'HEAD' requests to generate content.
  10. *
require_once('/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/template-loader.php') in /data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-blog-header.php (line 19)
  1. // Set up the WordPress query.
  2. wp();
  3. // Load the theme template.
  4. require_once ABSPATH . WPINC . '/template-loader.php';
  5. }
require('/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-blog-header.php') in /data/sites/web/mademobe/subsites/utick.mademo.be/web/index.php (line 7)
  1. /**
  2. * WordPress View Bootstrapper
  3. */
  4. define('WP_USE_THEMES', true);
  5. require __DIR__ . '/wp/wp-blog-header.php';

Stack Trace

ErrorException
ErrorException:
Cannot modify header information - headers already sent by (output started at /data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php:60)

  at /data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/pluggable.php:1435
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php:60)', '/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/pluggable.php', 1435, array())
     (/data/sites/web/mademobe/subsites/utick.mademo.be/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 /data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php:60)', '/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/pluggable.php', 1435)
  at header('X-Redirect-By: Yoast SEO')
     (/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/pluggable.php:1435)
  at wp_redirect('https://utick.mademo.be/sitemap_index.xml', 301, 'Yoast SEO')
     (/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/pluggable.php:1545)
  at wp_safe_redirect('https://utick.mademo.be/sitemap_index.xml', 301, 'Yoast SEO')
     (/data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/src/helpers/redirect-helper.php:39)
  at Yoast\WP\SEO\Helpers\Redirect_Helper->do_safe_redirect('https://utick.mademo.be/sitemap_index.xml', 301, 'Yoast SEO')
     (/data/sites/web/mademobe/subsites/utick.mademo.be/web/app/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-router.php:97)
  at WPSEO_Sitemaps_Router->template_redirect('')
     (/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/class-wp-hook.php:324)
  at WP_Hook->apply_filters(false, array(''))
     (/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/class-wp-hook.php:348)
  at WP_Hook->do_action(array(''))
     (/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/plugin.php:517)
  at do_action('template_redirect')
     (/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/template-loader.php:13)
  at require_once('/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-includes/template-loader.php')
     (/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-blog-header.php:19)
  at require('/data/sites/web/mademobe/subsites/utick.mademo.be/web/wp/wp-blog-header.php')
     (/data/sites/web/mademobe/subsites/utick.mademo.be/web/index.php:7)