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 /var/www/html/wp-includes/functions.php on line 6170 Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6170) (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6170)

Exception

ErrorException

  1.  * RSS2 Feed Template for displaying RSS2 Comments feed.
  2.  *
  3.  * @package WordPress
  4.  */
  5. header'Content-Type: ' feed_content_type'rss2' ) . '; charset=' get_option'blog_charset' ), true );
  6. echo '<?xml version="1.0" encoding="' get_option'blog_charset' ) . '"?' '>';
  7. /** This action is documented in wp-includes/feed-rss2.php */
  8. do_action'rss_tag_pre''rss2-comments' );
  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 /var/www/html/wp-includes/functions.php:6170)', '/var/www/html/wp-includes/feed-rss2-comments.php', 8, array('_template_file' => '/var/www/html/wp-includes/feed-rss2-comments.php', 'load_once' => true, 'args' => array(), 'posts' => array(object(WP_Post)), 'post' => object(WP_Post), 'wp_did_header' => true, 'wp_query' => object(WP_Query), 'wp_rewrite' => object(WP_Rewrite), 'wpdb' => object(wpdb), 'wp_version' => '7.0', 'wp' => object(WP), 'id' => null, 'comment' => null, 'user_ID' => 0, 's' => '', 'name' => 'hello-world', 'feed' => 'feed', 'error' => '', 'm' => '', 'p' => 0, 'post_parent' => '', 'subpost' => '', 'subpost_id' => '', 'attachment' => '', 'attachment_id' => 0, 'pagename' => '', 'page_id' => 0, 'second' => '', 'minute' => '', 'hour' => '', 'day' => 0, 'monthnum' => 0, 'year' => 0, 'w' => 0, 'category_name' => '', 'tag' => '', 'cat' => '', 'tag_id' => '', 'author' => '', 'author_name' => '', 'tb' => '', 'paged' => 0, 'meta_key' => '', 'meta_value' => '', 'preview' => '', 'sentence' => '', 'title' => '', 'fields' => 'all', 'menu_order' => '', 'embed' => '', 'category__in' => array(), 'category__not_in' => array(), 'category__and' => array(), 'post__in' => array(), 'post__not_in' => array(), 'post_name__in' => array(), 'tag__in' => array(), 'tag__not_in' => array(), 'tag__and' => array(), 'tag_slug__in' => array(), 'tag_slug__and' => array(), 'post_parent__in' => array(), 'post_parent__not_in' => array(), 'author__in' => array(), 'author__not_in' => array(), 'search_columns' => array(), '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'))
header('Content-Type: application/rss+xml; charset=UTF-8', true) in /var/www/html/wp-includes/feed-rss2-comments.php (line 8)
  1.  * RSS2 Feed Template for displaying RSS2 Comments feed.
  2.  *
  3.  * @package WordPress
  4.  */
  5. header'Content-Type: ' feed_content_type'rss2' ) . '; charset=' get_option'blog_charset' ), true );
  6. echo '<?xml version="1.0" encoding="' get_option'blog_charset' ) . '"?' '>';
  7. /** This action is documented in wp-includes/feed-rss2.php */
  8. do_action'rss_tag_pre''rss2-comments' );
require_once('/var/www/html/wp-includes/feed-rss2-comments.php') in /var/www/html/wp-includes/template.php (line 814)
  1.      * @param array  $args           Additional arguments passed to the template.
  2.      */
  3.     do_action'wp_before_load_template'$_template_file$load_once$args );
  4.     if ( $load_once ) {
  5.         require_once $_template_file;
  6.     } else {
  7.         require $_template_file;
  8.     }
  9.     /**
load_template('/var/www/html/wp-includes/feed-rss2-comments.php') in /var/www/html/wp-includes/functions.php (line 1677)
  1.  *
  2.  * @param bool $for_comments True for the comment feed, false for normal feed.
  3.  */
  4. function do_feed_rss2$for_comments ) {
  5.     if ( $for_comments ) {
  6.         load_templateABSPATH WPINC '/feed-rss2-comments.php' );
  7.     } else {
  8.         load_templateABSPATH WPINC '/feed-rss2.php' );
  9.     }
  10. }
do_feed_rss2(true) in /var/www/html/wp-includes/class-wp-hook.php (line 343)
  1.                 if ( === $the_['accepted_args'] ) {
  2.                     $value call_user_func$the_['function'] );
  3.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  4.                     $value call_user_func_array$the_['function'], $args );
  5.                 } else {
  6.                     $value call_user_func_array$the_['function'], array_slice$args0$the_['accepted_args'] ) );
  7.                 }
  8.             }
  9.         } while ( false !== next$this->iterations$nesting_level ] ) );
  10.         unset( $this->iterations$nesting_level ] );
WP_Hook->apply_filters('', array(true, 'rss2')) in /var/www/html/wp-includes/class-wp-hook.php (line 365)
  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.         }
WP_Hook->do_action(array(true, 'rss2')) in /var/www/html/wp-includes/plugin.php (line 522)
  1.     } elseif ( is_array$arg[0] ) && === 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. /**
do_action('do_feed_rss2', true, 'rss2') in /var/www/html/wp-includes/functions.php (line 1641)
  1.      * @since 4.4.0 The `$feed` parameter was added.
  2.      *
  3.      * @param bool   $is_comment_feed Whether the feed is a comment feed.
  4.      * @param string $feed            The feed name.
  5.      */
  6.     do_action"do_feed_{$feed}"$wp_query->is_comment_feed$feed );
  7. }
  8. /**
  9.  * Loads the RDF RSS 0.91 Feed template.
  10.  *
  1.      * @since 5.4.0
  2.      */
  3.     do_action'do_favicon' );
  4.     return;
  5. } elseif ( is_feed() ) {
  6.     do_feed();
  7.     return;
  8. } elseif ( is_trackback() ) {
  9.     require ABSPATH 'wp-trackback.php';
  10.     return;
  11. }
require_once('/var/www/html/wp-includes/template-loader.php') in /var/www/html/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('/var/www/html/wp-blog-header.php') in /var/www/html/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

Stack Trace

ErrorException
ErrorException:
Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6170)

  at /var/www/html/wp-includes/feed-rss2-comments.php:8
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6170)', '/var/www/html/wp-includes/feed-rss2-comments.php', 8, array('_template_file' => '/var/www/html/wp-includes/feed-rss2-comments.php', 'load_once' => true, 'args' => array(), 'posts' => array(object(WP_Post)), 'post' => object(WP_Post), 'wp_did_header' => true, 'wp_query' => object(WP_Query), 'wp_rewrite' => object(WP_Rewrite), 'wpdb' => object(wpdb), 'wp_version' => '7.0', 'wp' => object(WP), 'id' => null, 'comment' => null, 'user_ID' => 0, 's' => '', 'name' => 'hello-world', 'feed' => 'feed', 'error' => '', 'm' => '', 'p' => 0, 'post_parent' => '', 'subpost' => '', 'subpost_id' => '', 'attachment' => '', 'attachment_id' => 0, 'pagename' => '', 'page_id' => 0, 'second' => '', 'minute' => '', 'hour' => '', 'day' => 0, 'monthnum' => 0, 'year' => 0, 'w' => 0, 'category_name' => '', 'tag' => '', 'cat' => '', 'tag_id' => '', 'author' => '', 'author_name' => '', 'tb' => '', 'paged' => 0, 'meta_key' => '', 'meta_value' => '', 'preview' => '', 'sentence' => '', 'title' => '', 'fields' => 'all', 'menu_order' => '', 'embed' => '', 'category__in' => array(), 'category__not_in' => array(), 'category__and' => array(), 'post__in' => array(), 'post__not_in' => array(), 'post_name__in' => array(), 'tag__in' => array(), 'tag__not_in' => array(), 'tag__and' => array(), 'tag_slug__in' => array(), 'tag_slug__and' => array(), 'post_parent__in' => array(), 'post_parent__not_in' => array(), 'author__in' => array(), 'author__not_in' => array(), 'search_columns' => array(), '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'))
     (/var/www/html/wp-content/themes/phylab/vendor/roots/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 /var/www/html/wp-includes/functions.php:6170)', '/var/www/html/wp-includes/feed-rss2-comments.php', 8, array('_template_file' => '/var/www/html/wp-includes/feed-rss2-comments.php', 'load_once' => true, 'args' => array(), 'posts' => array(object(WP_Post)), 'post' => object(WP_Post), 'wp_did_header' => true, 'wp_query' => object(WP_Query), 'wp_rewrite' => object(WP_Rewrite), 'wpdb' => object(wpdb), 'wp_version' => '7.0', 'wp' => object(WP), 'id' => null, 'comment' => null, 'user_ID' => 0, 's' => '', 'name' => 'hello-world', 'feed' => 'feed', 'error' => '', 'm' => '', 'p' => 0, 'post_parent' => '', 'subpost' => '', 'subpost_id' => '', 'attachment' => '', 'attachment_id' => 0, 'pagename' => '', 'page_id' => 0, 'second' => '', 'minute' => '', 'hour' => '', 'day' => 0, 'monthnum' => 0, 'year' => 0, 'w' => 0, 'category_name' => '', 'tag' => '', 'cat' => '', 'tag_id' => '', 'author' => '', 'author_name' => '', 'tb' => '', 'paged' => 0, 'meta_key' => '', 'meta_value' => '', 'preview' => '', 'sentence' => '', 'title' => '', 'fields' => 'all', 'menu_order' => '', 'embed' => '', 'category__in' => array(), 'category__not_in' => array(), 'category__and' => array(), 'post__in' => array(), 'post__not_in' => array(), 'post_name__in' => array(), 'tag__in' => array(), 'tag__not_in' => array(), 'tag__and' => array(), 'tag_slug__in' => array(), 'tag_slug__and' => array(), 'post_parent__in' => array(), 'post_parent__not_in' => array(), 'author__in' => array(), 'author__not_in' => array(), 'search_columns' => array(), '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'))
  at header('Content-Type: application/rss+xml; charset=UTF-8', true)
     (/var/www/html/wp-includes/feed-rss2-comments.php:8)
  at require_once('/var/www/html/wp-includes/feed-rss2-comments.php')
     (/var/www/html/wp-includes/template.php:814)
  at load_template('/var/www/html/wp-includes/feed-rss2-comments.php')
     (/var/www/html/wp-includes/functions.php:1677)
  at do_feed_rss2(true)
     (/var/www/html/wp-includes/class-wp-hook.php:343)
  at WP_Hook->apply_filters('', array(true, 'rss2'))
     (/var/www/html/wp-includes/class-wp-hook.php:365)
  at WP_Hook->do_action(array(true, 'rss2'))
     (/var/www/html/wp-includes/plugin.php:522)
  at do_action('do_feed_rss2', true, 'rss2')
     (/var/www/html/wp-includes/functions.php:1641)
  at do_feed()
     (/var/www/html/wp-includes/template-loader.php:58)
  at require_once('/var/www/html/wp-includes/template-loader.php')
     (/var/www/html/wp-blog-header.php:19)
  at require('/var/www/html/wp-blog-header.php')
     (/var/www/html/index.php:17)